Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load DLL PicTag #8

Open
DotNetFiver opened this issue Dec 18, 2019 · 9 comments
Open

Unable to load DLL PicTag #8

DotNetFiver opened this issue Dec 18, 2019 · 9 comments

Comments

@DotNetFiver
Copy link

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

@MattCosturos
Copy link

MattCosturos commented May 15, 2020

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
Copy link

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

@OlegUA
Copy link

OlegUA commented Jun 16, 2020

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.

@MattCosturos
Copy link

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

@franklupo
Copy link
Member

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

@john10e
Copy link

john10e commented Jul 17, 2020

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
Copy link

john10e commented Jul 20, 2020

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

@franklupo
Copy link
Member

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

Best regards

@kapatil2602
Copy link

VC++ redistributable x86 worked for me
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants