临时ASP.NET文件丢失

时间:2012-03-28 12:47:42

标签: asp.net

我的asp项目在运行时抛出错误。

昨天它很好用。但是今天早上它自我发出了以下信息。

   Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll' or one of its dependencies. The system cannot find the file specified.

请问任何一个人告诉我为什么它很开心以及如何解决这个问题。

完全错误

  

装配加载跟踪:以下信息可能对您有所帮助   确定装配的原因   “文件:/// C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \临时   ASP.NET Files \ root \ bd6e4bde \ 6cbdacc0 \ App_global.asax.j5j-uxp-.dll'   无法加载。

     

===预绑定状态信息===日志:用户= HOME-PC \ HOME日志:Where-ref绑定。位置=   C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET   Files \ root \ bd6e4bde \ 6cbdacc0 \ App_global.asax.j5j-uxp-.dll日志:Appbase   = file:/// G:/ Jagadeeswaran / Test Project / MobileApp / MobileApp / MobileApp / LOG:Initial PrivatePath = G:\ Jagadeeswaran \ Test   Project \ MobileApp \ MobileApp \ MobileApp \ bin调用程序集:   (未知)。   ===日志:此绑定在LoadFrom加载上下文中启动。警告:不会在LoadFrom上下文中探测本机映像。原生图像只会是   在默认加载上下文中进行探测,与Assembly.Load()一样。日志:使用   应用程序配置文件:G:\ Jagadeeswaran \ Test   Project \ MobileApp \ MobileApp \ MobileApp \ web.config日志:使用主机   配置文件:日志:使用机器配置文件   C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ CONFIG \ machine.config中。   日志:尝试下载新网址   文件:/// C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary   ASP.NET Files / root / bd6e4bde / 6cbdacc0 / App_global.asax.j5j-uxp-.dll。

     

堆栈追踪:

[FileNotFoundException: Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary
     

ASP.NET Files \ root \ bd6e4bde \ 6cbdacc0 \ App_global.asax.j5j-uxp-.dll'或   其中一个依赖项。该系统找不到指定的文件。]          System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly   locationHint,StackCrawlMark& stackMark,Boolean throwOnFileNotFound,   Boolean forIntrospection,Boolean suppressSecurityChecks)+0          System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly   locationHint,StackCrawlMark& stackMark,Boolean throwOnFileNotFound,   Boolean forIntrospection,Boolean suppressSecurityChecks)+39          System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(的AssemblyName   assemblyRef,Evidence assemblySecurity,StackCrawlMark& stackMark,   Boolean forIntrospection,Boolean suppressSecurityChecks)+132          System.Reflection.Assembly.Load(AssemblyName assemblyRef,Evidence assemblySecurity)+28          System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()+93          System.Web.Compilation.BuildProvider.CreateBuildResult(CompilerResults   结果)+65          System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults   结果)+16          System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(布尔   isPrecompiledApp)+8999743          System.Web.Compilation.BuildManager.CompileGlobalAsax()+50          System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()+265

[HttpException (0x80004005): Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary
     

ASP.NET Files \ root \ bd6e4bde \ 6cbdacc0 \ App_global.asax.j5j-uxp-.dll'或   其中一个依赖项。该系统找不到指定的文件。]          System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()   +62          System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()+ 421          System.Web.Compilation.BuildManager.CallAppInitializeMethod()+31          System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager   appManager,IApplicationHost appHost,IConfigMapPathFactory   configMapPathFactory,HostingEnvironmentParameters hostingParameters,   PolicyLevel policyLevel,Exception appDomainCreationException)+691

[HttpException (0x80004005): Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary
     

ASP.NET Files \ root \ bd6e4bde \ 6cbdacc0 \ App_global.asax.j5j-uxp-.dll'或   其中一个依赖项。该系统找不到指定的文件。]          System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+8972180          System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)+97          System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)+258

所以我重新安装了Vs 2010但是同样的错误重复。

请帮我解决这个问题。

1 个答案:

答案 0 :(得分:2)

检查您是否在Visual Studio项目中禁用了CopyLocal并启用它。似乎某些程序集依赖项未复制到临时文件夹,并且您得到运行时绑定错误。