Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

This is a classic unhelpful error and nightmare. Anyway, when publishing a mvc 3 application you do not have all the requored mvc3 files on the server that is hosting your site.

The best advice I got and what actually solved the problem can be found here.

http://www.britishdeveloper.co.uk/2011/05/mvc3-deploy-could-not-load-file-or.html

Hope it helps!

 

UPDATE:

Ok, so none of the “copy local” worked for me. What did was using the deployment package that is build through my Visual Studio Solution and deploying to IIS. finally worked.

Advertisements

Posted on February 21, 2012, in MVC3, RAZOR, Riaan Booyzen and tagged , , , , , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: