How to dotTrace website in IIS Express?

Can anyone explain  the 'Sites' drop down when using dotTrace on a website hosted by IIS Express. What is suppose to go in there?  I get a "No valid site is selected" and can't trace. Server is IISExpress.exe 64 and Configuration file is set to the web.config but the Site drop down is empty with a yellow triangle. dotTrace version 10.0.2. Any help appreciated.

0
4 comments

Hi,

 

This drop down list contains sites which are hosted on IIS Express, you can see these sites in IIS Express tray application.

Are your sure that your site is hosted on IIS Express? If so and your site is presented in the tray application, please create a support ticket (Submit a Request button in the upper right corner).

0

Thanks for your input, Konstantin.

It is hosted in IIS Express and the site does appear in the tray. I managed to get an ASP.NET 4.6.1 MVC app to appear in the Site list for both dotTrace and dotMemory but only by entering details under <sites> in the IISExpress applicationhost.config. Not sure why I have to manually enter this for every app I want to profile but that as far as I can work out this seems to be the case.

0

Glad to hear that you figured this out!

Indeed we get list of sites from applicationhost.config. Can't say for sure why your app is not in the list of sites in the config file, as an option - it could be caused by UseGlobalApplicationHostFile parameter in the project file: http://stackoverflow.com/questions/12946476/where-is-the-iis-express-configuration-metabase-file-found

 

0

Thanks for the info. After reading the linked page I was able to determine the following.

Checking the application in the IISExpress tray shows that the applicationhost.config used is the one that is particular to the app (<solution>\vs\config\applicationhost.config).

This config has the app under the <sites> tag. I did not add the site to this config. It was automatic.

When dotTrace is launched from VS2015 it finds the site correctly.

When dotTrace is opened as a desktop app and IISExpress selected as application type - naturally the IISExpress applicationhost.config (..\Documents\IISExpress\config) is used and this doesn't have the site (until I added it). This makes sense since only the application type and not the application has been selected.

Testing confirmed this. When the project sln file was edited to <UseGlobalApplicationHost>true</UseGlobalApplicationHost> (default is false) and site removed from the IISExpress config the site  did not appear.

I am good for now. Thanks, again.

0

Please sign in to leave a comment.