简体   繁体   English

当前Web请求执行期间发生未处理的异常

[英]An unhandled exception occurred during the execution of the current web request

suddenly when i run my web application i get this error : 突然,当我运行我的Web应用程序时,出现此错误:

Could not load file or assembly 'file:///C:\\Users\\rafael\\AppData\\Local\\Temp\\Temporary ASP.NET Files\\root\\284bddf3\\431c8965\\App_Web_homepage.aspx.cdcab7d2.vmizb1js.dll' or one of its dependencies. 无法加载文件或程序集'file:/// C:\\ Users \\ rafael \\ AppData \\ Local \\ Temp \\ Temporary ASP.NET Files \\ root \\ 284bddf3 \\ 431c8965 \\ App_Web_homepage.aspx.cdcab7d2.vmizb1js.dll'或以下之一它的依赖性。 The handle is invalid. 句柄无效。 (Exception from HRESULT: 0x80070006 (E_HANDLE)) (来自HRESULT的异常:0x80070006(E_HANDLE))

Here's the stack trace: 这是堆栈跟踪:

FileLoadException: Could not load file or assembly 'file:///C:\Users\rafael\AppData\Local\Temp\Temporary ASP.NET Files\root\284bddf3\431c8965\App_Web_homepage.aspx.cdcab7d2.vmizb1js.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) +60
   System.Web.Compilation.TemplateControlBuildProvider.CreateBuildResult(CompilerResults results) +36
   System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults results) +16
   System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +9086138
   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.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +517

[HttpException (0x80004005): Error executing child request for /homepage.aspx.]
   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +816
   System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +57
   System.Web.HttpServerUtility.Transfer(String path) +32
   photography.Global.Application_BeginRequest(Object sender, EventArgs e) in F:\Web Prog\my work\mcpd\gallery\photography\photography\Global.asax.cs:27
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

I have no idea what's it all about. 我不知道这是怎么回事。 So i'd be grateful if i got any help. 因此,如果能得到任何帮助,我将不胜感激。

Do you have the option to stop and restart the website ? 您可以选择stop and restart the website吗?

This should, in theory, recycle the application pool for your site , which might be enough to correct the problem. 从理论上讲,这应该recycle the application pool for your site ,这可能足以纠正问题。

I hope this will help to you. 希望对您有帮助。

Do the following on your Server: 在服务器上执行以下操作:

  1. Open the command prompt and run the following command: 打开命令提示符并运行以下命令:
  2. C:\\WINDOWS\\Microsoft.NET.NET Framework\\Framework Version\\aspnet_regiis.exe -i C:\\ WINDOWS \\ Microsoft.NET.NET Framework \\ Framework版本\\ aspnet_regiis.exe -i

Where .NET framework version can be replaced with the .NET framework of your application project. 可以用应用程序项目的.NET框架替换.NET框架版本的地方。 either v2.0.50727 or 4.0 etc v2.0.50727或4.0等

Try running the application again and you'll be fine. 再次尝试运行该应用程序,一切都会好起来的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当前Web请求“Ненайденуказанныймодуль”的执行期间发生未处理的异常 - An unhandled exception occurred during the execution of the current web request, “Не найден указанный модуль” 执行当前 Web 请求期间发生未处理的异常。 ASP.NET - An unhandled exception occurred during the execution of the current web request. ASP.NET 如何修复“在执行当前 Web 请求期间发生未处理的异常。” - How to fix "An unhandled exception occurred during the execution of the current web request. " 当前Web请求的执行期间发生未处理的异常。 型号兼容性无法检查 - An unhandled exception occurred during the execution of the current web request. Model compatibility cannot be checked Sitecore MVC-在执行当前Web请求期间生成了未处理的异常 - Sitecore MVC - An unhandled exception was generated during the execution of the current web request 在执行当前Web请求asp net的过程中生成了未处理的异常 - an unhandled exception was generated during the execution of the current web request asp net 当前Web请求执行期间生成了未处理的异常 - An unhandled exception was generated during the execution of the current web request 在执行当前Web请求期间生成了未处理的异常。[HttpAntiForgeryException] - An unhandled exception was generated during the execution of the current web request.[HttpAntiForgeryException] 执行过程中发生未处理的异常 - An unhandled exception occurred during the execution 获取“在执行当前Web请求期间生成了未处理的异常。” 我的MVC UserManagementController中的错误 - Getting 'An unhandled exception was generated during the execution of the current web request.' Error in my MVC UserManagementController
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM