Skip to content

Unhandled Exception: System.IO.FileNotFoundException #11

@xnetdude

Description

@xnetdude

Hi,

Really can't find the issue here,

I have a working install on dev system with the YARA engine but when deployed the TestApp (from this project) to a server I get this:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'libyara.NET.dll' or one of its dependencies. The specified module could not be found.

Have done all the usual dependency walking stuff, checking the file isnt locked (or obv missing) but still no joy.

I resorted to installing a new copy of VS2017 onto a virgin Windows Server 2016 box and then compiled this project and abd the TestApp aworked! Copy all the contents of microsoft\libyara.NET\TestApp\bin\x64\Debug to problem server and get the same error.

For me, it's either VS2017 is installing some dependency which this library needs or there is some lock to the machine it's compiled on - either way I can't figure it out so really appreciate any help or guidance on this.

Thanks.

J.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions