我好像撞到了一堵墙,我无法通过。我已经从IIS 6移到IIS 7.5,并从cms 5升级到6。现在启动它时,我会得到以下异常。我确信我的web.config中缺少了一些东西,但我无法弄清楚它是什么。我们非常感谢所有的帮助。
System.TypeInitializationException: The type initializer for 'EPiServer.Security.PrincipalInfo' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Configuration.Settings.get_Instance()
at EPiServer.UriSupport.get_InternalUIUrl()
at EPiServer.UriSupport.get_UIUrl()
at EPiServer.UriSupport.ResolveUrlFromUIBySettings(String path)
at EPiServer.Security.PrincipalInfo..cctor()
--- End of inner exception stack trace ---
at EPiServer.Security.PrincipalInfo.get_CurrentPrincipal()
at EPiServer.Security.VirtualRolePrincipal.VirtualRolePrincipal_PostAuthenticateRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)发布于 2011-08-12 07:05:28
似乎要加载指定文件的<scanAssembly forceBinFolderScan="false">在EpiServerFramework.config中似乎不起作用。使用反射器进行调试表明,它根本没有加载任何模块。改为真解决了问题。
仍然不知道为什么它没有加载指定的。
发布于 2015-06-04 02:57:28
我尝试了将scanAssembly设置更改为True的解决方案。
<scanAssembly forceBinFolderScan="false">这个解决方案对我无效。当我能够将web.config转换为使用IIS7时,我修复了我的问题。
该解决方案是在CMD中执行的,它具有管理权限--命令:
C:\Windows\System32\inetsrv\Appcmd migrate config "Default Web Site/"这里的一个窍门是使用/在网站名称的末尾。
https://stackoverflow.com/questions/6981306
复制相似问题