I've seen this error asked a couple of times but none of the answers seem to fix my problem. As per the thread title, I'm trying to use profiler to debug a plug-in problem we are experiencing in CRM online. But it's not playing ball and throws the message:
Unhandled Exception: System.InvalidOperationException: The plug-in type "<my plugin name>" does not exist in the specified assembly.
at PluginProfiler.Library.AppDomainProxy.InitializeProxy(String assemblyFilePath, String typeName, String logFilePath)
This is how I've set up the profiler:
- Downloaded the latest SDK
- Connected Plugin Registration Tool to my org (CRM 2013 Online)
- Installed the Profiler and started a Profile on my plugin
- Recreated the error to get the profile exception and clicked on download log
- Clicked on the debug button back in Plugin Registration Tools
- Selected my assembly and the log file I just downloaded
- Attached Visual Studio to plugin registration tool
- Clicked on start execution
- Profiler logs out:
Profiler> Profiler AppDomain Unloaded
- But I get the above error
I have checked the following is correct:
- It's the correct log file with the profile trace. I have opened it to make sure it's not just a business process exception trace file
- I have redeployed my plugin DLL to make sure I don't have a version mismatch
- When starting up the profiler debug it finds the correct plugin in the drop down when you select the assembly, and it also automatically selects it... but still throws the above error
- The plugin definitely exists. I haven't accidentally attached a wrong DLL or anything.
The only thing I can think of that I'm doing differently is I am merging 2 DLLs (using ILMerge) as I am also using a 3rd party DLL. But it doesn't matter which DLL I pick it always throws the above error.
Has anyone got any other ideas for me?
Thanks in advance!
Conor.