2009-12-09 61 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

我要說它與設置→()方法來做。運行該網站的用戶帳戶是否具有對存儲日誌的文件路徑的讀/寫訪問權限?

相關問題