Error trying to start robot remotely with smartcard from UiPath Orchestrator - authentication

The UiPath Orchestrator and robot are set up according to the instructions in the UiPath Guide. When we now try to run a process remotely on a machine with a Developer License the following Error shows up in the Orchestrator logs:
Could not start executor. The requested certificate could not be received. (Exception HRESULT: 0x8010002D)
and the following shows in the Windows Eventviewer:
StartProcessInSession:session.cpp#255: Unable to validate credentials: error: 2148532269
The errorcodes map to SCARD_E_CERTIFICATE_UNAVAILABLE according to https://learn.microsoft.com/en-us/windows/desktop/secauthn/authentication-return-values but I could not find any information on to why this error is occuring.
The manual login is working as usual and we tried it on multiple machines with the same result. Machines without smartcards are working fine.
Does anybody know what the root of this error could be?

This looks like an issue concerning the different types of license. To my knowledge just having a "developer" (I assume here you mean a license to use Studio) does not mean that automations can be launched on that machine from Orchestrator. Orchestrator requires that an unattended bot license be present, which is distinct from a license for Studio or an Attended Bot.
I would recommend closely reading the documentation (https://robot.uipath.com/docs/about-licensing) on licensing to make sure that the you are only trying to call an unattended bot from Orchestrator.

Related

ClickOnce winform does not open from start menu, after windows udates, starts working again after one/multiple computer restarts

Since some time the vb.net application I developed stops working for some users, usually after windows 10 updates. It starts working again after restarting computer one or more times, sometimes it takes few days for it to start.
When user tries to reinstall it, it is installed but throws following error:
Retrieving the COM class factory for component with CLSID {X} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
I'm assuming that it has something to do with a Outlook Interop reference in the project.
When outlook is closed and I run this application as admin I am able to start it, when outlook is open I am not able to do it.
When both outlook and the application are open with admin privilegesit works correctly.
I understand that Outlook and the application should run with the same security level, but I'm not running outlook as admin so I'm confused why I need to run the app as admin.
The target CPU is set to 'Any CPU', should I maybe try changing it to 'X86'?
Office version is Office365 Pro
You need to run both applications under the same security context. If both are run under the same user - everything should work correctly.
However, the following error may indicate that Office applications are automated from a service:
80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
The Considerations for server-side Automation of Office article states the following for such errors:
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.

Azure DevOps VSTest,Site Currently unavailable message and times out despite being up

Currently using Selenium + ChromeDriver to execute automated functional tests through Azure DevOps VsTest task but whenever the task tries to execute tests pointing to a website in NetCore, it times out very quickly and sometimes (a lot of times) I get the standard error message from the registered screenshot on error of "This site can't be reached".
I tried running this locally and pointing to the same website but this issue doesn't seem to happen at all and I've got no clue on what's going on due to the big inconsistency between the results that the VsTest task provides.
I also tried opening Chrome on the machine that executes the task but it seems to open the URL fine there.
One thing to note is that the website I'm using uses Windows Authentication mechanism and I'm sending my credentials directly through the URL with https:\\credentialuserexample1:credentialpassexample2#thewebsiteaddress.com and it seems to open the page without issue there too.

UiPath Bot -Can we do automation testing of Uipath bots?

I want to do the automation testing of UiPath attended and unattended bot. I am not able to identify the window dialog box getting generated from Uipath. Please advice me the tool which can identify objects and automate the UiPath bots.
With uipath 20.4 community preview release there are new exciting features to create test cases in the UiPath studio itself. refer this link here.
https://forum.uipath.com/t/testing-capabilities-in-community-orchestrator-20-4-community-preview-release/210487
however I would imagine you will be on older versions of studio, which requires you to apply other approaches. here is few ways to automate the testing for UIPath processes.
Using the Orchestrator APIs we can monitor the jobs in various ways
https://platform.uipath.com/kinooqmollho/kinoorgDefault/swagger/ui/index#/
Jobs APIs to get status of the jobs
Alerts API to get any alerts generated by the Job
RobotLogs api to get check specific logs you expect or not expect in
the jobs
Apart from this, you could build a test automation script to verify
the results of bot, directly on the applications to make sure results
you expect are showing up there.
Newevest versions of UiPath Studio already have testing built-in (Test Activity).
For full-fledged Automated Testing capabilities watch for the announcements early this year
The newest versions of UiPath Studio already have testing built-in (Test Activity).
You can also take the tutorial in https://academy.uipath.com on how the test automation works.
For running the BOT from command line you can use below syntac on CMD:
"drive:\Users\username\AppData\Local\UiPath\app-20.10.4\UiRobot.exe" -file "..\path_of\Main.xaml"
For testing, if the BOT is running or not you could send an email every few minutes so that you can remotely get the heartbeat of the BOT.

Getting a COMException in my Microsoft Lync video chat app

I am trying to develop a basic app in Visual Studio that does a simple video chat with another person. Everything was working fine and I was able to successfully open a video chat. However, I have installed Lync with UI Supression, and the app will not run. Examining the InnerException I can see that the program is throwing a COMException "Exception from HRESULT: 0x80C8000B"
Via process of elimination I have found that commenting out the line auto = LyncClient.getAutomation() lets the app run, though the functionality of the app is gone.
After all my searching online I cant determine what could be causing this line to break it, and I know I need that line of code in order to move forward.
Automation is not available to you when running in UI Suppression Mode.
Suppression mode requires that Lync be installed on the client's machine, but you then need to use the Lync SDK to do a lot of the things that the client does for you, such as signing in (no trivial matter). However, the Automation section of the SDK is the link to the standard Lync UI, which is why it is unavailable to you.
You also don't have access to any of the UI controls that make up the Lync client ... with the exception of the VideoWindow control - which will most probably be useful to you.
There's a good article on understanding UI Suppression Mode here: http://msdn.microsoft.com/en-us/library/hh345230.aspx
Also, a great sample of how to sign in to Lync when using UI Suppression Mode: http://msdn.microsoft.com/en-us/library/hh378603.aspx
One more thing: if you have access to it, in this book on Lync chapter 5 actually has an end-to-end example of producing a UI Suppression AV kiosk app in WPF - which might be exactly what you're looking for.

How to configure Win2008 to generate crash dump

I am running my C++ servi ce on Win2008 server machine. It crashes randomaly, and i do not know why. This is happening on multiple machines in customer site.
How can i configure the system to auto generate a dump of the process?
I need a method that will require minimal installations and UI, preferably only some registry hacks.
Thanks.
[edit] waiting...
You can use Windows Error Reporting locally on a machine without having to involve Microsoft and without having to sign your code. WER can be configured to store local copies of dumps. The MSDN documentation is here:
http://msdn.microsoft.com/en-us/library/bb787181(v=vs.85).aspx
It's a simple, well thought-out system, and is only a couple of registry settings to configure.
If your customer allows then i would suggest you to install DebugDiag from Microsoft. You can configure the tool to generate dumps when your application crashes and ask them to send you those dumps. I have used this quite often and found it to be successfull. If any help required please let me know.
Sign your executable then register with Microsoft for Windows Error Reporting (the signing certificate costs but WER is free). This will then collect the crash logs when the user hits the 'Send to Microsoft' button. These logs will then sit there until you log in to retrieve them. This requires no other installations on the user's machine.