Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to get MVC to run on my local host but keep getting tons of errors. Can someone help me set it up. Right now I am getting this error.

Error Summary
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.


I did tried to enable [Directory Browsing] but that will still not route any requests to login form.

Please help.


@Christian Graus this is only my local copy and I am trying to do everything I can just to make it run it just wont't!!!!! IIS was installed before the application and everything runs in it Website project, plain html websites, I can connect to db through website project etc EXCEPT THE FRIGGIN MVC DOES NOT WORK. I am not sure what else to try it just does not run.

I was messing with UrlRoutingModule-4.0 that seems to load the project but the screen is blank. I know the project works because I got the same source code that other people have and on their machine it runs through IIS only my local config that is what I am having trouble with.

I did run aspnet_regiis -i still the same. No changes.
Posted
Updated 21-Jan-14 12:06pm
v4

You should never expect to browse the contents of an MVC application. Did you install IIS before or after ASP.NET ? Try running aspnet_regiis[^]

OK - not sure if I want to help more if I get a one vote because I suggested something that was pretty obvious, but, why do you want to run in IIS at all ? What's wrong with hitting F5 in Visual Studio ? Are you using an Express Edition that doesn't have it ?
 
Share this answer
 
v2
I faced the same problem a few days ago and the solution is the same as Christian Graus said.
You could also try modifying your web.config to the following code:
XML
<system.webserver>
    <modules runallmanagedmodulesforallrequests="true" />
    <!--<validation validateIntegratedModeConfiguration="false" />--></system.webserver>

Remove the <validation></validation> tag and replace it with the <modules></modules> one in <system.webserver>.</system.webserver>
Hope it works for you as well.
 
Share this answer
 
Try to add Deploy able dependencies for your application by right clicking to your solution in vs. May this will solve your problem.
 
Share this answer
 

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