问题描述
Hello All,
我已经开发了很长时间的Web应用程序,在Windows 2008服务器上工作正常。
现在我们需要将此应用程序移动到新服务器(新的pre-prod和prod服务器),并在IIS中进行必要的配置后,我们已经在新的preprod上部署了该应用程序。
但是我们得到了下面提到的错误 -
-----------错误---- -------------------------------------------------- -------------------------
Hello All,
I have developed a web application long time back which is working fine in Windows 2008 server.
now we need to move this application to new servers (new pre-prod and prod servers) and after putting necessary configuration in IIS, we have deployed the application on new pre-prod.
But we are getting below mentioned error -
-----------Error-------------------------------------------------------------------------------
Server Error in '/retailer/eosc' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Rocs.Global_asax.subFormGetAdminSatList(String& sDlrSatList) in E:\Synergy\ROCS\ROCS_SourceCode\ROCS\Global.asax.vb:431
Rocs.Global_asax.Session_Start(Object sender, EventArgs e) in E:\Synergy\ROCS\ROCS_SourceCode\ROCS\Global.asax.vb:260
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +408
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1295
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +114
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +374
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1016
----------------错误结束-------- -------------------------------------------------- --------
请注意,应用程序位于.Net 4.0中,数据库是DB2和SQL Server 2008
同样的代码在Dev和旧的Pre-prod服务器上工作正常,不知道为什么我收到这个错误。
是否有我错过的IIS配置设置?
请尽快帮助我
谢谢,
Ankur Bakliwal
----------------End of Error------------------------------------------------------------------
Please note that the application is in .Net 4.0 and the databases are DB2 and SQL Server 2008
Also the same code is working fine on Dev and old Pre-prod server, not sure why I am getting this error.
Is there any IIS config setting which I am missing?
Please help me ASAP
Thanks,
Ankur Bakliwal
推荐答案
这篇关于错误“对象引用未设置为对象的实例。”在.net应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!