473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Conversion Problem ... Register TagPrefix

I'm trying to convert a project from VS2003 to VS2005

After conversion all of my TagPrefix are not recognized in the body.

<%@ Register TagPrefix="Oaklodge" TagName="Curve" Src="ctrls/Curve.ascx" %>

This does not report any errors, but when I try to use it like
<Oaklodge:Curve runat="server" />

I get the following error

Error 3 Element 'Curve' is not a known element. This can occur if there is a
compilation error in the Web site. C:\My
Documents\Oaklodge\oaklodge.com\default.aspx 19 17 http://localhost/

Any ideas please?

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
Dec 1 '05 #1
1 2619
Hi Michael,

Welcome to ASPNET newsgroup.
From your description, after you upgrading a certain ASP.NET 1.X project
(vs2003) to ASP.NET 2.0(vs2005), there occurs some compilation error with a
page use another ascx usercontrol ,yes?

Based on my experience, the VS.NET 2005 will do some modification on the
ascx file and its code file due to the new syntax , e.g:

change Codebehind to CodeFile....

However, as for the <%@Register TagPrefix... TagName..... %> it still
remains the same with 1.1 syntax. Also based on my local test through some
simple page and ascx control, seems didn't encouter the same error. So this
is likely a project or page specific problem. If you create a new aspx
page and drag the usercontrol control onto it (in the upgrated 2.0
project), does that page works correctly? If convenient, you can attach a
simple reproduce project so that we can peform some tests locally.

In addition, the following article include some common migrate issues , you
can also have a look to see whether there is any related scenario in your
web project:

http://msdn.microsoft.com/asp.net/re...default.aspx?p
ull=/library/en-us/dnaspp/html/conversionissuesasp_net.asp

Hope helps. 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.)
--------------------
| From: "Michael Tissington" <mt*********@newsgroups.nospam>
| Subject: Conversion Problem ... Register TagPrefix
| Date: Thu, 1 Dec 2005 11:52:54 -0800
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| Message-ID: <ej**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 65.249.55.7
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362140
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I'm trying to convert a project from VS2003 to VS2005
|
| After conversion all of my TagPrefix are not recognized in the body.
|
| <%@ Register TagPrefix="Oaklodge" TagName="Curve" Src="ctrls/Curve.ascx"
%>
|
| This does not report any errors, but when I try to use it like
| <Oaklodge:Curve runat="server" />
|
| I get the following error
|
| Error 3 Element 'Curve' is not a known element. This can occur if there
is a
| compilation error in the Web site. C:\My
| Documents\Oaklodge\oaklodge.com\default.aspx 19 17 http://localhost/
|
| Any ideas please?
|
| --
| Michael Tissington
| http://www.oaklodge.com
| http://www.tabtag.com
|
|
|

Dec 2 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kristoffer Arfvidson | last post by:
Ok, so a new question... Im building my page as dynamic as I can... meaning that I have basicly one aspx page that controls everything... so, I solved this by sending different variables to the...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
3
by: ad | last post by:
I download the source of Portal Starter Kit form http://www.asp.net/Default.aspx?tabindex=8&tabid=47 I find there are Register tag in many .aspx, like this HtmlModule.ascx , the first line is ...
0
by: Andre Ranieri | last post by:
This is a followup post to my earlier question regarding conversion from 1.1 to 2.0. I've been using VS 2003 for a couple years now but recently downloaded VS 2005 beta 2 to evaluate and learn. ...
5
by: serge calderara | last post by:
Dear all, I do not see the difference between Referencing an assembliy for use in my project and Register it on a page ? At the end if I want to use assembly functionnality , I need anyway to...
8
by: Umut Tezduyar | last post by:
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly. My question is, if i create a custom web...
5
by: richard.tallent | last post by:
I'm fond of web controls in ASP.NET, but the need for <@ Register%> blocks at the top of each page is a pain. ASP.NET 2.0 has a way to centrally register controls in the web.config file, but it...
1
by: profnachos | last post by:
I am still struggling to convert my .NET 1 project and running into all sorts of issues. At this point, the only thing that is saying is. "/MyWebSite/permits_webgrid.ascx has a circular...
5
by: Nathan Sokalski | last post by:
My Web.config file contains the following section to register some of my UserControls: <pages> <controls> <add tagPrefix="NATE" tagName="Banner" src="~/Banner.ascx"/> <add tagPrefix="NATE"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.