ASP.NET in IIS: The profiler did not find any methods with source code
Vinny
Posts: 1 New member
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.
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
Hi and thanks for your post!
The profiler can only show source for assemblies that it can find the pdb files for. Can you kindly double check if the pdb files were copied to the server as well?
The troubleshooting article here may also help: https://documentation.red-gate.com/app10/troubleshooting/common-issues/troubleshooting-pdb-problems
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?