2016-05-04 227 views
0

我有任务使用说明部署Web应用程序。我做到了根据指示,但我有麻烦,同时打开的应用程序的主页:部署Web应用程序

[NullReferenceException异常:未设置为一个对象的实例对象引用] ASP.global_asax.GetCurrentUsersDomainName()312 ASP.global_asax.Session_Start(Object sender,EventArgs e)+44 System.Web.SessionState.SessionStateModule.CompleteAcquireState()+409 System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source,EventArgs e,AsyncCallback cb,Object extraData)+1268 System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+12335126 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,B oolean & completedSynchronously)+288

有没有人有想法如何解决这个问题?

回答

0

这意味着你在试图操纵一个空的对象,如果你可以更新你的代码的问题,我可以确切地告诉那里的问题是

+0

比较你的会话/串..访问之前......如果(会话[“testsession”]!= null)像这样... –