Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 742143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:42:51+00:00 2026-05-14T08:42:51+00:00

After converting a Hybrid ASP.NET MVC1 app to MVC2 I’m getting the following error

  • 0

After converting a Hybrid ASP.NET MVC1 app to MVC2 I’m getting the following error when I try and run the application:

The type or namespace name ‘Mvc’ does not exist in the namespace ‘System.Web’ (are you missing an assembly reference?)

The allegeded culprit in the web.config file is System.Web.Mvc:

<namespaces>
    <add namespace="System.Web.Mvc"/>
    <add namespace="System.Web.Mvc.Ajax"/>
    <add namespace="System.Web.Mvc.Html"/>

So far my investigation seems to lead me to believe that version 2 of System.Web.Mvc is not installed or has not been picked up.

I’ve tried creating a File > New Project based on MVC 2 and that’s picking up the new (v2) version of MVC. I’ve also converted some other projects (that were not hybrids) and they’ve converted without problem to MVC2.

I’ve also uninstalled MVC1 to try and remove references to it from the GAC. However, none of this has worked.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:42:51+00:00Added an answer on May 14, 2026 at 8:42 am

    Make sure you have the binding redirect in your Web.config:

      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Web.Mvc" />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    

    This forces MVC 2 even if MVC 1 is on the machine.

    Also: MVC 1 does have a System.Web.Mvc namespace, so make sure you also have:

      <assemblies>
        <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After converting an ASP.NET webform (v3.5) to use a master page, I started getting
I am getting an error after converting a C# application from MSVS2003 to MSVS2010
I converted my website from asp.net mvc 1.0 to 2.0. After converting that i
After converting a VS 2005 project to VS 2008 I started encountering the following
I'm gettin the followig error after converting JSON echo into a dictionary, * Terminating
After converting my Web Site Project to a Web Application Project , some of
After converting a 2D array from the CPU to the GPU's memory to run
I'm building an application after converting VC++ 6 workspace on Visual C++ 2008 express.
After converting our app to Python 2.7, configuring for multithreading, and referencing mapreduce in
I'm using TouchListView in my app. After converting all activities to fragments I've a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.