tags:

views:

62

answers:

2

How remove "localhost:portno" when running an asp.net website under iis?... When i browse my virtual directory i can http://localhost:120/mine/Forms/Clients.aspx.....

A: 

Configure your virtual directory in Default website in IIS where port = 80 OR set website port = 80. For port 80 you need not to define port in URL.

To set port, Go to website properties > In website tab > See TCP Port

Brij
@brz setting port 80 doesn't work `object not found error`
chandru_cp
Chandru, provide more details. Where do you get object not found error? Are you running anything else on port 80?
Raj Kaimal
A: 

You have to specify port explicitly only when running non-default websites on IIS. Deploy you app to default website (or to virtual directory in it). Default website configured to 80 port so you can just type in browser "http://localhost/{virtual_directory}"

lak-b