Debug Multiple Sites in one instance

Celero Solutions asked on August 25, 2014 21:23

Hi, we have three sites using one instance of Kentico. Only one site is loading in Visual Studio when I run it. This might be a stupid question but how can I load the other site? I need to debug some custom code.

Recent Answers


Brenden Kehren answered on August 26, 2014 13:12

Are the other sites running within Kentico? Also, ensure they have unique domains. If you cannot have unique domain names (i.e.: localhost) then simply start and stop each site as you want to debug it.

0 votesVote for this answer Mark as a Correct answer

Celero Solutions answered on August 26, 2014 15:54

Hi, there are three sites running in one instance of Kentico. All three have unique domain names. I entered my localhost as a domain alias for the one I wanted to debug in VS. I will try stopping the other two sites. Do you know why that particular site would load first and say not one of the other two?

0 votesVote for this answer Mark as a Correct answer

Celero Solutions answered on August 26, 2014 16:46

I stopped the two sites through Kentico and left the site I want to debug running. The one site I had turned off is still loading when I run it in VS.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 26, 2014 21:01

There may be some caching and such going on. I'd stop the sites in Kentico (like you have) and do an IISRESET from a command prompt to restart your local IIS. Then vs. debugging the website running in a browser window and then in Visual Studio Attach to a Process and pick the process to debug. I typically run my sites in my local IIS instance then its easy to pick the w3wp.exe process.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.