无法加载文件或程序集 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319asp.net vs2010 [英] Could not load file or assembly 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319 asp.net vs2010

查看:84
本文介绍了无法加载文件或程序集 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319asp.net vs2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我的项目运行顺利,但今天我遇到了错误.详情如下:

Yesterday my project was running smoothly but today I'm facing an error. Here are the details:

无法加载文件或程序集'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktmsc83924041ba3bab5App_Web_login.aspx.6cc23264.lmj8uym6.dll' 或其依赖项之一.句柄无效.(来自 HRESULT 的异常:0x80070006 (E_HANDLE))说明:在执行当前 Web 请求期间发生未处理的异常.请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息.

Could not load file or assembly 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktmsc83924041ba3bab5App_Web_login.aspx.6cc23264.lmj8uym6.dll' or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

异常详情:

System.IO.FileLoadException: 无法加载文件或程序集 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktmsc83924041ba3bab5App_Web_login.aspx.6cc23264.lmj8uym6.dll' 或其依赖项之一.句柄无效.(来自 HRESULT 的异常:0x80070006 (E_HANDLE))

System.IO.FileLoadException: Could not load file or assembly 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktmsc83924041ba3bab5App_Web_login.aspx.6cc23264.lmj8uym6.dll' or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

源错误:

在执行当前 Web 请求期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来识别有关异常来源和位置的信息.

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

堆栈跟踪:

[FileLoadException: 无法加载文件或程序集 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktmsc83924041ba3bab5App_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 for Introspection, Boolean抑制SecurityChecks) +0System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean for Introspection, Boolean抑制SecurityChecks) +39System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean for Introspection, Boolean SuppressSecurityChecks) +132System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) +28System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() +93System.Web.Compilation.BuildProvider.CreateBuildResult(CompilerResults results) +65System.Web.Compilation.TemplateControlBuildProvider.CreateBuildResult(CompilerResults results) +36System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults results) +16System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +8967378System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +320System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +111System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +125System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +52System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +167System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

[FileLoadException: Could not load file or assembly 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktmsc83924041ba3bab5App_Web_login.aspx.6cc23264.lmj8uym6.dll' or one of its dependencies. The handle is invalid. (Exception from 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

版本信息:

微软.NET框架版本:4.0.30319;ASP.NET 版本:4.0.30319.225

Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

为什么我会遇到这个问题,我该如何解决?

why am I having this problem and how do I get rid of it?

推荐答案

尝试执行完整的解决方案构建.如果这不起作用,请单击 Build ->清洁解决方案.如果错误仍然存​​在,请删除 C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktms 文件夹中的所有内容并重复.

Try performing a full solution build. If that doesn't work, click Build -> Clean Solution. If the error persists, delete everything in the C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesparktms folder and repeat.

这篇关于无法加载文件或程序集 'file:///C:WINDOWSMicrosoft.NETFrameworkv4.0.30319asp.net vs2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆