Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Local IIS Web server for debugging

So I'm trying to setup a local test domain so I can have a subdomain using this article. My problem is that I can set up the sites fine in IIS and browse to files there. But when trying to setup visual studio to use the site for eg. In Project Url: http://localtest.me when I click Create VirtualDriectory I get the following error: Unable to create virtual directory. The URL 'http://localtest.me' is already mapped to a different folder 'C:\Websites\site'. enter image description here

If I delete the site from IIS and allow visual studio to try create it, I get the following error: Unable to create the virtual directory. Could not find the server 'http://localtest.me' on the local machine. Creating a virtual directory is only supported on the local IIS server. But the site localtest.me poits to 127.0.0.1, which is my local machine right?

So how do I set up debugging in a scenario like this where I already created the site in IIS?

like image 292
Shawn Mclean Avatar asked May 24 '12 05:05

Shawn Mclean


People also ask

How do you connect to remote server for debugging?

Select Configure remote debugging to configure the firewall and start the remote debugger. When configuration is complete, the Remote Debugger window appears. The remote debugger is now waiting for a connection. Use the server name and port number shown to set the remote connection configuration in Visual Studio.

How do I run a server in debug mode?

In Rule Designer , click Run > Debug Configurations. In the Configurations area of the Debug Configurations dialog, under Remote Java Application with Rules, click the Configuration_Name that you defined in the debugger launch configuration task. Enable debug mode on the application server.


1 Answers

Instead of using the "Use Local IIS Web Server" setting in visual studio I always check "Use Custom Web Server" and point it at my local url. for your example localtest.me with the start url above set to localtest.me

If you still run into problems you can always get into debug mode but doing attach to process instead of F5 and selecting the IIS process.

like image 112
Andrew Walters Avatar answered Nov 15 '22 18:11

Andrew Walters