1

在升级 DNN 期间出现以下错误 System.NullReferenceException:

Server Error in '/' 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.]
   DotNetNuke.Common.Globals.get_Status() +78
   DotNetNuke.Entities.Urls.RewriterUtils.OmitFromRewriteProcessing(String localPath) +39
   DotNetNuke.HttpModules.RequestFilter.RequestFilterModule.FilterRequest(Object sender, EventArgs e) +207
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
4

2 回答 2

1

我可以通过将全新安装的 7.1.2 的 web.config 与升级后的实例进行比较来解决此问题。我进行了很多更改,但我不确定是哪一个有所作为,但似乎问题出在不正确的 web.config 设置上。

于 2013-11-11T18:02:15.373 回答
0

我使用了此处发布的解决方案

“编辑 web.config 并将 3.5.0.0 的所有条目替换为 4.0.0.0(是的,全部替换)” 然后我执行了升级,这次没有遇到错误。

于 2014-10-23T18:18:31.830 回答