我正在尝试使用代码段
从dynamics crm插件中的网络位置启动.exe文件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");
}
}
该片段引发异常。不知道如何从网络位置启动.exe。
异常
<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 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" />
更新1
这是Dynamics CRM内部部署环境,该文件不在CRM服务器上。
更新2
exe文件和CRM都在同一个网络中。