ASP.NET: Could not load type '__NMP__InstrumentationHelper'

Use this forum to discuss subjects that don't belong in the other forums.

Moderator: SciTech Software

ASP.NET: Could not load type '__NMP__InstrumentationHelper'

Postby kieranlynam » Wed Sep 15, 2010 2:28 pm

Hi,

I am trying to profile some of my ASP.NET components, which are installed on SharePoint 2010 on Windows Server 2008 R2 64-bit.

1) I run "Profile ASP.NET..."
2) Provide valid URL on my machine,
3) Select "Launch using IIS" option.

Profiling fails to start. In the browser window which appears there is a 500 error. In the event log:

Failed to initialize the AppDomain:/LM/W3SVC/731997070/ROOT

Exception: System.TypeLoadException

Message: Could not load type '__NMP__InstrumentationHelper' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

StackTrace: at System.Web.ImpersonationContext.System.IDisposable.Dispose()
at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)


and...

An error occurred while trying to start an integrated application instance.

Exception: System.TypeLoadException

Message: Could not load type '__NMP__InstrumentationHelper' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

StackTrace: at System.Web.ImpersonationContext.System.IDisposable.Dispose()
at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ProcessHost.StartApplication(String appId, String appPath, Object& runtimeInterface)


and...

An application has reported as being unhealthy. The worker process will now request a recycle. Reason given: ASP.NET application initialization failed.. The data is the error.


Any advice or assistance would be very much appreciated! :) Thanks,

Kieran
kieranlynam
 
Posts: 1
Joined: Tue Sep 14, 2010 10:35 am

Re: ASP.NET: Could not load type '__NMP__InstrumentationHelper'

Postby Andreas Suurkuusk » Thu Sep 16, 2010 2:27 pm

It seems like the profiler has failed to inject profiling code into the profiled process for some reason. To get more information about why this problem occurs, it would be good if you could send us log-files from the profiler. To create the log-files you need to use the standalone profiler and supply the "/log:<path>" command line argument, e.g. by using the following Run command:

"C:\Program Files\SciTech\NetMemProfiler3\NetMemProfiler.exe" /log:c\MemProfilerLogs

When you try to profile ASP.NET again, this will create a set of log-files in the c:\MemProfilerLogs folder. If you send the log-files to support@scitech.se, we will take a look at them as soon as possible.
Best regards,

Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
 
Posts: 963
Joined: Wed Mar 02, 2005 7:53 pm
Location: Sweden


Return to General

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests

SciTech Software logo

© Copyright 2001-2016. SciTech Software AB
All rights reserved.


SciTech Software AB
Kartvägen 21
SE-175 46 Järfälla
Sweden


E-mail: mail@scitech.se

Telephone: +46-706868081

cron