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

BadImageFormatException #11

Open
DotNetFiver opened this issue Jun 9, 2020 · 3 comments
Open

BadImageFormatException #11

DotNetFiver opened this issue Jun 9, 2020 · 3 comments

Comments

@DotNetFiver
Copy link

I know this has been hinted at as a problem previously, but I'm not able to solve it
I have cloned the solution directly into VS and changed the IP of the PLC to one thats relevant to me

The first call to code which uses the NativeLibrary fails with BadImageFormatException:

image

Everything is 64 bit as is the plctag.dll reference

I have installed a couple of VC++ components into VS in case that is the issue, something about dlls that the plctag.dll depends on? But that hasn't worked

Any help appreciated!

@franklupo
Copy link
Member

Hi,
Copy dll in root folder

best regards

@DotNetFiver
Copy link
Author

Thanks for your reply, okay so I tried that, I now have the dll in both projects:

image

At least now I have a different error so that would be progress. is there anything I should add which plctag.dll depends on that I don't know about?

Thanks again

@franklupo
Copy link
Member

Hi,
no, which DLL are you using?

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

2 participants