在我的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.
请问任何人告诉我为什么它很开心以及如何解决这个问题.
完全错误是
Assembly Load Trace: The following information can be helpful to
determine why the assembly
‘file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary
ASP.NET Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll’
could not be loaded.=== Pre-bind state information === LOG: User = HOME-PC\HOME LOG: Where-ref bind. 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/MobileApp/MobileApp/ LOG: Initial PrivatePath = G:\Jagadeeswaran\Test
Project\MobileApp\MobileApp\MobileApp\bin Calling assembly :
(Unknown).
=== LOG: This bind starts in LoadFrom load context. WRN: Native image will not be probed in LoadFrom context. Native image will only be
probed in default load context, like with Assembly.Load(). LOG: Using
application configuration file: G:\Jagadeeswaran\Test
Project\MobileApp\MobileApp\MobileApp\web.config LOG: Using host
configuration file: LOG: Using machine configuration file from
C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL
file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary
ASP.NET Files/root/bd6e4bde/6cbdacc0/App_global.asax.j5j-uxp-.dll.Stack Trace:
06001
ASP.NET Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll’ or
one of its dependencies. The system cannot find the file specified.]
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
results) +65
System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults
results) +16
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean
isPrecompiledApp) +8999743
System.Web.Compilation.BuildManager.CompileGlobalAsax() +50
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +26506002
ASP.NET Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll’ or
one of its dependencies. The system cannot find the file specified.]
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) +69106002
ASP.NET Files\root\bd6e4bde\6cbdacc0\App_global.asax.j5j-uxp-.dll’ or
one of its dependencies. The system cannot find the file specified.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8972180
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
所以我重新安装Vs 2010但是同样的错误重复.
请帮我解决这个问题.
最佳答案 检查您是否在Visual Studio项目中禁用了CopyLocal并启用它.似乎某些程序集依赖项未复制到临时文件夹,并且您得到运行时绑定错误.