Results 1 to 3 of 3

Thread: Recognise a .Net dll

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Posts
    7

    Question Recognise a .Net dll

    Hi All,

    I"m now passing from VB6 to VB.NET and met with a disturbing problem:

    i have created a class library and built it to a dll file.
    i have created a windows application and added a reference to that dll.
    So far everything works fine.

    When i took this all package to another computer, the build failed since it didnt find the dll file.

    I guess that when i add a reference, it saves the absolute path.
    This is a .Net dll and not COM so i cant do a simple register to windows.

    How do i register the .Net dll or how do i make it recognised in the other computer? (how to make it's location relative and not absolute? It didnt work even when they all were in the same folder).

    Thanks in advance,
    Eran

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Use Assembly Registration Tool like this :

    regasm yourdll.dll

  3. #3
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    You shouldn't have to register it if it is just a simple .NET dll and exe. Are you building an installer or just using XCopy? You should just be able to copy the DLL AND the EXE to the target machine and run the exe.

    If you are actually trying to build (compile) the project on another computer, you can just add the reference again so that the path is correct, or set up the same directory structure as the source machine.

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