Solved

master pages in vs2010

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 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

17 Experts available now in Live!

Get 1:1 Help Now