Options

ASP.NET in IIS: The profiler did not find any methods with source code

When trying to profile my ASP.NET app on a server, I see 'The profiler did not find any methods with source code. To obtain results for this program, start a new profiling session using an "All methods" profiling mode.'

Profiling works as expected when running on my PC. I see the error message above only when running the profiler on a server.

The application is using ASP.NET MVC 5 targeting .NET Framework 4.5.1.

My PC is running Windows 7. The server is 2008 R2. Both machines have Framework 4.7.2 installed.

This is a server that I've spun up specifically for the purpose of using ANTS.

I created a site in IIS for the application on my PC. I'm able to select this site from ANTS Performance Profiler on my PC and am profiling using the mode: Line-level & method-level timings - Only methods with source. Profiling shows the data as expected.

On the server, I've created an identical IIS site, and verbatim copied the files from my PC to the server. I started a profiling session with ANTS installed on the server with the same settings and ANTS does collect data, but when trying to view the results I get the error message above.

Thanks for any help you can provide.
Tagged:

Answers

Sign In or Register to comment.