Errors in VS 2005 Source view with User Controls? Why?

G

Guest

I have a large web site converted from 1.1 to 2.0 and in VS 2005, the IDE
complains that in the ASPX file (html source):

Error 1 Element 'stylesheet' is not a known element. This can
occur if there is a compilation error in the Web site.
C:\Documents and Settings\...\Local
Settings\Temp\1\VWDWebCache\onlineformsdev.....com\sweepv2\dorequest1.aspx 16
7 http://onlineformsdev.....com/

The source code (start of the page) is below showing where the user control
is defined and then where it is reference in the the page. I have multiple
user controls defined and methodically this issue occurs for all.

The page runs fine. There is no actual issue. Just the IDE complains.

How do i correct it so i don't get all of the bogus errors showing in VS2005?

<%@ Page Language="vb" AutoEventWireup="false"
Inherits="onlineforms.net.dosweepv2request1" CodeFile="dorequest1.aspx.vb" %>

<%@ Register TagPrefix="of" TagName="timeoutwarning"
Src="../usercontrols/timeoutwarning.ascx" %>

<%@ Register TagPrefix="of" TagName="header"
Src="../usercontrols/header.ascx" %>

<%@ Register TagPrefix="of" TagName="footer"
Src="../usercontrols/footer.ascx" %>

<%@ Register TagPrefix="ofcc" NameSpace="onlineforms.net.CustomControls"%>

<%@ Register TagPrefix="of" TagName="stylesheet"
Src="../usercontrols/stylesheet.ascx" %>

<!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" xml:lang="en" lang="en">

<head>

<title>

<%=product+" - "+requesttype+" Step "+currentstep+" of
"+totalsteps%>

</title>

<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">

<link href="/globalincludes/normal.css" type="text/css"
rel="stylesheet">

<link media="print" href="/globalincludes/printing.css"
type="text/css" rel="stylesheet">

<of:stylesheet id="Stylesheet1" runat="server"></of:stylesheet>

<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">


********************
 
S

Steven Cheng[MSFT]

Hi Robert,

From the error message and info, seems the IDE is complaining about
something on the html content's format. I'm thinking whether it is related
to the restricted xhtml format validation in VS.NET 2005 for asp.net 2.0.
Would you try posting a complete page which can reproduce the behavior so
that I can test on myside?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| Thread-Topic: Errors in VS 2005 Source view with User Controls? Why?
| thread-index: AcXu1kyWyRjN9qKyTCKlZEfQD914XQ==
| X-WBNR-Posting-Host: 171.72.5.240
| From: =?Utf-8?B?Um9iZXJ0?= <[email protected]>
| Subject: Errors in VS 2005 Source view with User Controls? Why?
| Date: Mon, 21 Nov 2005 12:01:02 -0800
| Lines: 64
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:359910
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have a large web site converted from 1.1 to 2.0 and in VS 2005, the IDE
| complains that in the ASPX file (html source):
|
| Error 1 Element 'stylesheet' is not a known element. This
can
| occur if there is a compilation error in the Web site.
| C:\Documents and Settings\...\Local
|
Settings\Temp\1\VWDWebCache\onlineformsdev.....com\sweepv2\dorequest1.aspx
16
| 7 http://onlineformsdev.....com/
|
| The source code (start of the page) is below showing where the user
control
| is defined and then where it is reference in the the page. I have
multiple
| user controls defined and methodically this issue occurs for all.
|
| The page runs fine. There is no actual issue. Just the IDE complains.
|
| How do i correct it so i don't get all of the bogus errors showing in
VS2005?
|
| <%@ Page Language="vb" AutoEventWireup="false"
| Inherits="onlineforms.net.dosweepv2request1"
CodeFile="dorequest1.aspx.vb" %>
|
| <%@ Register TagPrefix="of" TagName="timeoutwarning"
| Src="../usercontrols/timeoutwarning.ascx" %>
|
| <%@ Register TagPrefix="of" TagName="header"
| Src="../usercontrols/header.ascx" %>
|
| <%@ Register TagPrefix="of" TagName="footer"
| Src="../usercontrols/footer.ascx" %>
|
| <%@ Register TagPrefix="ofcc" NameSpace="onlineforms.net.CustomControls"%>
|
| <%@ Register TagPrefix="of" TagName="stylesheet"
| Src="../usercontrols/stylesheet.ascx" %>
|
| <!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" xml:lang="en" lang="en">
|
| <head>
|
| <title>
|
| <%=product+" - "+requesttype+" Step "+currentstep+" of
| "+totalsteps%>
|
| </title>
|
| <meta http-equiv="Content-Type" content="text/html;
| charset=windows-1252">
|
| <link href="/globalincludes/normal.css" type="text/css"
| rel="stylesheet">
|
| <link media="print" href="/globalincludes/printing.css"
| type="text/css" rel="stylesheet">
|
| <of:stylesheet id="Stylesheet1"
runat="server"></of:stylesheet>
|
| <meta content="http://schemas.microsoft.com/intellisense/ie5"
| name="vs_targetSchema">
|
|
| ********************
|
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top