# class controller

**URL:** https://tech-community.robotics.abb.com/t/class-controller/1984
**Category:** Developer Tools
**Created:** [July 3, 2008, 1:18pm UTC](https://tech-community.robotics.abb.com/t/class-controller/1984 "2008-07-03T13:18:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TEUTON](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@TEUTON](https://tech-community.robotics.abb.com/u/TEUTON)
#### Post date: [July 3, 2008, 1:18pm UTC](https://tech-community.robotics.abb.com/t/class-controller/1984/1 "2008-07-03T13:18:29Z")

</div>

Hi people! I have a new problem. This time is for another exception. I want to get some data of the controller’s cpu, but when I acces member MainComputerServiceInfo of the controller object, the program throws a exception: GenericControllerException and the message of the exception is: the URL used to initialize the helper does not resolve to a valid object.  
I saw the help of PC SDK, but there aren’t much information. Please, help me. Can you help me?

Source code:

private void ConnectToController(object sender, MouseEventArgs e)  
{  
ListViewItem item = this.listView1.SelectedItems[0];  
if (item.Tag != null)  
{  
ControllerInfo controllerInfo = (ControllerInfo)item.Tag;  
if (controllerInfo.Availability == ABB.Robotics.Controllers.Availability.Available)  
{  
if (this.controller != null)  
{  
this.controller.Logoff();  
this.controller.Dispose();  
this.controller = null; ;  
}  
this.controller = ControllerFactory.CreateFrom(controllerInfo);  
this.controller.Logon(UserInfo.DefaultUser);  
MessageBox.Show(“Te has conectado!”);  
ActualizarSenyal();  
try  
{  
MainComputerServiceInfo infCPU;

infCPU = this.controller.MainComputerServiceInfo;

}  
catch (ABB.Robotics.GenericControllerException ex)  
{  
MessageBox.Show(ex.Message);  
}  
}  
else  
{  
MessageBox.Show(“Selected controller not available.”);  
}  
}  
}

Thank you a lot.

---

<div class="post-metadata">

### Author: ![Ingela](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@Ingela](https://tech-community.robotics.abb.com/u/Ingela)
#### Post date: [July 3, 2008, 2:05pm UTC](https://tech-community.robotics.abb.com/t/class-controller/1984/2 "2008-07-03T14:05:20Z")

</div>

Hi,

The property can only be used when logged on to a real RC, but I guess you know that…

---

<div class="post-metadata">

### Author: ![TEUTON](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@TEUTON](https://tech-community.robotics.abb.com/u/TEUTON)
#### Post date: [July 4, 2008, 5:14pm UTC](https://tech-community.robotics.abb.com/t/class-controller/1984/3 "2008-07-04T17:14:07Z")

</div>

Thank you, but my program logs on to a real RC. For this reason I don’t know what is happening.

---

<div class="post-metadata">

### Author: ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)
#### Post date: [July 4, 2008, 8:00pm UTC](https://tech-community.robotics.abb.com/t/class-controller/1984/4 "2008-07-04T20:00:52Z")

</div>

Do you have the same major version of RAB, i.e. 5.10.x and RobotWare installed on the robot, as well as the runtime environment of the target PC? All of these components need to be the same version to ensure full compatability.
