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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:14:45+00:00 2026-05-19T03:14:45+00:00

I have been publishing my MVC3 project to IIS including All Project Files, this

  • 0

I have been publishing my MVC3 project to IIS including “All Project Files”, this has been working fine, but when I changed it to “Only files needed to run this application”, the project published fine, but if I try and browse the site in IIS, I get this error.

Parser Error Description: An error
occurred during the parsing of a
resource required to service this
request. Please review the following
specific parse error details and
modify your source file appropriately.

Parser Error Message: Could not load
type
‘System.Web.Mvc.ViewUserControl’.

Source Error:

Line 1: <%@ Control Language=”C#”
Inherits=”System.Web.Mvc.ViewUserControl”
%>

I remember that I read something a while ago about issues with deploying web projects that only have files required to run it and that by including all source code it works.

I am including the .mvc, .routing, .abstraction dll’s as copy local in project.

Has anybody else come across this issue? I cannot find anything on the web concerning this anymore.

  • 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-19T03:14:45+00:00Added an answer on May 19, 2026 at 3:14 am

    Cool,

    I just found the answer and it worked, i added this bit of code to my web.config and its now working fine.

     <pages
          validateRequest="false"
          pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
          pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
          userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    

    could somebody please tell me why i had to do this.

    regards,

    p.

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

Sidebar

Related Questions

Hobbyist Cocoa programmer here. Have been looking around all the usual places, but this
I have a new MVC 2 site that has been working fine on my
I have developed a WCF service that has been working fine for a few
Have been working on this question for a couple hours and have come close
I have a plugin I have been working on that adds publishing to ActiveRecord
I have been working quite a lot with Google Apps Script lately, but there
OK, Apologies if this has already been asked and/or Answered but I'm struggling to
I have been working on an ASP.Net web site and have been publishing to
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
Have been searching how to convert a dictionary to a string. But the results

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.