Tuesday, January 12, 2010

ASP.NET MVC RC 2 Publish problems

So there was a major problem publishing my ASP.NET MVC site.

This Virtual Directory does not allow contents to be listed.

This was the error. To fix this, you must
1. Open IIS 6
2. Open the properties for your site
3. Goto Home or Virtual Directory
4. Click Configuration (at the bottom)
5. Insert wildcard for aspnet_isapi.dll

You can find better instructions http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

Then, in order to have things like MySQL work, you must put any .dll files in the bin. It won't magically transfer during a publish.

No comments:

Post a Comment