Server name

  • Thread starter Thread starter SimonZ
  • Start date Start date
S

SimonZ

When I run my application in debug mode, the url is always localhost:
http://localhost/project/default.aspx
I would like that url would be : http://myCompName/project/default.aspx

If I manually change localhost into myCompName, it works, but when I start
page from visual studio, the page url is always localhost.

How can I change that?

If you go to project >properties>web settings you have server name defined
as localhost but there is no option to change it to real server name

regards,S
 
Notepad to the rescue!

Close all instances of VS,
open your <<project name>>.webinfo file in notepad, and change the
URLPath

Not sure if this is "official", but it works for me!

Hope this helps
-- Addup --
 
hi, adi

thank you for your answer but I can't find webinfo file.
There is just web.config file but there is no URLPath attribute.

regards,S
 
Back
Top