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

Not able to connect to RobotStudio with VS 2017 #6

Open
mjkoehle opened this issue Jun 27, 2018 · 4 comments
Open

Not able to connect to RobotStudio with VS 2017 #6

mjkoehle opened this issue Jun 27, 2018 · 4 comments

Comments

@mjkoehle
Copy link

When trying to connect with RobotStudio using arm.Connect(); fails with:

System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'ABB.Robotics.Controllers.PC, Version=6.5.7392.129, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Source=Machina
StackTrace:
at Machina.Drivers.Communication.RobotStudioManager.LoadController(Int32 controllerID)
at Machina.Drivers.Communication.RobotStudioManager.Connect(Int32 deviceId)
at Machina.Drivers.DriverABB.ConnectToDevice(Int32 deviceId)
at Machina.Control.ConnectToDevice(Int32 robotId)
at testMachinaApp.Program.Main(String[] args) in C:...\testMachinaApp\Program.cs:line 20

This is with VS 2017, using framework .NET Core 2.1. With VS 2015 and .NET framework 4.6.1, there is no issue.

@nonoesp
Copy link
Collaborator

nonoesp commented Jun 28, 2018

Hi @mjkoehle! Sorry to hear.

  1. Are you using Machina v0.6.2 or another release version? Or are you building from source?
  2. Have you checked if ABB.Robotics.Controllers.PC.dll is being copied to the folder from which Machina.dll is being loaded in your program?

@garciadelcastillo
Copy link
Member

Thanks for reporting @mjkoehle.

Seems like there is a compatibility issue, will look into it.

However, we are trying to move away from external dependencies in the future. Maybe the way to go in the future is to simply not rely on any other library...

@mjkoehle
Copy link
Author

mjkoehle commented Jun 28, 2018 via email

@mjkkirschner
Copy link

mjkkirschner commented Jun 28, 2018

I think the issue is clear here (of course I am guessing 😉 )- ABB's dlls are not supported in .net core - have you used the .net core checker to see if the assemblies are supposed to work?

https://docs.microsoft.com/en-us/dotnet/standard/analyzers/portability-analyzer

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

No branches or pull requests

4 participants