Welcome to WebmasterWorld Guest from 18.206.168.65

Forum Moderators: ocean10000

Message Too Old, No Replies

Unknown server tag error

     
2:25 pm on Jul 17, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


I have an asp page that is erroring on this

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'cc1:WYSIWYGEditor'.

Source Error:

Line 33: <td>
Line 34: Message:<br />
Line 35: <cc1:WYSIWYGEditor id="WYSIWYGEditor1" runat="server" btnCssText="False" btnPreview="False" UseTagSelector="False" scriptPath="../scripts/">
Line 36: </cc1:WYSIWYGEditor>
Line 37: </td>

Now here is the aspx page. Notice I do have the tag registered.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="newmail.aspx.vb" Inherits="admin_newmail" ValidateRequest="false" MasterPageFile="../MasterPage.master" Title="New Mail" %>
<%@ Register Assembly="WYSIWYGEditor" Namespace="InnovaStudio" TagPrefix="cc1" %>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPH" runat="server">

<div>
<div class="header">
<p class="pagetitle">New Mail</p>
</div>

<table border="0" cellspacing="0" cellpadding="0">
<tr style="height: 1em;">
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td align="center">
<asp:AccessDataSource ID="templatesSource" runat="server" DataFile="<%$ AppSettings:pathToDB %>" SelectCommand="select * from tblTemplates"/>
Template: <asp:DropDownList ID="templateDD" runat="server" DataSourceID="templatesSource" DataTextField="TemplateName" DataValueField="TemplateID" />
</td>
</tr>
<tr>
<td align="center">Subject: <asp:TextBox ID="SubjectTBox" runat="server" /></td>
</tr>
<tr style="height: 1em;">
<td></td>
<td></td>
<td></td>
</tr>

<tr>
<td>
Message:<br />
<cc1:WYSIWYGEditor id="WYSIWYGEditor1" runat="server" btnCssText="False" btnPreview="False" UseTagSelector="False" scriptPath="../scripts/">
</cc1:WYSIWYGEditor>
</td>
</tr>
<tr>
<td>
<asp:Button ID="done" runat="server" Text = "Done" />
<asp:Button ID="update" runat="server" Text = "Update" />
<asp:Button ID="cancel" runat="server" Text = "Cancel" />
</td>
</tr>
</table>

<asp:Label ID="messageLabel" runat="server" />

</div>

</asp:Content>

I also have it registered in the web.config file

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings>
<add key="connect" value="Provider=Microsoft.Jet.OleDb.4.0;data source=C:\websites\example.org\db\nsra.mdb;" />
<add key="conferencePayee" value="nsra@example.org" />
<!-- fee to become nsra member-->
<add key="registrationFee" value="25" />
<!-- fee to register for conference late -->
<add key="lateregistrationFee" value="25" />
<add key="sendfrom" value="nsra@example.org" />
<add key="mailhost" value="smtp01.example.com" />
<add key="pathToDB" value="C:\websites\example.org\db\nsra.mdb" />
</appSettings>
<connectionStrings>
<add name="connect" connectionString="Provider=Microsoft.Jet.OleDb.4.0;data source=C:\websites\example.org\db\nsra.mdb;" />
</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.

Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<controls>
<add tagPrefix="cc1" namespace="InnovaStudio" assembly="WYSIWYGEditor"></add>
</controls>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode= "Forms">
<forms name=".ASPXAUTH" loginUrl="login.aspx" />
</authentication>

<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>

I didn't write this website I'm just trying to make some updates. I don't even know what cc1 tags are. Can anyone help me, I'm stumped

[edited by: marcel at 2:55 pm (utc) on July 17, 2009]
[edit reason] changed domains to example [/edit]

9:01 am on July 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:732
votes: 0


With custom controls, this usually infers that the .dll cannot be found or is not referenced properly.

A search for 'Parser Error Message: Unknown server tag' will give you thousands of results, with varying solutions.