Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

i host one web site on iis as a application not as virtual directory.
now my problem is like below.

my start up page is inside sub folder not in a root directory and my all other pages are also inside subfolder.

now when i access the site by localhost or ip address it open the first page. but the links on the master page shows wrong path. it do not inclue the subfolder name in the url and that's why i am getting 404 error.


default page is like this admin/adminhome.aspx

it opens first time like

http://localhost/applicationname

now when i hover on my links in the page it shows

http://localhost/applicationname/list.aspx

i want it to read like

http://localhost/applicationname/admin/list.aspx

more details.

my master page is also inside admin folder and i apply links like below

list

this works fine from visual studio but not from the IIS. please can some one help me how can i solve this.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900