Run a bot from command line - error

I tried to run the bot from the command line using the following command

“C:\Users\skini.KGFSL\AppData\Local\UiPath\UiRobot.exe” file:“Main.xaml”

but getting following error

The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

The Main.xaml file is very much present in the folder

No it is not working, whats wrong with the syntax ?

You have to use bellow commands:-
“C:\Program Files (x86)\UiPath\Studio\UiRobot.exe” /file:“C:\Users\XXX\Documents\UiPath\FindRowNumber\Main.xaml”

Instead of giving file name you have to pass the entire file path…

I have tried that also, but same error.

What error you are getting??

I have checked the log also, not able to make out anything from the log

In my machine UIPath is installed in Program Files, so the path is
C:\Program Files\UiPath\Studio\UiRobot.exe

send your command line argument what you have passed i will change it and send back to you…

and where is your workflow file path??

C:\Users<username>\Documents\UiPath\IMS>“C:\Users<username>\AppData\Local\UiPath\UiRobot.exe” file:“Main.xaml”

the file Main.xaml is in the folder from which I am running this command ie C:\Users<username>\Documents\UiPath\IMS

C:\Users\AppData\Local\UiPath\UiRobot.exe \file:“C:\Users\Documents\UiPath\IMS\Main.xaml”

no luck, same error