Usage of RAB on PC

labulabu France ✭✭

Hi All,

We are working at developping HMI's for our installations and would like to be able to use the same components for GTPU and PC Based. So far so good on TPU.

We are in need of support in order to build applications on PC as, for example, how to connect to a specific controller without using the NetScanner ( as this one is denied access when launched from a WebPage).



Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

<PRE>Line 29: // Put user code to initialize the page here Line 30: ns = new NetworkScanner(); <FONT color=red>Line 31: ns.Scan(); </FONT>Line 32: int i=1; Line 33: </PRE>
Source File: c:inetpubwwwrootpackwebwebform1.aspx.cs    Line: 31

Stack Trace:
<PRE>[UnauthorizedAccessException: Access is denied.] ABB.Robotics.Controllers.Discovery.NetworkScanner.ScanInternal(Boolean raiseEvents) ABB.Robotics.Controllers.Discovery.NetworkScanner.Scan() PackWeb.WebForm1.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootpackwebwebform1.aspx.cs:31 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain() </PRE>

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573



Secondly, once gaining access to a controller in a windows application, we get the system hanging (application locking when executing the line in the debugger) while trying to get the rapid data

void button1_Click(object sender, System.EventArgs e)
ABB.Robotics.Controllers.RapidDomain.RapidData MyData;
MyData = MyController.Rapid.GetRapidData("T_ROB1","ComTest","toto");
label1.Text = MyData.ToString();
Same code is doing fine on the GTPU.
Version used is RAB 5.05 from SolutionBank
Any help Welcomed,
Best Regards,


Sign In or Register to comment.