DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 13 Aug 2007 17:51:31 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    unknown


Solution: "Element '%' is not a known element. This can occur if there is a compilation error in the Web site"   
If you run accross the error message:

"Element '%' is not a known element. This can occur if there is a
compilation error in the Web site"

where '%' is the value of the tagName attribute on a web user control
you have delcared in your web.config file, then you might try
prefixing your src attribute value with the ~ (tilda) character. As
you probably know, this character tells ASP.NET to resolve the path
from the application root.

So instead of using:

<add tagPrefix="MyPrefix" tagName="MyName" src="/UserControls/
MyControl.ascx" />

use:

<add tagPrefix="MyPrefix" tagName="MyName" src="~/UserControls/
MyControl.ascx" />

A few people have posted about this and hadn't found a solution.

Anyway, it solved my problem and figured I would post it.

Thanks,
BJS
Date:Mon, 13 Aug 2007 17:51:31 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us