ASP.NET: Could not load type '__NMP__InstrumentationHelper'

Use this forum to discuss subjects that don't belong in the other forums.
Post Reply
kieranlynam
Posts: 1
Joined: Tue Sep 14, 2010 10:35 am

ASP.NET: Could not load type '__NMP__InstrumentationHelper'

Post by 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

Andreas Suurkuusk
Posts: 1000
Joined: Wed Mar 02, 2005 7:53 pm

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

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests