Hello,
When I tested “Take Screenshot” activity locally it worked fine, but when I tried to run it in background on a vm, I got the following exception:
Take Screenshot: System.ComponentModel.Win32Exception (0x80004005): The handle is invalid at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation) at System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation) at UiPath.Vision.UiImage.FromScreenRegion(Rectangle region) at UiPath.Core.Image…ctor(Region screenRegion)
I tried changing hight, width, depth from orchestrator, but it didn’t solve the problem. Is this problem caused by new updates because I’ve seen some solutions saying that for this type of exception I should uninstall and install everything again.
Thank you!