0

I am trying to install my application onto IIS 6. It's asp.net 4 mvc 2. I get this error:

Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

In my Web.config I have this:

<compilation debug="true" targetFramework="4.0">
  <assemblies>
    <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  </assemblies>
</compilation>

Does anyone have any ideas for a solution? I would think it is some setup of IIS6 with asp.net.

Thanks

--MB

Massive Boisson
  • 1,617
  • 7
  • 22
  • 28

2 Answers2

0

Make sure you have installed ASP.NET MVC 2 on your server.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
0

check haack's post http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

If MVC isn't available and installing it on the server isn't an option, try bin deploying dependencies: http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

Bahamut
  • 1,929
  • 8
  • 29
  • 51