在升级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
答案 0 :(得分:1)
我能够通过将全新安装的7.1.2的web.config与我升级的实例进行比较来解决这个问题。我做了很多更改,我不确定哪一个有所不同,但似乎问题是web.config设置不正确。
答案 1 :(得分:0)
我使用了here
发布的解决方案“编辑了web.config并将所有3.5.0.0的条目替换为4.0.0.0(是的,全部替换)” 然后我执行了升级,这次没有遇到错误。