昨天我的项目运行顺利,但今天我遇到了一个错误。以下是详细信息:
无法加载文件或程序集'file:/// C:\ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ parktms \ c8392404 \ 1ba3bab5 \ App_Web_login.aspx.6cc23264.lmj8uym6。 dll'或其依赖项之一。句柄无效。 (HRESULT异常:0x80070006(E_HANDLE)) 描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪,以获取有关错误及其在代码中的起源位置的更多信息。
异常详细信息:
System.IO.FileLoadException:无法加载文件或程序集'file:/// C:\ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ parktms \ c8392404 \ 1ba3bab5 \ App_Web_login。 aspx.6cc23264.lmj8uym6.dll'或其依赖项之一。句柄无效。 (HRESULT异常:0x80070006(E_HANDLE))
来源错误:
在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。
堆栈追踪:
[FileLoadException:无法加载文件或程序集'file:/// C:\ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ parktms \ c8392404 \ 1ba3bab5 \ App_Web_login.aspx.6cc23264 .lmj8uym6.dll'或其依赖项之一。句柄无效。 (HRESULT异常:0x80070006(E_HANDLE))] 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.TemplateControlBuildProvider.CreateBuildResult(CompilerResults results)+36 System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults results)+16 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)+8967378 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,Boolean noBuild,Boolean allowCrossApp,Boolean allowBuildInPrecompile,Boolean throwIfNotFound,Boolean ensureIsUpToDate)+320 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context,VirtualPath virtualPath,Boolean noBuild,Boolean allowCrossApp,Boolean allowBuildInPrecompile,Boolean throwIfNotFound,Boolean ensureIsUpToDate)+111 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath,HttpContext context,Boolean allowCrossApp,Boolean throwIfNotFound)+125 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath,Type requiredBaseType,HttpContext context,Boolean allowCrossApp)+52 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,String requestType,VirtualPath virtualPath,String physicalPath)+31 System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context,String requestType,VirtualPath virtualPath,String physicalPath)+40 System.Web.HttpApplication.MapHttpHandler(HttpContext context,String requestType,VirtualPath path,String pathTranslated,Boolean useAppConfig)+167 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+128 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously)+184
版本信息:
Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.225
为什么我遇到这个问题,如何摆脱它?
答案 0 :(得分:15)
尝试执行完整的解决方案构建。如果这不起作用,请单击Build -> Clean Solution
。如果错误仍然存在,请删除C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\parktms
文件夹中的所有内容并重复。
答案 1 :(得分:0)
当你看到它有临时文件夹时,你应该猜测在清理和构建之后一切都会好起来