1

I have my site at:

http://localhost:55649/

I want to move it to:

\\10.0.0.169\Inetpub\wwwroot\MyOldWebsite\NewSite

I read this http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx and clicked "Add Deployable Assemblies" but I get the error:

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.

What can I do to fix this error to make the site work?

user1477388
  • 20,790
  • 32
  • 144
  • 264

1 Answers1

2

When you get that message it tends to be because routing isn't working and the site is trying to find a default document (which in MVC3 doesn't exist). If routing isn't working that generally means IIS isn't interpreting it as an MVC3 site or doesn't know what an MVC3 site is.

  1. Does your server have .NET Framework 4.0 and MVC3 installed?
  2. Is your site using a .NET 4.0 application pool?
  3. Does your new directory have the proper permissions? Depending on the application/server security this can change. But generally IUSR needs read access.
Terry
  • 14,099
  • 9
  • 56
  • 84
  • I will check with the server admin to see whether these criteria have been met. Is there anything I need to do from the VS properties page where it says stuff like, "web, start action, servers, start page, etc.?" – user1477388 Aug 03 '12 at 16:43
  • No the default setting should work, your problem looks like a server issue. – Terry Aug 03 '12 at 16:45