error in Logon(UserInfo.DefaultUser)

Hi,

I’m using RS 5.10 to write macros to access Virtual Controller data. However, as soon as I use the Logon function to log onto the controller:

controller.Logon(UserInfo.DefaultUser);

I get the following error:

Unable to find the specified file.

I tried logging off first, logging on with different users, etc. But the problem persists. If I comment it out, I get the error that I have no authenticated user.

My understanding is that Logon() failed because something was not set right. Could anyone help me unravel this mystery?

Thanks,

Sam

Hi
I have used the code I posted to you in RS thread and it works fine as a macro for me in 5.10.
So my questions are

  1. How did you config your Virtual Controller?
  2. What RobotWare version did you use when creating the Controller?

Hi Per,

The controller is automatically created by RS 5.10. I didn’t do anything to create it or config it. But now I understand. I’m working on changing App.config file.

I’m using RobotWare 5.10.

Thanks,

Sam

Hi
Tried your code an was able to logon without any errors but if you upload or mail the station as pack&go then I will be able to try it as you do because I had a lot off errors due to path’s and all that stuff and I don’t know if that’s why the logon worked for me.

For your testing here is what I used
Used a IRB140 template controller

2008-07-14_220428_RSAddin_WriteWobjZ.zip2008-07-14_220607_RS_Addin.zip

Hi Per:

I attached my macro C# project here.

2008-07-14_223317_batteryLn.zip

However, my RS project is too big and I can’t attach it.

I looked thru your files and really didn’t see anything that makes yours different from mine. It’s weird.

Sam

Hi
You can mail it to
per.svensson@consat.se
I got your previous macro working except for the stuff that’s related to the RS station(to much to setup manually).

Hi Per:

I tested the code you gave to me. It returns the same error as I had:

Unable to find the specified file.

I think it must be something with the station I built.

Sam

What if you try my code in a new station with just a robot?

Hi Per:

Now I have no problem with your simple station and code.

However, I still have the same problem with my station. I think this Logon error might have to do with the fact that I built my station thru Robot Studio BEFORE I installed Robot Application Builder. My station may not be “used to” RAB. Is it possible?

Sam