473,670 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[assembly:TagPre fix("", "")] 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:TagPre fix("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 1903
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
1330
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). This page registrers my Tree control: <%@ Register TagPrefix="km" NameSpace="MyNameSpace" Assembly="tree.dll" %> Everything runs well when I compile aspx.vb myself without specifying any
3
2360
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" Namespace="Microsoft.Web.UI.WebControls"
4
2714
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 source of the files...
1
1110
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. 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
1
1104
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 places; using definition from 'e:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\MyWebApp_nexusdb\fe7356c1\5423ab61\assembly\dl2\6d403101\4e8dc9c6_3d17c501\MyWebApp_NexusDB.DLL'
0
1456
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 the cause of this problem.. Please suggest asap.. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error
4
4010
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 seems to be the problem. These are video files and are enormous with long crazy names so trying to hand type the file name in a text box is not an option. So I'm using an Input "file" control so when the user browses out onto the network...
1
7378
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 message like "That assembly does not allow partially trusted callers" This is my web.config file Please help me on this issue? <?xml version="1.0"?>
1
3189
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 to and issued by the local host. When I run the service from IIS (https) it is running fine but when I call it from the client it is throwing the following exception: An unhandled exception of type
0
8471
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8592
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8661
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6216
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4213
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2802
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1795
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.