Usage of RAB on PC
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> |
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
private 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,
Laurent
Comments
-
The PC CAPI is not in the GAC yet. It will be in 5.06 release coming soon.
ASP:NET has not been covered as a development platform by the product project right now. What you can do to continue is to try to add the ASPNET account to the Administrators group. If this doesn't work, the problem may be related to .NET code access security. See Start Menu/Program Files/Admin Tools/Microsoft .NET 1.1 Configuration.
0 -
Hi,
Thanks for information, as far as ASPNET restrictions, I found a good article about Access Restriction
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q817033
And a possible solution
http://weblogs.asp.net/pleloup/archive/2003/08/25/25226.aspx
This surely needs to be used with caution as it might grant more provileges than expected in some Web applications.
Looking forward 5.06
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings