Localhost blocked? Changing the default debug address in VS.NET 2k5

Greetings. So I ran into a bit of an annoying challenge today. For months now, I've had IIS installed locally. I work on my local project/sln's, and save them - then update to our source control server  Everyone was happy for awhile there.  Anyway, I guess security made some modifications to our AD Security Policy, so if I try to reach http://localhost/Projects/Whatever I'm pretty much out of luck.  In any case, you can subvert this in VS.NET by modifying your .CSPROJ file.

<WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>1899</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl></IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
</WebProjectProperties>

All I did was change the UseIIS from False to True - and then add the URL I'd prefer to use in IISUrl.  Pretty straightforward, me thinks. I'm not sure if there is a menu within VS.NET 2k5 to do this w/o editing the XML here - If there is, I certainly haven't found it.  Let me know if you can shed some light on this.

Cheers.

Print | posted @ Monday, July 10, 2006 1:50 PM

Comments on this entry:

Gravatar # re: Localhost blocked? Changing the default debug address in VS.NET 2k5
by Natasha at 7/8/2009 12:28 PM

I got an idea. first a bit about me =) i'm Natasha, i'm 16 years old, and a computer programmer!!! in windows XP goto C:\WINDOWS\system32\drivers\etc\hosts
it is a text file so if it asks you to select a program, select Notepad. on the bottom where it says "127.0.0.1 localhost", delete that text. not save it and localhosts should be unblocked =)
Gravatar # re: Localhost blocked? Changing the default debug address in VS.NET 2k5
by Natasha at 7/8/2009 12:31 PM

P.S. My actual web page is www.youtube.com/NatashaJaneFowler the "coochi6" one is my boyfriend's channel!!! LOL
Gravatar # re: Localhost blocked? Changing the default debug address in VS.NET 2k5
by SanjayU at 7/8/2009 2:53 PM

This may work but the impact would be global - e.g., anytime you hit localhost you won't go anywhere. You could, again, subvert this by editing to use your computer (or any), name in the hosts file. The csproj solution doesn't have any negative impact on...anything else. Also, the chances of me forgetting that I edited the hosts file are avoided :)
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 
Twitter