It is my first MVC project and always the first time has pain 😉
I did these steps to deploy project .
- Used publish option in solution explorer and select File System.
- Upload published file to server
- add these extra files to bin folder
Microsoft.CSharp.dll
Microsoft.Web.Infrastructure.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.Routing.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
I got this error 404 – File or directory not found.
here is the snapshot of my website admin panel
note 1: My host provider installed the latest version of ASP.NET MVC via WebInstaller yesterday.
note 2 : The host’s operating system is Windows 2008 R2
You must use ASP.NET 4 (Integrated Pipeline). This allows you to use extensionless urls which are used by default when you create a new ASP.NET MVC 3 application. You haven’t told us much about your application so we can only be guessing what kind of routes you are using.
If you select the ASP.NET 4 (Classic Mode) it’s the same if you were running in IIS 6.0 which doesn’t support extensionless urls and you will need to configure and associate some extension to the aspnet ISAPI filter.