i trying launch .exe file network location in dynamics crm plugin using code snippet
if (context.inputparameters.contains("target") && context.inputparameters["target"] entity) { entity account = (entity)context.inputparameters["target"]; if (account.logicalname == "account") { process.start(@"<networklocation>\abctest.exe"); } }
and snippet throws exception. idea how can launch .exe network location.
exception
<errorcode>-2147220891</errorcode> <errordetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/system.collections.generic"> <keyvaluepairofstringanytype> <d2p1:key>operationstatus</d2p1:key> <d2p1:value xmlns:d4p1="http://www.w3.org/2001/xmlschema" i:type="d4p1:string">0</d2p1:value> </keyvaluepairofstringanytype> <keyvaluepairofstringanytype> <d2p1:key>suberrorcode</d2p1:key> <d2p1:value xmlns:d4p1="http://www.w3.org/2001/xmlschema" i:type="d4p1:string">-2146233088</d2p1:value> </keyvaluepairofstringanytype> </errordetails> <message>the server process not started because configured identity incorrect. check username , password</message> <timestamp>2016-09-02t04:42:55.1394536z</timestamp> <innerfault i:nil="true" />
update 1
it dynamics crm on-premise environment , file not on crm server.
update 2
both exe file , crm in same network.
Comments
Post a Comment