2009-12-09 60 views
1

当我启动我的ASP.NET MVC应用程序并且必须重新启动Web开发服务器,然后它消失时,我不断得到此问题(下面的堆栈跟踪)。当我在我的jQuery中进行修改,然后尝试重新启动应用程序时,它似乎正在发生。每次加载ASP.NET MVC应用程序时重新启动web dev服务器

protected void Application_Start() 
     { 
      InitialiseIocContainer(); 
      RegisterViewEngine(ViewEngines.Engines); 
      RegisterRoutes(RouteTable.Routes); 
      SetupLogging(); 
     } 

它似乎得到了在global.asax的Application_start caudth。我在谷歌做了很多搜索,但没有运气。它驾驶我的保险箱!

任何人都可以帮助请

Server Error in '/' Application. 
-------------------------------------------------------------------------------- 

Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) 
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.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) 

Source Error: 


Line 30:    RegisterRoutes(RouteTable.Routes); 
Line 31:    SetupLogging(); 
Line 32:   } 
Line 33: 
Line 34:   private void SetupLogging() 


Source File: C:\UserData\SourceControl\LLNP4\Trunk\Web\Global.asax.cs Line: 32 

Stack Trace: 


[FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)] 
    LLNP4.MvcApplication.Application_Start() in C:\UserData\SourceControl\LLNP4\Trunk\Web\Global.asax.cs:32 
+0

Visual Studio的所有服务都打包好了吗? VS2008还是2010?什么框架版本? – curtisk

+0

似乎刚刚停止。抱歉,家伙们无法解释为什么...无论如何感谢帮助 – kurasa

回答

0

我要说它与设置→()方法来做。运行该网站的用户帐户是否具有对存储日志的文件路径的读/写访问权限?

相关问题