# error in Logon(UserInfo.DefaultUser)

**URL:** <https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011>\
**Category:** Developer Tools\
**Created:** [July 14, 2008, 6:58pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011 "2008-07-14T18:58:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [July 14, 2008, 6:58pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/1 "2008-07-14T18:58:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [July 14, 2008, 8:55pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/2 "2008-07-14T20:55:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [July 14, 2008, 9:15pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/3 "2008-07-14T21:15:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [July 14, 2008, 10:11pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/4 "2008-07-14T22:11:19Z")

</div>

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.zip](http://forums.robotstudio.com/webwiz/PerSvensson/2008-07-14_220428_RSAddin_WriteWobjZ.zip)[2008-07-14\_220607\_RS\_Addin.zip](http://forums.robotstudio.com/webwiz/PerSvensson/2008-07-14_220607_RS_Addin.zip)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [July 14, 2008, 10:34pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/5 "2008-07-14T22:34:26Z")

</div>

Hi Per:

I attached my macro C# project here.

[2008-07-14\_223317\_batteryLn.zip](http://forums.robotstudio.com/webwiz/chen/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

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [July 14, 2008, 10:39pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/6 "2008-07-14T22:39:16Z")

</div>

Hi  
You can mail it to  
[per.svensson@consat.se](mailto: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).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [July 14, 2008, 11:05pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/7 "2008-07-14T23:05:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [July 14, 2008, 11:21pm UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/8 "2008-07-14T23:21:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [July 15, 2008, 12:29am UTC](https://tech-community.robotics.abb.com/t/error-in-logon-userinfo-defaultuser/2011/9 "2008-07-15T00:29:04Z")

</div>

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
