Can't profile asp.net apps
mhanrahan
Posts: 6
Hi,
I just installed version 6.2.0.13 of ANTS Profiler and I am unable to profile any asp.net site. I have tried both ASP.NET FORMS and MVC 3 apps and neither work. When I click "Start Profiling" the profiler loads up IE, which gives a page not found error and the profiler itself says "The profiler did not find any methods with source code". Things I have tried so far are:
Started Profiling Using both Web Development Server and IIS
Created a bare bones ASP.NET Forms site that just has 'this.Title = "Test";' in the OnPageLoad event.
I have checked the .NET version (4.0 in all cases)
Used Process Explorer to ensure the environment variables "COR_PROFILER" and "COR_ENABLE_PROFILING" where set (which they were). Also I always see an info event in the event log which says ".NET Runtime version 4.0.30319.225 - The profiler was loaded successfully. Profiler CLSID: '{D6E0BA92-3BC3-45ff-B9CC-B4B5AB7190BC}'. "
I can profile console, windows forms and WPF apps without any problems.
The Web Development Server process (under profiling) itself doesn't seem to load .NET at all (it pretty much dies straight away..it took a few attempts to view its properties in Process Explorer!).
Any help or ideas would be greatly appreciated!
Many thanks,
Mike Hanrahan
I just installed version 6.2.0.13 of ANTS Profiler and I am unable to profile any asp.net site. I have tried both ASP.NET FORMS and MVC 3 apps and neither work. When I click "Start Profiling" the profiler loads up IE, which gives a page not found error and the profiler itself says "The profiler did not find any methods with source code". Things I have tried so far are:
Started Profiling Using both Web Development Server and IIS
Created a bare bones ASP.NET Forms site that just has 'this.Title = "Test";' in the OnPageLoad event.
I have checked the .NET version (4.0 in all cases)
Used Process Explorer to ensure the environment variables "COR_PROFILER" and "COR_ENABLE_PROFILING" where set (which they were). Also I always see an info event in the event log which says ".NET Runtime version 4.0.30319.225 - The profiler was loaded successfully. Profiler CLSID: '{D6E0BA92-3BC3-45ff-B9CC-B4B5AB7190BC}'. "
I can profile console, windows forms and WPF apps without any problems.
The Web Development Server process (under profiling) itself doesn't seem to load .NET at all (it pretty much dies straight away..it took a few attempts to view its properties in Process Explorer!).
Any help or ideas would be greatly appreciated!
Many thanks,
Mike Hanrahan
Mike Hanrahan
Comments
Mike Hanrahan.
Can you try running ANTS explicitly as administrator?
Anyway, its working now as administrator, so thanks!!
Mike.