Global Assembly

Discussion in 'ASP.NET / ASP.NET Core' started by David4FSU, Apr 7, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. On all of the mail type controls it states: "This control is installed in the Global Assembly Cache on all DiscountASP.NET servers".

    I can not figure out how to reference these without uploading the DLL's myself. I have tried the code snippets in the tech articles, but still get an undefined control error. I have put the import Namespace comand and IMPORTS statement in my VB code and neither seems to work.

    So in a nutshell, how do I reference a control that is in the DiscountASP.NET Global Assembly Cache ??

    Thanks,
    David
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Is this a code behind or inline asp.net code?

    For inline code, you just use the IMPORTS statement.

    For code behind, review this FAQ, http://kb.discountasp.net/article.aspx?id=10184



    quote:Originally posted by David4FSU

    On all of the mail type controls it states: "This control is installed in the Global Assembly Cache on all DiscountASP.NET servers".

    I can not figure out how to reference these without uploading the DLL's myself. I have tried the code snippets in the tech articles, but still get an undefined control error. I have put the import Namespace comand and IMPORTS statement in my VB code and neither seems to work.

    So in a nutshell, how do I reference a control that is in the DiscountASP.NET Global Assembly Cache ??

    Thanks,
    David
    </blockquote id="quote"></font id="quote">
     
  3. When I do the IMPORTS, it still shows as a squiggly line under the component name (as an unknown item). Do I have to explicitly reference it? The only way I can do it is to download the component to my local PC, install it, add a reference, and then upload the DLL to the appropriate BIN directory. What am I doing wrong?

    Thanks for the help,
    David
     
  4. And also in answer to your question, it is code behind...
     
  5. That process should work, except for the "Upload to the bin directory" part. If the component is installed in the GAC .NET will find that version of the component on the server.

    quote:Originally posted by David4FSU

    When I do the IMPORTS, it still shows as a squiggly line under the component name (as an unknown item). Do I have to explicitly reference it? The only way I can do it is to download the component to my local PC, install it, add a reference, and then upload the DLL to the appropriate BIN directory. What am I doing wrong?

    Thanks for the help,
    David
    </blockquote id="quote"></font id="quote">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page