registering .dll and using it in other web pages

  • Thread starter Arvind P Rangan
  • Start date
A

Arvind P Rangan

hi,
I have compiled a .dll.
steps followed is try to upload the dll to global assembly
method 1: al /i:temp.dll
but this gives an error
method 2: gacutil /i temp.dll - this uploads dll to global assembly.

Next how can i use it.
if i type imports temp it gives error
its not shown in the references list also.

How shall i go about it.

Thanks
Arvind.
 
G

Guest

Have you added it as a reference to the project in which you are trying to do the "Imports Type" in? Even though it's in the GAC, you still need to reference GAC items in your project. You just won't copy them locally to the application's bin directory

-Rick
 
A

Arvind

I am trying to reference it but its not getting displayed in the list.

Even if its added to GAC how to get the .dll displayed in the reference
list.

Can anyone tell me about the procedures.

Thanks
Arvind.
 
P

Patrick Steele [MVP]

hi,
I have compiled a .dll.
steps followed is try to upload the dll to global assembly
method 1: al /i:temp.dll
but this gives an error

"al" is the Assembly Linker. You don't need that for this.
method 2: gacutil /i temp.dll - this uploads dll to global assembly.

Next how can i use it.
if i type imports temp it gives error
its not shown in the references list also.

The list of assemblies displayed by VS.NET is not dynamically generated,
but maintained in a list somewhere (there's a KB article about getting
your assembly listed in GAC).

However, just add a reference to a local copy of "temp.dll". Even
though you're referencing a local copy, .NET will use the copy from the
GAC when running.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top