[没有相关的源行]
[NullReferenceException: 未将对象引用设置到对象的实例。] System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name) +1802 System.Web.Hosting.ISAPIWorkerRequest.ReadRequestHeaders() +121 System.Web.Hosting.ISAPIWorkerRequest.GetKnownRequestHeader(Int32 index) +84 System.Web.Configuration.HttpCapabilitiesEvaluator.GetUserAgent(HttpRequest request) +68 System.Web.Configuration.HttpCapabilitiesEvaluator.Evaluate(HttpRequest request) +50 System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) +162 System.Web.HttpRequest.get_Browser() +134 System.Web.UI.Page.SetIntrinsics(HttpContext context, Boolean allowAsync) +274 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +11 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_hafzi8vt.26.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
可能是发布的时候出问题了,你可以修改web.config把错误抛出来看看是哪里的问题
可以试着先发布源代码到IIS中,等确实可以正常运行 后再发布编译版本
兄弟是不是忘记了在IIS上修改默认的ASP.NET版本啊,默认的是1.1,要修改为2.0。
另外,如果是IIS6.0,那么要给NetworkService用户组适当的权限