I am trying to debug a plugin but it throws following exception:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Request failed. Detail: <OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance"> <ErrorCode>-2147220970</ErrorCode> <ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"> <KeyValuePairOfstringanyType> <a:key>CallStack</a:key> <a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema"> at launchECM.launchECM.Execute(IServiceProvider isp) at PluginProfiler.Library.PluginAppDomainProxy.ExecuteCore(Stopwatch watch, ProfilerExecutionReport report, Object instance, Object executionParameter) at PluginProfiler.Library.AppDomainProxy.Execute(ProfilerExecutionConfiguration configuration, ProfilerExecutionReport report)</a:value> </KeyValuePairOfstringanyType> </ErrorDetails> <Message>Request failed.</Message> <Timestamp>2016-09-19T10:01:47.3347623Z</Timestamp> <InnerFault i:nil="true" /> <TraceText i:nil="true" /> </OrganizationServiceFault>
Following is my code in which I want to launch an exe file from network shared location.
public void Execute(IServiceProvider isp) { try { Process.Start(@"\\dom\root\apps\AppFolder\QA\APPNavigator\test.exe"); } catch (FaultException<OrganizationServiceFault> ex) { throw new InvalidPluginExecutionException("An error occurred in MyPlug-in.", ex); } catch (Exception ex) { throw new InvalidPluginExecutionException(ex.ToString()); } }