Solved

master pages in vs2010

Posted on 2012-03-18
1
279 Views
Last Modified: 2012-04-05
I have been trying to migrate a VB.net web site to a web app called "VMA".  One of the most maddening problems is with master pages.

In the root folder I have created a master page called "Master".  It creates the page OK with inherits="VMA.Master" (note the app name at the beginning), but no namespace in the designer or the code-behind.

Next, I add a new web form, "Default", to use this new master page.  When I run the app, it keeps throwing the error "could not load type "VMA.Master".  

Please help.  This is making me nuts!
0
Comment
Question by:dhenderson12
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 37737277
There is usually a problem when going from a Web Site model to a Web Application model, because of the attributes that are used.  I believe that the Web Site model uses the CodeFile attribute, and the Web Application model uses the CodeBehind attribute.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question