Solved

master pages in vs2010

Posted on 2012-03-18
1
277 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now