digor_ua
digor_ua

Reputation: 592

Asp.net mvc3 application display project directory content instead of main page in browser

I've copied Asp.Net MVC3 application from another source to my development machine. Now I want to run application, but when I run application the browser show me project directory content instead of application main page. I suppose a have some mistakes in IIS configuration, but I don't know what is incorrect. So, what is wrong?
UPD:I did found that "Use Local IIS Web Server" radiobutton in settings window is checked (instead default "Use Visual Studio Development Server"). Мay be this option affects?

Upvotes: 0

Views: 306

Answers (1)

Andras Zoltan
Andras Zoltan

Reputation: 42333

Did you configure the folder in IIS as an Application? Sounds to me that you've just cloned a folder and expect it to 'just work'.

Right-click on the folder in IIS and select 'Convert to Application'. On the dialog that appears you will need to change the app pool to 'ASP .Net v4'.

Once you've done that it should work.

Upvotes: 1

Related Questions