ANTS Crashing ASPNET Dev IIS Server on Profiler Launch

Code profiling for .NET developers.

Moderators: AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton

ANTS Crashing ASPNET Dev IIS Server on Profiler Launch

Postby madmunki » Mon Jul 16, 2012 6:50 pm

When I start ANTS with Performance Profiler, it crashes the Web Server.

OS: Windows 7, 64x

Error Displayed:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: webdev.webserver40.exe
Problem Signature 02: 10.0.40219.1
Problem Signature 03: 4d5f345a
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.30319.17626
Problem Signature 06: 4f9f0f5d
Problem Signature 07: 269a
Problem Signature 08: 0
Problem Signature 09: System.AccessViolationException
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 029f
Additional Information 2: 029f6e7c4db821d44d2fcba709b6d187
Additional Information 3: bd6c
Additional Information 4: bd6c3ebca020de55ca9d15222b028fef

Error 1 in Event Viewer:
Faulting application name: WebDev.WebServer40.exe, version: 10.0.40219.1, time stamp: 0x4d5f345a
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0xe0434352
Fault offset: 0x0000b9bc
Faulting process id: 0x718
Faulting application start time: 0x01cd6378c9614742
Faulting application path: C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\DevServer\\10.0\\WebDev.WebServer40.exe
Faulting module path: C:\\Windows\\syswow64\\KERNELBASE.dll
Report Id: 0af20861-cf6c-11e1-ba25-005056c00008

Error 2 in Event Viewer:
Application: WebDev.WebServer40.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Compilation.BuildManager.<GetAssembliesForAppLevel>b__a(AssemblyInfo ai)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Enumerable.<UnionIterator>d__88`1.MoveNext()
at System.Linq.Enumerable.<DistinctIterator>d__81`1.MoveNext()
at System.Web.UI.Util.GetTypeFromAssemblies(IEnumerable assemblies, String typeName, Boolean ignoreCase)
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Profile.ProfileBase.AddProfilePropertySettingsForCompilation(ProfilePropertySettingsCollection propertyCollection, Hashtable ht, String groupName)
at System.Web.Profile.ProfileBase.GetPropertiesForCompilation()
at System.Web.Compilation.ProfileBuildProvider.get_HasCompilableProfile()
at System.Web.Compilation.ProfileBuildProvider.GetProfileTypeFromAssembly(Assembly assembly, Boolean isPrecompiledApp)
at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)
at System.Web.Compilation.BuildManager.CompileCodeDirectories()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Compilation.BuildManager.CallAppInitializeMethod()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel)
at System.Web.Hosting.HostingEnvironment.Initialize(System.Web.Hosting.ApplicationManager, System.Web.Hosting.IApplicationHost, System.Web.Configuration.IConfigMapPathFactory, System.Web.Hosting.HostingEnvironmentParameters, System.Security.Policy.PolicyLevel)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)
at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)
at System.Web.Hosting.ApplicationManager.CreateObjectInternal(System.String, System.Type, System.Web.Hosting.IApplicationHost, Boolean, System.Web.Hosting.HostingEnvironmentParameters)
at System.Web.Hosting.ApplicationManager.CreateObject(System.String, System.Type, System.String, System.String, Boolean, Boolean)
at System.Web.Hosting.ApplicationManager.CreateObject(System.String, System.Type, System.String, System.String, Boolean)
at Microsoft.VisualStudio.WebHost.Server.GetHost()
at Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
madmunki
 
Posts: 2
Joined: Mon Jul 16, 2012 6:35 pm

Postby madmunki » Mon Jul 16, 2012 7:35 pm

for a work around, if I launch the application normally, then attach ANTS to the process, that works.
madmunki
 
Posts: 2
Joined: Mon Jul 16, 2012 6:35 pm

Postby jessica.ramos » Tue Jul 17, 2012 7:35 pm

Thank you for your post. Can I first check--have you tried running the profiler as administrator?
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm

Postby doyle_am » Fri Sep 07, 2012 3:30 pm

I'm seeing the same issue on Windows 7 x64 and ANTS Performance Profiler 7.3 (trial downloaded yesterday).

Launching from VS2010, VS2012, or stand-alone, as soon as the profiler launches ASP.NET web development server starts and IE is displayed the web server crashes.

I have tried running Visual Studio and ANTS as an administrator and the problem remains.
doyle_am
 
Posts: 1
Joined: Fri Sep 07, 2012 3:14 pm
Location: United Kingdom

Postby dom.smith » Fri Sep 07, 2012 4:12 pm

Hi,

@doyle_am: In your case, this is probably due to the fact that ANTS Performance Profiler 7.3 does not support Visual Studio 2012. If you have already installed VS2012, ANTS Performance Profiler will attempt to use the VS2012 version of the WebDev server, even if you launch the profiler from VS2010.
I'm pleased to say that ANTS Performance Profiler 7.4 will support VS2012, and so this issue is fixed. Version 7.4 is due for release in the coming weeks but if you'd like a private build (untested), please PM me and I'll send you a link.

Dom
Dominic Smith,
Project Manager,
Red Gate Software.
dom.smith
 
Posts: 98
Joined: Thu Jun 03, 2010 5:54 pm
Location: Cambridge, UK

Postby dom.smith » Wed Sep 12, 2012 3:52 pm

I'm pleased to announce that we've just released ANTS Performance Profiler 7.4, which fixes the issue I described above.
If you are affected by this problem, you can upgrade your copy of the Profiler:
On the Help menu, click Check for Updates...
Dominic Smith,
Project Manager,
Red Gate Software.
dom.smith
 
Posts: 98
Joined: Thu Jun 03, 2010 5:54 pm
Location: Cambridge, UK

Still Happening

Postby JoshSommers » Wed May 08, 2013 8:01 pm

I just downloaded the trial of ANTS 7.4 last night and am encountering this same issue. When I attempt to profile my Silverlight 5 through the ANTS menu in Visual Studio 2012, WebDev.WebServer40.exe immediately crashes. The only thing I can determine is that it is launching the Visual Studio 2010 version of webdev.webserver40.exe.

However when I run the Performance Analyzer it launches the correct version of the web server, and does not crash. Only Memory Analyzer is crashing for me.

I'm on windows 7 64, visual studio 2012.
JoshSommers
 
Posts: 3
Joined: Wed May 08, 2013 7:58 pm

Postby dom.smith » Tue May 21, 2013 4:35 pm

Hi Josh,

Sorry for the delay in replying while I was on vacation last week.

If I understand your comments correctly, your problem is with ANTS Memory Profiler 7.4, not ANTS Performance Profiler. I'm afraid the Memory Profiler doesn't currently support Silverlight 5, and there's also a known bug where (as you say), the add-in in Visual Studio 2012 launches the wrong version of the Web Development server.

Both of these issues were fixed in the recently-released ANTS Performance Profiler 8.0 and we'll endevor to get these fixes into the earliest betas of ANTS Memory Profiler 8.0 once we open that beta program shortly.
Dominic Smith,
Project Manager,
Red Gate Software.
dom.smith
 
Posts: 98
Joined: Thu Jun 03, 2010 5:54 pm
Location: Cambridge, UK


Return to ANTS Performance Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests