Support > Forums > OpenBots Server > Automation Fails when Run from Server

Automation Fails when Run from Server

Alex Galea

  • Reporter
  • Calender Icon February 09,2023 at 8:59 PM

I have completed my first automation and it runs fine in OBStudio, but when I schedule and run it from the server, I get the error below. I have already attempted a clean reinstall, but I have had no luck figuring this one out.

Error occurred while loading automation assemblies; Error Message = System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users[USERNAME]\AppData\Local\OpenBots Inc\packages\Microsoft.Office.Interop.Outlook.15.0.4797.1003\lib\net20\Microsoft.Office.Interop.Outlook.dll' or one of its dependencies. Access is denied. File name: 'file:///C:\Users[USERNAME]\AppData\Local\OpenBots Inc\packages\Microsoft.Office.Interop.Outlook.15.0.4797.1003\lib\net20\Microsoft.Office.Interop.Outlook.dll' at OpenBots.Executor.Utilities.AssembliesManager.LoadBuilder(List1 assemblyPaths) at OpenBots.Executor.EngineHandler.LoadProjectAssemblies(List1 projectAssemblies)

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Program Files (x86)\OpenBots Inc\OpenBots Agent\OpenBots.Agent.Service\Executor\1.8.6.0\OpenBots.Executor.exe --- A detailed error log follows.

=== Pre-bind state information === LOG: Where-ref bind. Location = C:\Users[USERNAME]\AppData\Local\OpenBots Inc\packages\Microsoft.Office.Interop.Outlook.15.0.4797.1003\lib\net20\Microsoft.Office.Interop.Outlook.dll LOG: Appbase = file:///C:/Program Files (x86)/OpenBots Inc/OpenBots Agent/OpenBots.Agent.Service/Executor/1.8.6.0/ LOG: Initial PrivatePath = NULL Calling assembly : (Unknown).

LOG: This bind starts in LoadFrom load context. WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load(). LOG: Using application configuration file: C:\Program Files (x86)\OpenBots Inc\OpenBots Agent\OpenBots.Agent.Service\Executor\1.8.6.0\OpenBots.Executor.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Attempting download of new URL file:///C:/Users/[USERNAME]/AppData/Local/OpenBots Inc/packages/Microsoft.Office.Interop.Outlook.15.0.4797.1003/lib/net20/Microsoft.Office.Interop.Outlook.dll. LOG: Post-policy reference: Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

This forum has 65 topics, 191 replies, and was last updated 2 months ago by Ghouse Shaik

Tlhopho Sole

  • Participant
  • Calender Icon March 21,2023 at 12:14 PM

Hi Nataly, I also get a similar issue but with OCR

Logging Line 37: Error - Exception in PDF iteration on path =C:\Users\Administrator\Desktop\DataExtraction\Id_Copies\CrisID1.pdfException =>Source: C:\Users\Administrator\AppData\Local\OpenBots Inc\OpenBots Agent\Automations\OpenBots\9648772d-97e8-4862-82ed-289dbb002418\5df11536-e413-4bc9-b88f-16ba619dedf2\PDFDataExtraction\WorkFlow\ExtractDataFromPDF.obscript, Line: 14, Exception Type: FileNotFoundException, Exception Message: Could not load file or assembly 'Google.Api.Gax.Grpc, Version=3.2.0.0, Culture=neutral, PublicKeyToken=3ec5ea7f18953e47' or one of its dependencies. The system cannot find the file specified.

Error Occurred at Line 14: Google OCR [Image 'vFilesPath+vConvertedtoImgId' - Store OCR Result in 'vOCR_Text'] - [Source: 'C:\Users\Administrator\AppData\Local\OpenBots Inc\OpenBots Agent\Automations\OpenBots\9648772d-97e8-4862-82ed-289dbb002418\5df11536-e413-4bc9-b88f-16ba619dedf2\PDFDataExtraction\WorkFlow\ExtractDataFromPDF.obscript', Type: 'FileNotFoundException', Message: 'Could not load file or assembly 'Google.Api.Gax.Grpc, Version=3.2.0.0, Culture=neutral, PublicKeyToken=3ec5ea7f18953e47' or one of its dependencies. The system cannot find the file specified.']

Nataly Alvarado...

  • Participant
  • Calender Icon February 13,2023 at 5:29 PM

Hi Alex Galea,

Thanks for meeting with us today.

As discussed during our troubleshooting session, issue was related to a Microsoft misconfiguration and was resolved by running the Microsoft .Net Framework repair tool: https://www.microsoft.com/en-us/download/details.aspx?id=30135

Nataly Alvarado...

  • Participant
  • Calender Icon February 10,2023 at 4:03 PM

Hi Alex Galea,

Thank you for sharing the requested information.​Please confirm that the following assembly is present in the machine file path specified in the error message.

You are not authorized to reply, please click here to login and add your reply to this topic.