问题描述
昨天我的项目顺利运行,但今天,我面临的一个错误。下面是详细信息:
Yesterday my project was running smoothly but today I'm facing an error. Here are the details:
无法加载文件或程序集文件:/// C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET文件\\ parktms \\ c8392404 \\ 1ba3bab5 \\ App_Web_login.aspx.6cc23264.lmj8uym6。 DLL或它的一个依赖。句柄无效。 (从HRESULT异常:0x80070006(E_HANDLE))
说明:执行当前Web请求的执行过程中发生未处理的异常。请检查堆栈跟踪有关该错误的详细信息以及它起源于code。
异常详细信息:
System.IO.FileLoadException:无法加载文件或程序集文件:/// C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET文件\\ parktms \\ c8392404 \\ 1ba3bab5 \\ App_Web_login。 aspx.6cc23264.lmj8uym6.dll或它的一个依赖。句柄无效。 (从HRESULT异常:0x80070006(E_HANDLE))
源错误:
当前Web请求的执行过程中生成了未处理的异常。可以使用异常堆栈跟踪下面确定有关异常原因和位置信息。
堆栈跟踪:
[FileLoadException:未能加载文件或程序集文件:/// C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET文件\\ parktms \\ c8392404 \\ 1ba3bab5 \\ App_Web_login.aspx.6cc23264 .lmj8uym6.dll或它的一个依赖。句柄无效。 (从HRESULT异常:0x80070006(E_HANDLE))]
System.Reflection.RuntimeAssembly._nLoad(的AssemblyName文件名,字符串codeBase类,证据assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark&安培; stackMark,布尔throwOnFileNotFound,布尔forIntrospection,布尔SUP pressSecurityChecks)+ 0
System.Reflection.RuntimeAssembly.nLoad(的AssemblyName文件名,字符串codeBase类,证据assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark&安培; stackMark,布尔throwOnFileNotFound,布尔forIntrospection,布尔SUP pressSecurityChecks)+39
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(的AssemblyName assemblyRef,证据assemblySecurity,StackCrawlMark&安培; stackMark,布尔forIntrospection,布尔SUP pressSecurityChecks)+132
System.Reflection.Assembly.Load(的AssemblyName assemblyRef,证据assemblySecurity)+28
系统codeDom.Compiler.CompilerResults.get_CompiledAssembly()+93
System.Web.Compilation.BuildProvider.CreateBuildResult(CompilerResults结果)+65
System.Web.Compilation.TemplateControlBuildProvider.CreateBuildResult(CompilerResults结果)+36
System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults结果)+16
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)8967378
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,布尔noBuild,布尔allowCrossApp,布尔allowBuildIn precompile,布尔throwIfNotFound,布尔ensureIsUpToDate)+ 320
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext的背景下,VirtualPath virtualPath,布尔noBuild,布尔allowCrossApp,布尔allowBuildIn precompile,布尔throwIfNotFound,布尔ensureIsUpToDate)+111
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath,HttpContext的背景下,布尔allowCrossApp,布尔throwIfNotFound)+125
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath,类型requiredBaseType,HttpContext的背景下,布尔allowCrossApp)+52
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext的背景下,字符串的RequestType,VirtualPath virtualPath,字符串physicalPath)+31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext的背景下,字符串的RequestType,VirtualPath virtualPath,字符串physicalPath)+ 40
System.Web.HttpApplication.MapHttpHandler(HttpContext的背景下,字符串的RequestType,VirtualPath路径,字符串pathTranslated,布尔useAppConfig)+167
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+128
System.Web.HttpApplication.ExecuteStep(IExecutionStep一步,布尔和放大器; completedSynchronously)184
版本信息:
Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.225
为什么我这个问题,我该如何摆脱它?
why am I having this problem and how do I get rid of it?
推荐答案
尝试执行一个完整的解决方案的构建。如果还是不行,请点击构建 - >清理解决方案
。如果错误仍然存在,删除Ç一切:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET文件\\ parktms
文件夹,重复
Try performing a full solution build. If that doesn't work, click Build -> Clean Solution
. If the error persists, delete everything in the C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\parktms
folder and repeat.
这篇关于无法加载文件或程序集“文件:/// C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\ asp.net VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!