使用ASP.NET MVC 3.0与Visual Studio 2010(SP1之前和SP1)和ASP.NET开发服务器我每次调试时都会收到错误" 当_AppStart正在执行时无法创建存储范围. " 当我等待几秒钟并刷新浏览器时,它按预期工作.
codeplex上的相关工作项目#7828没有官方回复.
完整堆栈跟踪:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Storage scopes cannot be created when _AppStart is executing.
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.InvalidOperationException: Storage scopes cannot be created when _AppStart is executing.
Source Error:
An …Run Code Online (Sandbox Code Playgroud)