Problems deploying MVC2 - Could not load type 'System.Web.Mvc.UrlParameter'

Posted by Evgeny on Stack Overflow See other posts from Stack Overflow or by Evgeny
Published on 2010-03-19T06:32:32Z Indexed on 2010/03/19 10:21 UTC
Read the original article Hit count: 1278

Hi Everyone,

I have problems deploying MVC2 application to my hosting. It shows the following error:

Could not load type 'System.Web.Mvc.UrlParameter' from assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

It looks like it does not understand the new "optional URL parameters" feature of MVC2. This is just a simple test application I created with "New Project" wizard in VWD 2008. It works ok localy both in IIS and Visual Studio web servers. MVC1 web sites are working ok on the hosting server. I've contacted the hosting support and they installed MVC2 but the problem still exists. The web site is working in ASP.NET 2.0 integrated pipeline mode.

Does anyone know why it is happening?

Thank you!

© Stack Overflow or respective owner

Related posts about asp.net-mvc2-rtm

Related posts about deployment