Error 403.14 when publishing ASP.Net MVC project to IIS

I’ve run into this before and didn’t write down the solution, and I just spent another 4 hours trying to troubleshoot this problem for another project, so this is a note to future me.

When publishing an ASP.Net MVC application to another server on IIS, you have to right-click on the folder you’re publishing to (in IIS) and select ‘Convert to Application’ – make sure the application you specify is configured for the correct version of the .Net Framework, and you’re golden. If you forget this step, you’ll get errors like this:

Parser Error Message: Could not load type ‘myProjectNamespace.Default’

…which will just lead you to hating yourself for wasting so much time on such a dumb issue.

Share on Facebook