每次加载ASP.NET MVC应用程序时重新启动web开发服务器

每次加载ASP.NET MVC应用程序时重新启动web开发服务器,asp.net,jquery,asp.net-mvc,Asp.net,Jquery,Asp.net Mvc,当我启动ASP.NET MVC应用程序并重新启动web开发服务器时,我不断遇到这个问题(下面是堆栈跟踪),然后它就消失了。当我在jquery中进行修改,然后尝试重新启动应用程序时,它似乎发生在 protected void Application_Start() { InitialiseIocContainer(); RegisterViewEngine(ViewEngines.Engines); Regis

当我启动ASP.NET MVC应用程序并重新启动web开发服务器时,我不断遇到这个问题(下面是堆栈跟踪),然后它就消失了。当我在jquery中进行修改,然后尝试重新启动应用程序时,它似乎发生在

protected void Application_Start()
        {
            InitialiseIocContainer();
            RegisterViewEngine(ViewEngines.Engines);
            RegisterRoutes(RouteTable.Routes);
            SetupLogging();
        }
它似乎在global.asax中启动应用程序。我在谷歌上做了很多搜索,但运气不好。它让我发疯

有人能帮忙吗

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

我认为这与SetupLogging()方法有关。运行站点的用户帐户是否对存储日志的文件路径具有读/写权限?

Visual Studio所有服务打包?VS2008还是2010?什么框架版本?似乎刚刚停止。对不起,伙计们不能解释为什么…无论如何谢谢你们的帮助