views:

331

answers:

2

I have developed a small application using MVC RC2.

The application works fine in my development environment, but fails when I push it to my production environment with the following error:

Method not found: 
'Void System.Web.Mvc.RouteCollectionExtensions.IgnoreRoute
(System.Web.Routing.RouteCollection, System.String)'.

App pool is running .NET 2.x Recent install of .NET Framework 3.5 SP1 Recent install of MVC RC2

Has anyone run into this problem? It seems to be missing the necessary method in the set of assemblies available to the application.

+2  A: 

Sounds like you are not referring to the same assemblies on both machines.

Check the web.config differences between system.web which is used by iis6 and localhost cassini and system.webServer which is used by IIS7.

Also try dropping MVC dlls in the bin directory of the site to see if it is not getting them from the GAC.

Richard
A: 

Did you ever have ASP.NET MVC V1 installed? I did and had a similar experience. I then downloaded the documentation located here and checked out the section "Upgrading an ASP.NET MVC 1.0 Project to ASP.NET MVC 2"

RailRhoad