Skip to content

DLL Not Found Exception #252

Closed
Closed
@eduardobellotto

Description

@eduardobellotto

Hi.

I've created a new project in Windows 10 VS 2019 targeting .NET Framework 4.6.2.

Then, I've installed the Tensorflow.NET Nuget Package version 0.8.0.

In Program class, I've inserted using Tensorflow;.

In Main method, I've inserted the code var a = tf.constant(3);.

When I run the code, I receive the exception: DllNotFoundException: Unable to load DLL 'tensorflow': The specified module could not be found..

I've found the closed issue #144 (Cannot load Tensorflow DLL error), but I was not able to solve the problem after reading it.

There is a TensorFlow.NET.dll file in ..\bin\Debug folder, but there is no TensorFlow.dll file in that folder.

I've found a TensorFlow.dll file in ..\packages\TensorFlow.NET.0.8.0\tensorflowlib\runtimes\win-x64 folder.

I've tried to copy this file to the ..\bin\Debug folder, but the error persisted.

I've tried the same with VS 2017 and received the same exception.

Could you help me?

Thanks in advance.

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