CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Sep 2004
    Posts
    65

    [RESOLVED] Problem with Custom Control TagPrefix

    Hello,

    I have created a few custom web controls using VB.NET in Visual Studio 2003. Everything with the control functionality is working just fine, but the tag prefix isn't behaving correctly.

    I have added the following tag to my AssemblyInfo.vb:
    Code:
    Imports System
    Imports System.Reflection
    Imports System.Runtime.InteropServices
    Imports System.Web.UI
    
    ' General Information about an assembly is controlled through the following 
    ' set of attributes. Change these attribute values to modify the information
    ' associated with an assembly.
    
    ' Review the values of the assembly attributes
    
    <Assembly: TagPrefix("HCAWebControls", "hca")> 
    <Assembly: AssemblyTitle("")> 
    <Assembly: AssemblyDescription("")> 
    <Assembly: AssemblyCompany("")> 
    <Assembly: AssemblyProduct("")> 
    <Assembly: AssemblyCopyright("")> 
    <Assembly: AssemblyTrademark("")> 
    <Assembly: CLSCompliant(True)> 
    
    
    'The following GUID is for the ID of the typelib if this project is exposed to COM
    <Assembly: Guid("3DAC7718-C427-4182-BC9E-190ECC93114C")> 
    
    ' Version information for an assembly consists of the following four values:
    '
    '      Major Version
    '      Minor Version 
    '      Build Number
    '      Revision
    '
    ' You can specify all the values or you can default the Build and Revision Numbers 
    ' by using the '*' as shown below:
    
    <Assembly: AssemblyVersion("1.0.0.0")>
    The assembly name is HCAWebControls and the Root Namespace is HCAWebControls. When I add the controls to the toolbox in VS2003, the controls work fine, but VS ignores the TagPrefix that I have specified in AssemblyInfo.vb. It keeps assigning cc1 as the tag prefix instead of hca, as I have specified...

    Any ideas on what could be wrong here?

    Thanks,
    Ranthalion

    [edit]
    I came in this morning, started up my computer , and all of a sudden it worked. I guess it was just windows/VS2003 needed a restart... go figure...
    [/edit]
    Last edited by Ranthalion; July 11th, 2007 at 01:28 PM. Reason: Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured