Change an existing project url (and port)?

6

620

Can I change an existing asp.net project that was initially created at
"//localhost/etc" to point to "//[IP]:[Port]/etc" instead? I've recently
been forced to change my local website from "all unassigned" on port 80 to
[MachineIP] on [SomeOtherPort]. So the files haven't changed, the machine
hasn't really changed, but where IIS is listening has; and I need to have
the IDE make requests at the new location for these existing asp.net
projects that are still trying to find themselves at //localhost. Can't
find the option anywhere in the IDE (VS 2003)...
 
C

Craig Deelsnyder

620 said:
Can I change an existing asp.net project that was initially created at
"//localhost/etc" to point to "//[IP]:[Port]/etc" instead? I've recently
been forced to change my local website from "all unassigned" on port 80 to
[MachineIP] on [SomeOtherPort]. So the files haven't changed, the machine
hasn't really changed, but where IIS is listening has; and I need to have
the IDE make requests at the new location for these existing asp.net
projects that are still trying to find themselves at //localhost. Can't
find the option anywhere in the IDE (VS 2003)...

There is a .webinfo file for all web projects that is created in your
root folder that tells VS.NET what the URL of your web app is to pull
the files from via HTTP. You could just change that (open it in Notepad
and you'll see a URL in there).
 
6

620

Craig Deelsnyder said:
620 said:
Can I change an existing asp.net project that was initially created at
"//localhost/etc" to point to "//[IP]:[Port]/etc" instead? I've recently
been forced to change my local website from "all unassigned" on port 80 to
[MachineIP] on [SomeOtherPort]. So the files haven't changed, the machine
hasn't really changed, but where IIS is listening has; and I need to have
the IDE make requests at the new location for these existing asp.net
projects that are still trying to find themselves at //localhost. Can't
find the option anywhere in the IDE (VS 2003)...

There is a .webinfo file for all web projects that is created in your
root folder that tells VS.NET what the URL of your web app is to pull
the files from via HTTP. You could just change that (open it in Notepad
and you'll see a URL in there).


Ah, there we go. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top