在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.请告诉我为什么会发生这件事,以及如何解决这个问题。
全错误为
程序集加载跟踪:以下信息有助于确定程序集'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll‘无法加载的原因。
===预绑定状态信息===日志:==== HOME-PC\HOME日志:Where。Location = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll LOG: Appbase = file:///G:/Jagadeeswaran/Test Project/MobileApp/ LOG:初始PrivatePath = G:\Jagadeeswaran\Test \MobileApp\bin调用程序集:(未知)。===日志:这个绑定在LoadFrom加载上下文中启动。WRN:本地图像不会在LoadFrom上下文中被探测。本机映像将仅在默认加载上下文中被探测,如Assembly.Load()。日志:使用应用程序配置文件: G:\Jagadeeswaran\Test Project\MobileApp\MobileApp\MobileApp\web.config日志:使用主机配置文件: LOG:使用来自C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.的机器配置文件日志:尝试下载新的URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/bd6e4bde/6cbdacc0/App_global.asax.j5j-uxp-.dll.
堆栈跟踪:
'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary :无法加载文件或程序集FileNotFoundException
Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll‘或其依赖项之一。系统找不到指定的文件。System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,RuntimeAssembly assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,Boolean,Boolean,Boolean ) +0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,Evidence,RuntimeAssembly,StackCrawlMark& stackMark,Boolean,Boolean ) +39,证据,StackCrawlMark& #en23,布尔,Boolean ) +132 (en28#,+28 System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() +93 System.Web.Compilation.BuildProvider.CreateBuildResult(CompilerResults ) +65 System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults ( assemblySecurity) +16 System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +8999743 System.Web.Compilation.BuildManager.CompileGlobalAsax() +50 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +265
'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary (0x80004005):无法加载文件或程序集HttpException
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
'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary (0x80004005):无法加载文件或程序集HttpException
Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll‘或其依赖项之一。系统找不到指定的文件。( System.Web.HttpRuntime.FirstRequestInit(HttpContext上下文) +8972180 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext上下文) +97 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
因此,我也安装了Vs 2010,但同样的错误重复。
请帮我解决这个问题。
发布于 2012-03-28 12:53:17
检查Visual项目中是否禁用了CopyLocal并启用它。似乎有些程序集依赖项没有复制到临时文件夹中,因此您将得到运行时绑定错误。
https://stackoverflow.com/questions/9907837
复制相似问题