I have encountered this issue too:
[VerificationException: Operation could destabilize the runtime.]
System.Web.WebPages.Deployment.PreApplicationStartCode.Start() +11
[InvalidOperationException: The pre-application start initialization method Start on type System.Web.WebPages.Deployment.PreApplicationStartCode threw an exception with the following error message: Operation could destabilize the runtime..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +1031
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +238
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +168
System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1037
[HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.WebPages.Deployment.PreApplicationStartCode threw an exception with the following error message: Operation could destabilize the runtime..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +683
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +176
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +797
I am using aqtime v8.0.264.7 on Windows8.
I started aqtime "as administrator" and tried to set UAC to "never notify" but the error remains.
My target app is designed for FW4.0. I published it on the local IIS and it is started successfully without AQTime. I tried both 'ASP.NET' and 'IIS' options in aqtime, the error occurs always.
Does aqtime designed to profile ASP.NET FW 4.0 applications or should I use another tool to profile my app?