locked
PluginRegistration Tool error while Debugging Custom workflow RRS feed

  • Question

  • CRMOnline 2016: I have developed a CustomWorflowActivity and tyring to debug using PluginRegistration Tool downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=50032

    I tried to change the settings in Visual Studio(x64, Any CPU,etc) still it is not working. Any help on this would be great.

    While adding .pdb file getting below error:

    Unhandled Exception: System.BadImageFormatException: Could not load file or assembly '22016 bytes loaded from PluginProfiler.Library, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format.
       at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, SecurityContextSource securityContextSource)
       at System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore, SecurityContextSource securityContextSource)
       at PluginProfiler.Library.ProfilerUtility.LoadAssembly(String assemblyFilePath)
       at PluginProfiler.Library.ProfilerUtility.DeserializeProfilerReportInternal(String assemblyFilePath, String serializedReport)
       at PluginProfiler.Library.AppDomainProxy.InitializeProxy(String assemblyFilePath, String typeName, String logFilePath, String compressedreport)
       at PluginProfiler.Library.AppDomainProxy.InitializeProxy(String assemblyFilePath, String typeName, String logFilePath, String compressedreport)
       at PluginProfiler.Library.AppDomainProxy.CreateProxy(Type type, AppDomain domain, OperationConfiguration configuration, IList`1 trustedAssemblies, IList`1 partlyTrustedAssemblies)
       at PluginProfiler.Library.ProfilerExecutionEngine.Execute(ProfilerExecutionConfiguration configuration)
       at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, ProfilerExecutionConfiguration configuration)
       at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, OperationConfiguration operation, ProfilerReportingConfiguration reporting, CrmServiceClient administratorProxy, ITracingService tracing)
       at Microsoft.Crm.Tools.DebugPlugin.DebugPluginViewModel.btnExecutionClicked()
    Inner Exception: System.BadImageFormatException: Bad IL format.


    Madhu M.

    Monday, June 13, 2016 10:04 PM

All replies

  • does your SDK match the current versin of your online crm?

    gruss Daniel Ovadia MBSS - Microsoft Dynamics CRM MCNPS

    Tuesday, June 14, 2016 8:19 AM
  • In your post, you say you're 'adding .pdb file '. In the 'Assembly Location' box, you should specify the .dll, not the .pdb


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Tuesday, June 14, 2016 10:45 AM
    Moderator
  • Thanks it

    Madhu M.

    Tuesday, June 14, 2016 2:04 PM
  • Hello All,

    I have also come across such question with little different error message as below.

    Unhandled Exception: System.InvalidOperationException: The plug-in type "namespace.class" does not exist in the specified assembly.
       at PluginProfiler.Library.AppDomainProxy.InitializeProxy(String assemblyFilePath, String typeName, String logFilePath, String compressedreport)
       at PluginProfiler.Library.AppDomainProxy.InitializeProxy(String assemblyFilePath, String typeName, String logFilePath, String compressedreport)
       at PluginProfiler.Library.AppDomainProxy.CreateProxy(Type type, AppDomain domain, OperationConfiguration configuration, IList`1 trustedAssemblies)
       at PluginProfiler.Library.ProfilerExecutionEngine.Execute(ProfilerExecutionConfiguration configuration)
       at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, ProfilerExecutionConfiguration configuration)
       at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, OperationConfiguration operation, ProfilerReportingConfiguration reporting, CrmServiceClient administratorProxy, ITracingService tracing)
       at Microsoft.Crm.Tools.DebugPlugin.DebugPluginViewModel.btnExecutionClicked()

    what will be the possible way to resolve it.

    Friday, November 25, 2016 10:38 AM