【发布时间】:2012-04-12 01:32:57
【问题描述】:
在我的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 文件\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll' 无法加载。
=== 预绑定状态信息 === LOG: User = HOME-PC\HOME LOG: Where-ref 绑定。位置 = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET 文件\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 调用程序集: (未知)。 === LOG:此绑定在 LoadFrom 加载上下文中开始。警告:将不会在 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 文件/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\TemporaryASP.NET 文件\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll' 或 它的依赖项之一。该系统找不到指定的文件。] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, 布尔 throwOnFileNotFound, Boolean for Introspection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, 布尔 throwOnFileNotFound, Boolean for Introspection, Boolean suppressSecurityChecks) +39 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,证据 assemblySecurity,StackCrawlMark 和 stackMark, Boolean for Introspection, Boolean suppressSecurityChecks) +132 System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) +28 System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() +93 System.Web.Compilation.BuildProvider.CreateBuildResult(编译器结果 结果)+65 System.Web.Compilation.BuildProvider.GetBuildResult(编译器结果 结果)+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\TemporaryASP.NET 文件\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, 异常 appDomainCreationException) +691
[HttpException (0x80004005): Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\TemporaryASP.NET 文件\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 但是同样的错误重复。
请帮我解决这个问题。
【问题讨论】:
-
我不认为重新安装Visual Studio会解决它,尝试重新安装.Net framework 4,然后再次将您的站点发布到IIS并确保它在IIS下使用Framework 4
-
vs 2010 包含框架。
-
昨天还可以。但不是现在为什么?我没有改变任何东西。
-
重新安装框架也帮不了我。
标签: asp.net