views:

37

answers:

2

Hi, 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

A: 

Take a look at this guide:

Related questions:

Enrico Campidoglio
A: 

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

Darin Dimitrov
How can I try that? It's not in the C:\Program Files\Microsoft ASP.NET.Where could I get it from?
Massive Boisson
When you install ASP.NET MVC it deploys in the GAC. You could download it from http://asp.net/mvc.
Darin Dimitrov
i went to windows/assembly, and system.web.mvc is not there.i am looking around on asp.net/mvc but can
Massive Boisson
yeap, i installed it with Web Web Platform Installer
Massive Boisson