Results 1 to 3 of 3

Thread: VB can not find registered dll?

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    1

    VB can not find registered dll?

    My VB application can not find a registered dll? It is a COM dll developed by someone else.

    I have a system that has a dll registered, and other programs use it just fine.
    I'm developing a VB app in VB.net 2003 and it runs find on the dev machine that does not have the dll registered, but when I copy it over to the main system (with the registered dll), it gives the common error it can't locate the dll.

    I also have a copy in the local directory with the .exe
    I'm not sure what else to do, I did not make the dll and I do not have the source.
    I tried re-registering the dll and it made no difference.

    System.IO.FileNotFoundException: File or assembly name Interop.ETHERNETDETECTORGENLIBRARYLib, or one of its dependencies, was not found.
    File name: "Interop.ETHERNETDETECTORGENLIBRARYLib"

    any help would be great!

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 02
    Posts
    21,655

    Re: VB can not find registered dll?

    You need to copy over the interop file as well... the interop file acts as a wrapper between COM and .NET.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    *Proof positive that searching the forums does work: View Thread *
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *
    * Use Offensive Programming, not Defensive Programming. * On Error Resume Next is error ignoring, not error handling(tm).
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN

  3. #3
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 12
    Posts
    5,501

    Re: VB can not find registered dll?

    Well, a coupla things. Note that the error message does not say that it can't find the file specifically. It may be that it's a dependent file that's missing. And how do you actually reference the .dll within the program? As you say that it is not registered on the development machine that suggests that you have a local reference in play which cannot be reproduced on the main system.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •