加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

处理asp:ScriptManager时,mscorlib.dll中的asp.net – Executio

发布时间:2020-12-16 06:34:19 所属栏目:asp.Net 来源:网络整理
导读:我刚刚在.aspx页面中使用asp:ScriptManger标记在本地运行任何现有的ASP.NET应用程序时,刚刚开始获得ExecutionEngineException(80131506). 错误消息是: Application: w3wp.exeFramework Version: v4.0.30319Description: The process was terminated due to
我刚刚在.aspx页面中使用asp:ScriptManger标记在本地运行任何现有的ASP.NET应用程序时,刚刚开始获得ExecutionEngineException(80131506).

错误消息是:

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FFB75209A99 (00007FFB75170000) with exit code 80131506.

这个问题在我获得Windows 10周年更新后开始发生,所以我认为这些可能是相关的,但这只是猜测.

以下是我目前的发现:

>它发生在我的所有现有应用程序上,这些应用程序在我的机器上本地运行时具有ScriptManagers.其中许多我没有更新超过一年.并且在其他非Windows 10 Anniversary机器上仍然可以正常工作.我们没有其他开发人员使用最新的Windows 10更新来测试它.
>我得到了所有持续的Windows更新
>我尝试过以前版本的应用程序(以防万一)
>我首先进行了修复,然后卸载并重新安装了Visual Studio 2013
>我在Windows功能中关闭了IIS和.NET
>我清除了asp.net临时文件
> DebugDiag输出显示以下内容:

.NET Call Stack

[[HelperMethodFrame_2OBJ]
(System.Reflection.PseudoCustomAttribute._GetSecurityAttributes)]
System.Reflection.PseudoCustomAttribute._GetSecurityAttributes(System.Reflection.RuntimeModule,
Int32,Boolean,System.Object[]ByRef)
mscorlib_ni!System.Reflection.PseudoCustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly,
System.RuntimeType,Int32 ByRef)+13b
mscorlib_ni!System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly,
System.RuntimeType)+26
mscorlib_ni!System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean)+26
System_Web_Extensions_ni!System.Web.UI.AssemblyCache.SafeGetAjaxFrameworkAssemblyAttribute(System.Reflection.ICustomAttributeProvider)+1f
System_Web_Extensions_ni!System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(System.Reflection.Assembly)+3e
System_Web_Extensions_ni!System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly()+181 System_Web_Extensions_ni!System.Web.UI.ScriptManager..ctor()+1c
ASP.includes_donorsearch_ascx.__BuildControlScriptManager1()+4e
ASP.includes_donorsearch_ascx.__BuildControlTree(ASP.includes_donorsearch_ascx)+72 ASP.includes_donorsearch_ascx.FrameworkInitialize()+3c
System_Web_ni!System.Web.UI.UserControl.InitializeAsUserControlInternal()+25 System_Web_ni!System.Web.UI.UserControl.InitializeAsUserControl(System.Web.UI.Page)+14
ASP.donorsearch_aspx.__BuildControlDonorSearch1()+87
ASP.donorsearch_aspx.__BuildControlcontentDefault(System.Web.UI.Control)+68
System_Web_ni!System.Web.UI.CompiledTemplateBuilder.InstantiateIn(System.Web.UI.Control)+10
System_Web_ni!System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(System.Web.UI.Control,
System.Web.UI.ITemplate)+59
ASP._primary_master.__BuildControlprimaryContent()+114
ASP._primary_master.__BuildControlform3()+120
ASP._primary_master.__BuildControlTree(ASP._primary_master)+ef
ASP._primary_master.FrameworkInitialize()+3c
System_Web_ni!System.Web.UI.UserControl.InitializeAsUserControlInternal()+25 System_Web_ni!System.Web.UI.MasterPage.CreateMaster(System.Web.UI.TemplateControl,
System.Web.HttpContext,System.Web.VirtualPath,
System.Collections.IDictionary)+2a1
System_Web_ni!System.Web.UI.Page.get_Master()+38
System_Web_ni!System.Web.UI.Page.ApplyMasterPage()+f
System_Web_ni!System.Web.UI.Page.PerformPreInit()+34
System_Web_ni!System.Web.UI.Page.ProcessRequestMain(Boolean,
Boolean)+129 System_Web_ni!System.Web.UI.Page.ProcessRequest(Boolean,
Boolean)+85 System_Web_ni!System.Web.UI.Page.ProcessRequest()+49
System_Web_ni!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext)+17
System_Web_ni!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)+3b
ASP.donorsearch_aspx.ProcessRequest(System.Web.HttpContext)+26
System_Web_ni!System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+bd
System_Web_ni!System.Web.HttpApplication.ExecuteStep(IExecutionStep,
Boolean ByRef)+46
System_Web_ni!System.Web.HttpApplication+PipelineStepManager.ResumeSteps(System.Exception)+427
System_Web_ni!System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext,
System.AsyncCallback)+60
System_Web_ni!System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest,
System.Web.HttpContext)+bb
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr,
IntPtr,IntPtr,Int32)+32f [[InlinedCallFrame]]
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr,Int32)+1f
System_Web_ni!DomainNeutralILStubClass.IL_STUB_PInvoke(IntPtr,
System.Web.RequestNotificationStatus ByRef)+3d [[InlinedCallFrame]]
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr,Int32)+4d2 [[InlinedCallFrame]]
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr,Int32)+1f [[ContextTransitionFrame]]

看起来在构建控件ScriptManager期间Ajax回调中发生了错误.

ASP.includes_donorsearch_ascx.__BuildControlScriptManager1

>我还注意到,当我尝试使用JetBrains dotTrace跟踪问题时,没有发生错误. dotTrace关闭IIS服务并直接运行它.

我目前的猜测是,我的机器上的某些东西搞砸了,或者Windows 10周年纪念版引入了这个问题.

谁以前见过这个问题?虽然错误总是发生在ScriptManger中,因为这个错误与GC有关,我想知道问题是否存在于其他地方并且只是在这里出现.

我知道这不是很多,但我认为其他人可能遇到同样的问题?

谢谢.
约瑟夫

解决方法

除了回滚到以前的Windows版本之外,您是否能够找到解决此问题的方法?我们看到完全相同的行为,我们已经在多台计算机上确认它在更新到周年纪念更新后出现.我在这里记录了一个错误: https://connect.microsoft.com/VisualStudio/feedback/details/3111237/access-violation-exception-in-blobtoattributeset-instruction-in-clr-dll

更新:我能够使用调试器(通过设置VS调试器来启用.NET Framework调试并下载所有必需的符号)来查看调用mscorlib的System的异常堆栈跟踪中引用的代码中的断点. Reflection.RuntimeAssembly.GetCustomAttributes() – 对我们来说,它是Owin.Loader.DefaultLoader.SearchForStartupAttribute().

最终,我能够确切地弄清楚哪个程序集正在处理并导致异常被抛出.对我们来说,它是Sax.Barcodes.ASP.dll,一个不再积极维护的古老集会.幸运的是,我们将能够从我们的网站代码中删除对此程序集的所有引用(我们很可能早就应该这样做了).

我建议你在调试器中解决这个问题,并精确确定哪个程序集导致mscorlib阻止.这样您就可以确切地知道要向谁投诉(或者您需要哪种集会日落).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读