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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:25:16+00:00 2026-05-17T15:25:16+00:00

I have a big .net mvc 2 project where we are using MvcContrib Portable

  • 0

I have a big .net mvc 2 project where we are using MvcContrib Portable Area. There is a main web site which load many modules (PA modules).

The main application contains Site.Mater into its ~\Views\Shared folder. each module also has own Site.Master which inherit from that main one.

At the moment we are using something like:

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

After compilation the view handle the main Site.Master right as it is a relative path.
Now I’ve received a requirement to build views during the compilation. So I’ve enabled MvcBuildViews = true in each web PA module project.

Of course, I’m getting errors saying "/temp/Views/Shared/Site.Master is not found".

How to keep Portable Area with content embedded and ensure that views do not contain errors?

Any idea?

  • 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-17T15:25:17+00:00Added an answer on May 17, 2026 at 3:25 pm

    You can’t.

    I’m dealing with this same issue and you can’t fake the physical location of a file easily.

    The only solution is to make a placeholder and removing the non-embedded placeholder file as part of the build process. The benefit of this technique is the non-embedded resource will load a bit faster in development.

    Another thing to consider is that loading your views as embedded resources is pretty slow. Having your build process move the centralized “common” views up to the local project will result in better performance for your users.

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

Sidebar

Related Questions

We have a pretty big ASP.NET WebForm (web application) project with a lot of
I have a pretty big web application that I created last year using ASP.NET
I have a site built using asp.net mvc running on IIS 7 using integrated
I'm currently working on an ASP.NET MVC project using NHibernate and I need to
I'm working on an ASP.NET MVC site, using EF4 and Automapper. I'm making good
I have pretty big background of .net, and I've decided that i want to
i have a big web application running in perl CGI. It's running ok, it's
I have a big load of documents, text-files, that I want to search for
I have this big data-entry sort of page, a table kind of layout using
I have a big lump of binary data in a char[] array which I

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.