In Dynamics CRM 2016 on-prem environment, I've created a plugin to launch a exe file from network location but it throws the exception. I've no idea how to get workaround this and launch exe file?
Code Snippet:
if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity) { Entity account = (Entity)context.InputParameters["Target"]; if (account.LogicalName == "account") { Process.Start(@"<NetworkLocation>\abcTest.exe"); } }
Exception
<ErrorCode>-2147220891</ErrorCode> <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic"> <KeyValuePairOfstringanyType> <d2p1:key>OperationStatus</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>SubErrorCode</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value> </KeyValuePairOfstringanyType> </ErrorDetails> <Message>The server process could not be started because the configured identity is incorrect. Check the username and password</Message> <Timestamp>2016-09-02T04:42:55.1394536Z</Timestamp> <InnerFault i:nil="true" />