Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is "use custom server" option disabled in Visual studio 2010?

I have DotnetNuke loaded in Visual studio 2010. The 'use custom server' option under 'Start Options' is disabled. Why is it disabled? What does 'Use Default Web server' default to? How do I change what the default is? In earlier versions of VS i was able to switch between IIS and the internal web server (Cassini). Now it's more confusing in VS 2010!

Would the project type, Web Application Project vs Web Site project, affect the setting?

like image 567
Tony_Henrich Avatar asked May 06 '10 18:05

Tony_Henrich


2 Answers

I've just had this problem on one of my projects that was setup to use IIS Express.

The solution for me was to right click the web site project and select the option to use the VS Server instead. The option to then use a custom server was then enabled again so I could point it to the IIS site I wanted to test against.

like image 167
Chris W Avatar answered Sep 28 '22 09:09

Chris W


Just had this issue as well today with Visual Studio 2012. Another solution is open VS (without any project loading) and then File > Open Web Site. Select the web site you're having problems with. At that point VS will warn that another server is configured to be used for this site. If you select 'No' in the dialog, you can then use Property Pages to set a custom server as expected.

like image 40
EvilDr Avatar answered Sep 28 '22 07:09

EvilDr