小编rec*_*lde的帖子

执行_AppStart时无法创建存储范围

使用ASP.NET MVC 3.0与Visual Studio 2010(SP1之前和SP1)和ASP.NET开发服务器我每次调试时都会收到错误" 当_AppStart正在执行时无法创建存储范围. " 当我等待几秒钟并刷新浏览器时,它按预期工作.

  • 这会发生在每个人身上吗?
  • 有没有办法防止它?
  • 在生产中我应该关注这个吗?(IIS 6/7主机)

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)

asp.net-mvc-3

19
推荐指数
1
解决办法
9210
查看次数

标签 统计

asp.net-mvc-3 ×1