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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:41:34+00:00 2026-05-11T20:41:34+00:00

Ok I got a strange issue that I hope someone could help with I

  • 0

Ok I got a strange issue that I hope someone could help with

I have a MVC project based upon this demo

http://blogs.msdn.com/hammett/archive/2009/04/23/mef-and-asp-net-mvc-sample.aspx

However it has a problem when specifying a strongly typed view 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.ViewPage<ForumData>'.

I tracked it down to it having to with when you specify the path to the view like so

 return View("~/Modules/Forums/Index.aspx",data);

it gives you that error but if you put the view under the normal path which in this case would be “~Views/Forum/Index.aspx …. it works fine when specifying the return like so

 return View(data);

so why would it matter it obviously is something to with the way the view engine works and the fact that the controller is actually external to the application…Help please!

Edit: The ForumData is actually ForumExtention.ForumData, I made a mistake when I generated the error to cut and paste but it does the same thing no matter what.. I just needed to get the point accross..

Update: The sample in the link I provided works fine thats because its not using a strongly typed view…Check out the actual code I was playing with by downloading it from here

http://mysql.netpmg.com/MVCandMEF.zip

http://mysql.netpmg.com/forumdb.zip

Rename the foumdb.zip to *.bak it’s a SQLEXPRESS 2008 DB backup.

  • 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-11T20:41:35+00:00Added an answer on May 11, 2026 at 8:41 pm

    I found why, but those classes in ASP.NET are not pluggable.

    Dirty workaround can be found on my blog: Revised: ASP.NET MVC and the Managed Extensibility Framework (MEF) – http://blog.maartenballiauw.be/post/2009/06/17/Revised-ASPNET-MVC-and-the-Managed-Extensibility-Framework-(MEF).aspx

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

Sidebar

Related Questions

I have this very strange issue with my MVC 2 project. Often times, I'll
got a strange issue for you. I created a control that inserts a record
I got this strange issue while working with iPhone SDK 3.1.2. My UITableViewCell contains
I've got a strange issue on a Heroku deployment that I can't seem to
Ive got a rather strange issue, ive got an automated build tool that is
I have recently ran into this strange issue, I was trying to reference parent
This is very strange. I've got a simple form. I have a file input
I have a strange issue, when it comes to parsing XML with NSXMLParser on
I've got a strange issue with a simple select dropdown not displaying in IE8.
Folks, I've got a strange issue at the moment with a visual studio 2010

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.