473,385 Members | 1,752 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,385 software developers and data experts.

[assembly:TagPrefix("", "")] Problems

I've never posted here before, but I have lurked for quite some time,
and have been frustrated to my whits end on what to do about this.
Since there is limited support in previous posts (and many of them
being outdated by years at a time) I've decided to post my findings so
that hopefully someone else might benefit from my frustration.

If you've stumbled upon this post, you most likely already know, in
theory, how to define your own custom tagprefix using the assembly
directive:

[assembly:TagPrefix("Namespace", "Prefix")]

And so when you compile and drag and drop your control to your project,
lo and behold: There's still a blasted cc1 in the prefix area.

Here are a few steps to try to alleviate your frustrations.

1. Delete the assembly from your toolbox, _rebuild_ your assembly and
not just build, and add the assembly back again. Try dragging and
dropping.

2. Delete the assembly from your toolbox. Ensure that in the HTML
portion of your page, the <%@ Register> line is gone. Close VS. Open
your assembly. Rebuild your assembly. Close VS. Open your project that
you are trying to add your control to. Add the assembly. Try dragging
and dropping.

3. Create a new project and try dragging and dropping your control onto
the page of the new project.

This last solution is the only thing that has gotten my control to
work. I think there is something extremely fishy in the guts of Visual
Studio that keeps track of an assembly's prefix or something. If
someone has information as to _why_ this is happening, please reply
back soon. This was extremely frustrating for me, and I can only hope
to avoid it in the future.

I think a good rule of thumb for this is: don't add your control to the
toolbox until you have added the assembly directive to your control's
code.

Hopefully this has helped someone else out there, and saved a bit of
frustration for you.

--Seraph

Nov 19 '05 #1
1 1896
Hi Seraph,

Thanks for sharing. I am sure someone will find this useful.

Tod Birdsall, MCSD
http://tod1d.blogspot.com

Nov 19 '05 #2

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

Similar topics

0
by: Henri | last post by:
Hi, I've built a custom control named Tree in MyNameSpace.Tree compiled into dans MyNameSpace.Tree.dll I've then designed a page index.asp with its code in index.aspx.vb (class PageIndex)....
3
by: kw | last post by:
I've spent all week trying various workarounds and keep coming back this bug, but I just don't understand what the problem is. An ASPX defines a control: <%@ Register TagPrefix="iewc"...
4
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the...
1
by: John Blair | last post by:
hi,I have the following code which gives an error in VB.Net when i run it that it cant find the assembly SimpleControlSamplesVB? any ideas how to resolve this error? Thanks for any help! J. ...
1
by: Me | last post by:
I suddenly started getting the following kind of error and aren't sure what to do to fix it: << << Compiler Error Message: CS1595: 'MyWebApp.Secure.Admin.AddEditUsers' is defined in multiple...
0
by: ksayal | last post by:
Hi, I'm creating a project. Whenever I try to add a user control or add an aspx page it gives me the following error. When I remove the inherits="" thing, it shows up the page.... What would be...
4
by: kevin | last post by:
Hi, I am trying to create a page so the user can browse the network, select a file and have that file name (text) inserted into our sql DB so I can build the hyperlink path later on. Here's what...
1
by: nish85 | last post by:
Hi, i have uploaded my sit to web server goddady.com i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a...
1
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi I am creating a web service PreprocessingService with IIS Hosting and transport layer security with user name and password. I created a self-signed certificate IISHost in IIS which is issued...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.