Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

master pages in vs2010

Posted on 2012-03-18
1
Medium Priority
?
287 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 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

824 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