Unrecognized tag prefix or device filter 'asp'

G

Guest

Hi all

I am currently developing in VS .NET 2005. I am trying to create a master
page but am getting the above error (Unrecognized tag prefix or device filter
'asp') when trying to add a Content Placeholder control.

My page source is as follows:

<%@ Master Language="C#" AutoEventWireup="true"
CodeBehind="MainSite.master.cs" Inherits="NBNZ.MasterPages.MainSite" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>National Bank: Business Banking</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<link href="/_private/style_lvl3.css" type="text/css" rel="stylesheet" />
<asp:contentplaceholder id="_metaContent"
runat="server"></asp:contentplaceholder>
</head>
<body>
</body>
</html>

Can anyone help me with this, please?

Thanks and kind regards

Shivonne
 
G

Guest

The first thing to try is this:

1) close all VS instances and then delete the folder contents
2) Folder:
C:\Documents and Settings\[Username]\Application
Data\Microsoft\VisualStudio\8.0\ReflectedSchemas

in VS 2005 XML Schemas are automatically generatedthem using reflection on
Web controls. So if something got "out of whack" that's where you want to
get rid of the results and try letting them get regenerated.
Peter
 
G

Guest

Hi Peter

Thanks for the quick response. I tried your solution below but it hasn't
resolved the problem. I also tried deleting all the files in the Temporary
ASP .NET Files folder under C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 but
still no luck.

Thanks

Shivonne

Peter Bromberg said:
The first thing to try is this:

1) close all VS instances and then delete the folder contents
2) Folder:
C:\Documents and Settings\[Username]\Application
Data\Microsoft\VisualStudio\8.0\ReflectedSchemas

in VS 2005 XML Schemas are automatically generatedthem using reflection on
Web controls. So if something got "out of whack" that's where you want to
get rid of the results and try letting them get regenerated.
Peter




--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




Shivonne said:
Hi all

I am currently developing in VS .NET 2005. I am trying to create a master
page but am getting the above error (Unrecognized tag prefix or device filter
'asp') when trying to add a Content Placeholder control.

My page source is as follows:

<%@ Master Language="C#" AutoEventWireup="true"
CodeBehind="MainSite.master.cs" Inherits="NBNZ.MasterPages.MainSite" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>National Bank: Business Banking</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<link href="/_private/style_lvl3.css" type="text/css" rel="stylesheet" />
<asp:contentplaceholder id="_metaContent"
runat="server"></asp:contentplaceholder>
</head>
<body>
</body>
</html>

Can anyone help me with this, please?

Thanks and kind regards

Shivonne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top