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 730207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:53:07+00:00 2026-05-14T06:53:07+00:00

I created an ASP.NET MVC 2.0 Application. It ran fine at first test and

  • 0

I created an ASP.NET MVC 2.0 Application. It ran fine at first test and I made some minor edits to the views. I then wanted to add a new controller so I had to compile the app. After I did anytime I run it I get the following error:

Parser Error Message: The type 'System.Web.Mvc.ViewMasterPage' is ambiguous: it could come from assembly 'C:\Users\DerekM\Documents\Visual Studio 2008\Projects\ABELMedicalSoftwareMVC\ABELMedicalSoftwareMVC\bin\System.Web.Mvc.DLL' or from assembly 'C:\Users\DerekM\Documents\Visual Studio 2008\Projects\ABELMedicalSoftwareMVC\ABELMedicalSoftwareMVC\bin\ABELMedicalSoftwareMVC.DLL'. Please specify the assembly explicitly in the type name.

Source Error:

Line 1:  <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

I did some googling and came accross the following tutorial: http://blog.stevensanderson.com/2009/02/03/using-the-aspnet-mvc-source-code-to-debug-your-app/

I followed it exactly but I still get the same error. So I have the System.Web.Mvc.dll reading from my bin folder now, and the reference to the GAC was removed from my web.config.

From what I can gather from other posts it sounds like my inherits on my view pages, or maybe my master pages, is the issue. But I’m not sure how to edit them.

Here is the inherits from the default Site.Master MVC created

<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>

And here is the inherits from my view

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

Forum posts im reading say it needs to reference the code behind instead, but the views have no code behind in them. It’s just a plain Index.aspx file.
The default master page has no code behind, but if I create a new one it gets given a .cs and .designer.cs

Any help appreciated, this seems like such a simple issue and I’m missing something really basic.

  • 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-14T06:53:08+00:00Added an answer on May 14, 2026 at 6:53 am

    I think you have codebehind for this masterpage.

    Change the inherit from
    System.Web.Mvc.ViewMasterPage instead
    of System.Web.UI.MasterPage.

    I had the same issue, and this had helped me: http://www.alphapapahotel.com/system-web-mvc-viewmasterpage-parser-erro/aspnet/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of designing my ASP.NET MVC application and I ran across
I created an ASP.NET MVC application and added 2 resource file for about.aspx page
I created an ASP.NET MVC application on my local computer under IIS 7.5 (Windows
I created one asp.net mvc application using linq to sql, and in the generated
I just created a ASP.NET MVC project in VS2008. When I press F5 to
I have just started playing with the ASP.Net MVC framework, and today I created
I'm implementing the repository pattern in my ASP.NET MVC application. So i was doing
In ASP.NET MVC, I'm trying to create a link that includes an anchor tag
Does ASP.NET MVC provide a standard validator functionality or do you have to create
In my asp.net mvc page I create a link that renders as followed: http://localhost:3035/Formula/OverView?colorId=349405&paintCode=744&name=BRILLANT%20SILVER&formulaId=570230

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.