Matt Frear
Matt Frear

Reputation: 54831

Mvc dll missing from Msbuild web deploy package

I create a web deploy package from Visual Studio 2010, Build Deployment Package.

The items to deploy is set to "All files in this project".

I install it on the server using Web deploy, via Import Application in IIS Manager.

It installs, but when I Browse the website I get the yellow screen of death, Configuration Error "Could not load file or assembly 'System.Web.Mvc".

If I drill right down into the .zip file created by the deployment package, the System.Web.Mvc.dll is not in there.

Is the correct procedure to get the System.Web.Mvc.dll into my deployment package, or am I supposed to install Mvc separately?

Upvotes: 1

Views: 2110

Answers (3)

Matt Frear
Matt Frear

Reputation: 54831

Thanks Darin. I found another answer... if I set Copy Local to true on the Mvc references then it will include those dlls in my web deploy package.

  • System.Web.Mvc
  • System.Web.Routing
  • System.Web.Abstractions

http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

-Matt

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1038850

You are supposed to install ASP.NET MVC separately on the server and this assembly will be deployed in the GAC.

Upvotes: 1

Related Questions