Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / October 2006

Tip: Looking for answers? Try searching our database.

Unrecognized tag prefix or device filter 'asp' error when MasterPageFile attribute is moved from the @Page into Web.config

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cello - 06 Oct 2006 21:47 GMT
Note: This is related to working with MasterPages only and NOT nested
master pages.

IDE reports error Unrecognized tag prefix or device filter 'asp' when
MasterPageFile attribute is moved from the @Page into Web.config.

In some projects, developers may want to control the Theme and the
MasterPageFile from the Web.config.  That works for Themes, but not for
MasterPageFile, because removing this Page attribute renders the page
unusable in the IDE.  The wierd thing is that the application continues
to work at runtime.

If this is not intended to work as the Themes do, why is it possible to
place a masterPageFile directive in the Web.config>system.web>pages
space?  It will never work, since every page has to have
MasterPageFile...

Steps:
Create a web project.
Create a masterpage.
Create a page that uses the masterpage and add some webcontrols to it.
Remove the masterpagefile directive from the @Page.
Place the masterpagefile directive in web.config.
Build the solution.

Results:
All webcontrols will report error: Unrecognized tag prefix or device
filter 'asp'

Expected results:
Page should build just fine just as it does when a Theme is moved from
@Page into the Web.Config
Cello - 06 Oct 2006 22:00 GMT
The wierd thing is that the application continues to work at runtime.
This seems to be a bug.

> Note: This is related to working with MasterPages only and NOT nested
> master pages.
[quoted text clipped - 28 lines]
> Page should build just fine just as it does when a Theme is moved from
> @Page into the Web.Config
Cello - 06 Oct 2006 22:05 GMT
Here is the answer to this post:

http://groups.google.com/group/microsoft.public.vsnet.general/browse_thread/thre
ad/b85132daffce7155/8984107e0d9fa042?lnk=st&q=MasterPageFile+attribute+is+moved+
from+Page&rnum=2#8984107e0d9fa042


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.