Jump to content

Error Unitronics.ComDriver when start debugging in VB.net


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?







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?



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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...