Hi all,
I'm using CRM 13 On premise and having some troubles to debug a plugin. Basically the problem is that after I start profiling the Plugin I'm getting the error log and those steps are ok, the problem starts when I try to Upload the log to the Plugin registration tool because I'm getting an error, here's the error:
Unhandled Exception: System.ArgumentException: Unable to parse the OrganizationServiceFault.
Parameter name: serializedReport
at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)
at PluginProfiler.Library.ProfilerUtility.DeserializeProfilerReport(String assemblyFilePath, String logFilePath, Boolean isCrmDataStream)
at PluginProfiler.Library.ProfilerExecutionUtility.RetrieveReport(String logFilePath, Boolean isCrmDataStream)
at Microsoft.Crm.Tools.PluginRegistration.CommonControls.Helper.ParseReportOrShowError(Window window, FileBrowserView profilePathControl, Boolean requireReportParse, ProfilerPluginReport& report)
Inner Exception: System.Runtime.Serialization.SerializationException: Error in line 1 position 279. Element 'http: //schemas.datacontract.org/2004/07/System.Collections.Generic:value' contains data from a type that maps to the name ':int'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver if you are using DataContractSerializer or add the type corresponding to 'int' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to the serializer.
Here's some info of the plugin
For the SetStateDynamicEntity step:
Message: SetStateDynamicEntity
Primary entity: account
Execution Order: 1
Pipeline stage: Post-Operation
Execution Mode: Synchronus
Deployment: server
Another thing is that this plugin is registered in both SetState & SetStateDynamicEntity, I tried to upload the error log in both plugins without luck.
What could be the problem?
Thanks in advance.