Jump to content

Error Unitronics.ComDriver when start debugging in VB.net


chinprarat

Recommended Posts

I got an Error when start debugging as picture due to i have to set Target Framework to be .net4  because I  created the project on Visual studio 2015 which required .Net4 for some .dll file  but  for the Unitronics.ComDriver still old .net

I have try to set AnyCPU at TargetCPU but  the error still remains

Can anyone help me how to fix it as the picture below?

image.thumb.png.f4dc377061111b540545f673287e70e6.png

image.thumb.png.e6190a81a473bc376285a050b9ffc2e7.png

 

image.thumb.png.33a796fa71012ea48e8b8bf3e0fdc450.png

 

 

Link to comment
Share on other sites

Thank you for your suggestion!

You are right but after i do it so I can't built the project because  the error occurred  from the other .dll file.

That is CANbus dll file, Looks like they prefer the Target CPU  to be  X64 or AnyCPU.  

I have  .Net2 and .Net4 for  the CANbus dll file but when I use .Net2 in this project the system said can't mix  .net  differ version.

Do you have any idea to fix this?

 

image.thumb.png.3397f885966935c6897a7cce2ac28f57.png

Link to comment
Share on other sites

Yes, you can take the source code of the .Net communication driver from Unitronics website:

https://unitronicsplc.com/Download/SoftwareUtilities/NET Driver 2015 - Q4.zip

 

Then, add the project to your solution, and add a reference to the project instead of the compiled dll.

Changed the project platform to Any CPU or x64 (or whatever you want or need), compile and run.

 

Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.