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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:30:40+00:00 2026-05-23T05:30:40+00:00

I’m working on converting some of the partial views in my MVC 3 app

  • 0

I’m working on converting some of the partial views in my MVC 3 app (which I recently converted from MVC 2, using the MS tool) from ascx to cshtml (Razor).

Simply put: I’m trying to do a Html.RenderPartial of a Razor partial view, directly from an aspx Master Page. The Razor partial view simply has “Hello World” in it — no @model or @inherits or anything. When I run my app, at this point I get the following error: “The view at …..cshtml must derive from ViewPage, ViewPage, ViewUserControl, or ViewUserControl.” In other words, it looks like it’s looking for a non-razor view.

So.. If I explicitly put “@inherits ViewUserControl” at the top of my razor partial, I get a different error: “…cshtml.Execute(): No suitable method found to override.”

I created a new MVC 3 app from scratch and tried the same thing at its simplest. An aspx master page that does a RenderPartial on a razor partial. And it works fine. But this big hairy existing app is too big to do a start from scratch.. Yet something in there is keeping this from working.

This might look like a duplicate of some other questions out there, but I’ve tried everything from the ones I’ve found. I’ve even uninstalled MVC 2 from my machine. Suggestions/help would be most welcome!

Thank you…

  • 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-23T05:30:41+00:00Added an answer on May 23, 2026 at 5:30 am

    Answering my own question here..

    It turns out that the MVC 2 app (which I didn’t write, btw) used a custom ViewEngine, which derived from WebFormViewEngine. When I converted my partial view to razor, I added “~/Views/Shared/Modules/{0}.cshtml” to the locations array in that class, without realizing that it’d be using the WebFormViewEngine.

    So, I ended up creating my own ViewEngine, which derives from RazorViewEngine… and added my /Modules path to that one instead. It works!

    Starting over fresh and manually converting the app to MVC 3 helped (thanks again Darin D), because it forced me to go through all the steps myself, and caused me to find this issue.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
We're building an app, our first using Rails 3, and we're having to build
I have a text area in my form which accepts all possible characters from
I am using Paperclip to handle profile photo uploads in my app. They upload
I am writing an app for my school newspaper, which is run completely online
I am using jsonparser to parse data and images obtained from json response. When
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is

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.