I have an asp net project with name: DocCat , same name of application in IIS.
When i open my asp net application from visual studio(iis express) it has path like this:
http://localhost:49727/Pages/Main.aspx
But when i want to open it in IIS i have this path :
http://localhost:49727/DocCat/
and it open only folders , not my startup page.
I need to rename start page path of my web application in IIS, to http://localhost:49727/Pages/Main.aspx
what can i do for this?
I tried :
1) Add this code to Webcongif file :
<system.webServer>
<defaultDocument>
<files>
<add value="Pages/Main.aspx" />
</files>
</defaultDocument>
</system.webServer>
2)Set default document to Main.aspx or Pages/Main.aspx
3) Add virtual catalogue with virtual path Pages/Main.aspx and physical path : BigCar/BigCar/Pages
How can i rename startup path in IIS?
Edit. Suggested question didn't solve my problem - because startuo page in IIS open FOLDER , not the page - likle this :