Profiling an ASP.NET Core 3 doesn't bring up the web page

I created an ASP.NET Core 3 app using the VS project template. I am trying to profile it. I used the IIS Express option in dotTrace. Selected the applicationhost.config file. Selected the Site. Selected the Open URL checkbox and entered the url which I copied from the browser which was opened by VS earlier. Killed all IISExpress instances and click on Run.

Instead of the web page opening, I get this error: 

HTTP Error 500.0 - ANCM In-Process Handler Load Failure

and this error from event log:
Application 'g:\inetpub\wwwroot\WebApplication2\WebApplication2\' failed to start. Exception message:
Executable was not found at 'g:\inetpub\wwwroot\WebApplication2\WebApplication2\%LAUNCHER_PATH%.exe'

I changed the site's virtual directory to the one having the dll's and I get the same problem.

It seems maybe there's a setting which is incorrect. How do I correct this problem?


1 comment
Comment actions Permalink

Sorry for the delay with the answer.
You're right, there may be some issues with ASP.NET Core projects hosted on IIS Express or IIS in 2019.1 version of dotTrace.
The fix is planned for the second EAP build of 2019.2 version of dotTrace which is scheduled for early July.
As a workaround, could you please try to profile your app as a standalone .NET Core application from ".NET Core Application" section of dotTrace Home?
Another option with the same result - setting "Project" value in "Launch" field in the project's properties in VS. After that, you need to call "Run Startup Configuration Performance Profiling" action to run a profiling session. Please note that in both cases you need to manually open the URL of your app in a browser (if you need to open it).
Sorry for the inconvenience.


Please sign in to leave a comment.