I'm using Plugin Registration tools Version 5.0.9690.3448.
I can debug custom workflow activity but can't debug a plugin. When I try to update or creaet any record, it throw me the following error messages. But it is supposed to give me a log file which will be used to debug the plugin with Visual Studio. Any
idea?
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): PluginProfiler.Plugins.ProfilerPlugin:
System.TypeInitializationException: The type initializer for 'PluginProfiler.Plugins.ServiceWrappers.ServiceProviderWrapper' threw an exception.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Unexpected exception from plug-in (Execute): PluginProfiler.Plugins.ProfilerPlugin: System.TypeInitializationException: The type initializer for 'PluginProfiler.Plugins.ServiceWrappers.ServiceProviderWrapper' threw an exception.</Message>
<Timestamp>2013-10-22T23:46:22.8755916Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[PluginProfiler.Plugins: PluginProfiler.Plugins.ProfilerPlugin]
[26d11482-603b-e311-8b3b-0017a477fc08: EDMC.CRM.Plugin.Close_CBS_Case_Resolution: Update of incident (Profiler)]
</TraceText>
</OrganizationServiceFault>
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.