Server name

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
 
A

addup

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 --
 
S

SimonZ

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
 

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

Top