View Full Version : Global Assembly
David4FSU
04-07-2004, 07:49 AM
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
bruce
04-08-2004, 05:08 AM
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
[b]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">
David4FSU
04-10-2004, 04:52 AM
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
David4FSU
04-10-2004, 04:53 AM
And also in answer to your question, it is code behind...
pjoyce
04-10-2004, 09:29 AM
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.
[b]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">
vBulletin® ©Jelsoft Enterprises Ltd.