gpt4 book ai didi

structuremap3 - "Operation could destabilize the runtime"在 StructureMap 应用程序上使用 ANTS 分析器时

转载 作者:行者123 更新时间:2023-12-04 06:18:01 24 4
gpt4 key购买 nike

我们最近升级了一个 web/mvc 应用程序以使用 StrucutreMap 3.0.4

现在,当尝试在“Line Level Timings, All Methods with Source”或更高级别使用 RedGate Ant 的分析器分析应用程序时,我们收到以下错误

Operation could destabilize the runtime.

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.

Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.

Source Error:


Line 174:
Line 175: Initialise(context);
Line 176: ObjectFactory.Initialize(x => { x.AddRegistry<BWebsiteIoc>(); });
Line 177: }
Line 178: }

Source File: c:\_Development\NT\Platform\WebSite\Global.asax.cs Line: 176

Stack Trace:


[VerificationException: Operation could destabilize the runtime.]
StructureMap.ObjectFactory.Initialize(Action`1 action) in c:\BuildAgent\work\996e173a8ceccdca\src\StructureMap\ObjectFactory.cs:42
Nga.Platform.Website.FirstRequestInitialisation.Initialise(HttpContext context) in c:\_Development\NT\Platform\WebSite\Global.asax.cs:176
Nga.Platform.Website.MvcApplication.Application_BeginRequest(Object source, EventArgs e) in c:\_Development\NT\Platform\WebSite\Global.asax.cs:106
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +182
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

我尝试按照 http://documentation.red-gate.com/display/APP8/Operation+could+destabilize+the+runtime+error+profiling+ASP.NET 在 web.config 中添加到 system.web

最佳答案

可能是一个老问题,但它仍然是我在谷歌结果中的第一个问题,所以这里是。

我能够通过在分析之前删除结构图的 pdb 文件来解决这个问题。

关于structuremap3 - "Operation could destabilize the runtime"在 StructureMap 应用程序上使用 ANTS 分析器时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24834404/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com