debug plugin using plugin registration tool CRM 2013

女生的网名这么多〃 提交于 2019-12-10 12:37:56

问题


I have install profiler in one of my plugin step, which will executed on create of record.

Once i complete this, it generate a errorlog. I have copied that text and created a errorlog.txt. It looks like below :

|7V3rkqM4ln4VR/6Y2I0uGzDGl2xXTuR1OmeqKnMys3on+k+HANnJFAY34KrK3tiIfYJ9i32H+d9vsk+yEjcD5iJ8AYxPdUd3gQVIOtI53znfkTT98/eF3vmKLVszjfdnQo8/62BDMVXNmL8/...

When i upload that file, it gives me below 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.InvalidOperationException: File does not contain a valid serialized OrganizationServiceFault. at PluginProfiler.Library.ProfilerUtility.ConvertFaultToStream(String serializedFault) at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)

I have already checked this link Debug CRM 2013 Using Plugin Profiler error : , but its not working.


回答1:


This will happen, if you download the wrong log file and feed into PRT for debugging.

  • Correct log file:

Basically after installing profiler & the plugin step is profiled, once repro step is done in CRM, when trying to download the log file the prompt should read "Business Process error" and it should be encrypted & machine readable like below:

Download the details and load with Plug-in Profiler. |7R1dc+I48q9QPGzdPRgbDMFhCVuzk8wttTsDFTJXW/tyJcttoosteWU5CfvrV7IN4cMBw0wM0ZIHgmS11OputVr.......

  • Wrong log file: (your case)

But not human readable like below:

System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #D42EB3A1Detail:.......



来源:https://stackoverflow.com/questions/44131744/debug-plugin-using-plugin-registration-tool-crm-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!