We recently copied some DLL files from server 2003 to our new server that's a 2012 machine because the DLL files for Infragistics are not installed. Is this the correct approach or should an upgrade be considered? If so why?
Scott,
I am assuming that you are moving the deployment of a web application from Windows Server 2003 to Windows Server 2012 and if so, this should work fine as long as the version of the .NET framework that you are targeting is on the newer server. Note that many of our older assemblies wouldn't have been tested in the newer environment if it is newer than the assemblies and there have been a few bugs that have been address that are OS or Framework specific over the years so you will need to test your application on the new server as well when you move it.
If you do have issues, knowing what the specific issue is and what version you are using will help us to provide better guidance on the best approach to resolve the issue.
Let me know if you have any questions with this matter.
Attached an error page we are seeing. Also seen this message previously before turning on debug to show errors when hitting the website URL it throws this message.
"Object reference not set to an instance of an object.There was an error processing your request. To report this issue, please copy the error message and the complete URL for this page and paste it into an email with a brief description of what you were attempting to do."
The message "Object reference not set to an instance of an object" is from a NullReferenceException and there should be a stack trace with the exception that should help you debug the what is happening. Having the stack trace and the version of the Infragistics assemblies you are using will help me to advise on next steps.
Note that I didn't see an attachment with your post.
Apologies.. Here is the output
Thread information:
Thread ID: 3
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at Infragistics.WebUI.UltraWebGrid.RenderDnLvlHTML.ResolveRowLabelStyle(UltraGridRow row)
at Infragistics.WebUI.UltraWebGrid.RenderDnLvlHTML.RenderRowLabelStyleClass(UltraGridRow row)
at Infragistics.WebUI.UltraWebGrid.RenderDnLvlHTML.RenderColumnsFooters(RowsCollection rows)
at Infragistics.WebUI.UltraWebGrid.RenderDnLvlHTML.RenderTable(RowsCollection rows)
at Infragistics.WebUI.UltraWebGrid.RenderDnLvlHTML.RenderTableFrame()
at Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.VisitObjects(HtmlTextWriter output)
at Infragistics.WebUI.Shared.RendererBase.Render(HtmlTextWriter output)
at Infragistics.WebUI.UltraWebGrid.GridRendererBase.Render(HtmlTextWriter output)
at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at Infragistics.WebUI.WebControls.WebPanelBase.RenderContents(HtmlTextWriter writer)
at Infragistics.WebUI.Misc.RenderUpLevelGroupBox.VisitObjects(HtmlTextWriter writer)
at Infragistics.WebUI.Misc.WebGroupBox.Render(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
The exception is happening when rendering the UltraWebGrid and I would expect this behavior to be the same regardless what server the application is running on. To look into what is happening I would need a sample that reproduces the issue that can be debugged. If you have access to the source code for the application that you are moving from one server to the other, can you reproduce the issue in your development environment?
I also looked at the source code for ResolveRowLabelStyle and for a NullReferenceException to occur in this method I believe either the row passed into the method or the Band the row is associated with would need to be null though I wouldn't expect this in any scenario nor have I seen this specific exception before.
Some things to keep in mind as you test this:
Thanks Alan,
We have the application working currently on Windows server 2003 in our production environment. The code from this working copy was simply copied to our DEV environment to see if it could work on the Windows 2012 server or if we need to upgrade the Infragistics DLL files for this to work because Windows server 2012 does not come with those DLL files standard. When this was noticed we copied all of the Infragistics DLL files to our DEV 2012 machine hoping it would simply "work". Wondering if an upgrade to the DLL files would be a better option verses trying to reengineer the current DLL files
As the UltraWebGrid was retired, upgrading the assemblies may require rewriting the application and for that I would recommend our jQuery controls instead of the web forms controls.
Did you copy the application from one server to the other and if so, were the Infragistics assemblies in the bin directory of the application or were they in the GAC on the older server? Or did you use the source code to build and deploy to the new server?
If you built and deployed to the new server, you may want to test copying the application from the working server to the new server to see if you get the same results.
Copied the application from one server to the new server. Infragistics assemblies were in the GAC. Within the application BIN folder were 3 Infragistics DLL and some custom DLL files. Source code was not used to rebuild for the move to the new server as the developer could not get this to load on their Windows 7 OS laptop. Once we copied form working server to new server is when these errors appeared.
DLL files located in application BIN:
Infragistics35.WebUI.UltraWebGrid.v8.3.dll
Infragistics35.WebUI.Shared.v8.3.dll
Infragistics35.WebUI.Misc.v8.3.dll
Hello Scott,
Thank you for the update. I did some looking and Windows Server 2012 does not support .Net 3.5. So that may be part of the issue. Also you mention only three dlls are there assembly references for any other controls in your project that are not in the bin folder?