首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >临时ASP.NET文件丢失

临时ASP.NET文件丢失
EN

Stack Overflow用户
提问于 2012-03-28 12:47:42
回答 1查看 5.7K关注 0票数 5

在asp项目中,在运行时抛出错误。

昨天它运行得很好。但今天早上它自己,它给了下面的信息。

代码语言:javascript
复制
   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,但同样的错误重复。

请帮我解决这个问题。

EN

回答 1

Stack Overflow用户

发布于 2012-03-28 12:53:17

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9907837

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档