Registering DLL's in .NET

  • Thread starter Thread starter C
  • Start date Start date
C

C

Hi,

I developed some dlls in VB.Net.

Can I simply copy these to another PC and they will
register automatically or does this only happen when I
copy them to the bin folder.

Any web links or help on this would be much appreciated.

C.
 
Can I simply copy these to another PC and they will
register automatically or does this only happen when I
copy them to the bin folder.

For ASP.NET apps, use the bin folder. For normal apps I think it's the same
folder as the app. And the assembly cache works for both.
 
C,

You don't have to register DLL's in .NET. They are located by where they are
stored relative to the main application or by instructions in a
configuration file.

When you create a web application your DLLs should go in the bin folder just
off your root. In a windows application they should go in the same folder as
the EXE.

These examples illustrate the simplest case but there are several other
options. To make things a little more complicated locating a DLL works
somewhat differently if the DLL has a strong name. For more information
search the internet for terms like xcopy deployment, global assembly cache
(GAC), strong name.

Hope this helps,
 
I developed some dlls in VB.Net.
Can I simply copy these to another PC and they will
register automatically

..NET DLL's don't need to be "registered" - just put them in a place
where your app can get to (your app's directory, or the Global
Assembly Cache), and they'll be "discovered" when needed. No more
messy registrations!

Marc

================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 

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

Back
Top