tags:

views:

458

answers:

5

Hi,

When i create a new page in asp.net and try to include the master page,i cannot view the designer part as it shows an error :-

"Master Page Error".

Although the page runs without any errors,Designing the page becomes difficult as i cant see the design.i can only view the source part of the page.this is very difficult for me to design my page properly.

Actually my master page is in another folder.does it make any problem?

Please help

A: 

Can you view design view on the master page?

Do you have double nested master pages - these do not work.

ck
Yes,i can view design view on the master page.
Nandini
no nested master pages.only one master page is there.
Nandini
Actually my master page is in another folder.does it make any problem?
Nandini
A: 

Do you have any AJAX.NET on the page?

Tim
No,No Ajax Controls.Just started creating the page
Nandini
+1  A: 

Are you running the code locally or on a server? If on a server, make sure it has the same version of the .Net framework that you are developing on in visual studio.

Neil N
But both server and local machine have the same version?then what could be the problem?
Nandini
+1  A: 

Another folder is not a problem.

You can try to make a new page and select masterpage on creation. Probably the code in which you are referring to the master page is somehow corrupt.

Check if that works and if so alter the reference of the page giving the error. Still giving an error after that, then alter your question with the page source so people can see what's going wrong.

Mischa Kroon
+1  A: 

Saw this on another post and it fixed it for me. Its crap and its a total hack, but it worked for me. Remove all # symbols from your master page. Problem is, I NEED these in my markup. It all worked fine in VS2005. Every page that had its own master page worked fine. It gave me the Master Pager Error - fix it in code view error when I opened it in VS2008. Took out the # symbols and Voila!, went right to design view in VS2008.