cv4ab-api-dotnet icon indicating copy to clipboard operation
cv4ab-api-dotnet copied to clipboard

Unable to load DLL PicTag

Open DotNetFiver opened this issue 5 years ago • 9 comments

Hi, I've created a new Net core 3.1 project and pasted in some code behind a button click just to step through the code, the tag I tested in another app previously.

I added Corsinvest using Nuget console

I get the error here:

dll

I'm using Visual Studio Preview 16.5 but I can use earlier stable version if required Thanks in advance

DotNetFiver avatar Dec 18 '19 09:12 DotNetFiver

Having the same issue here. When I made a simple dotnet core Console application I didn't have this problem. Using VSCode image

When I tried to make a WinForm application I get the same error as you using VStudio.

MattCosturos avatar May 15 '20 18:05 MattCosturos

If you make a simple dotnet core console project you can copy the plctag.dll into your vstudio project and it works.

MattCosturos avatar May 15 '20 18:05 MattCosturos

I have the same issue. VS2019, NuGet version of this assembly is 0.1.7. I've created standard WinForm application. Also, I've tried to put plctag.dll to the project folder. Nothing helped.

OlegUA avatar Jun 16 '20 18:06 OlegUA

You need to put plctag.dll inside the /bin/Debug folder (next to the .exe that is built)

MattCosturos avatar Jun 19 '20 12:06 MattCosturos

You need to put plctag.dll inside the /bin/Debug folder (next to the .exe that is built)

Hi, good. i am trying to fix it

Best regards

franklupo avatar Jun 19 '20 15:06 franklupo

I'm running into this same issue with a .NET Core 3.1 Console project in VS2019, Win10. I've tried copy the different runtime versions of plctag.dll into the debug folder, changing the platform (x64, x86, Any CPU). I either get a BadImageFormatException (x86) or DllNotFoundException (x64). Please advise.

image

john10e avatar Jul 17 '20 21:07 john10e

Update: I copied the plctag.dll from another project (https://github.com/libplctag/libplctag.NET) into the debug folder shown below and now it works: image

john10e avatar Jul 20 '20 19:07 john10e

Hi all, sorry but I'm very busy working. In the coming weeks I will update the project with the new dll.

Best regards

franklupo avatar Jul 21 '20 08:07 franklupo

VC++ redistributable x86 worked for me Thanks,

kapatil2602 avatar Aug 31 '20 15:08 kapatil2602