
Hi,
using Plugin Registration Tool I enabled profiling one of my plugins. I cannot however disable the profiling now - the profiler throws an error "Assembly must be registered in isolation.". I cannot uninstall the profiler as well (the same error).
How to disable the profiling?
I'm using CRM 2013 with SDK 6.1.1
Full error text below:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Action failed for assembly 'fullnamePlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5142aa48c1eedc41': Assembly must be registered in isolation.
Detail: <OrganizationServiceFault xmlns="">schemas.microsoft.com/.../Contracts" xmlns:i="">www.w3.org/.../XMLSchema-instance">
<ErrorCode>-2147220906</ErrorCode>
<ErrorDetails xmlns:a="">schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Action failed for assembly 'fullnamePlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5142aa48c1eedc41': Assembly must be registered in isolation.</Message>
<Timestamp>2020-09-23T11:27:47.6867155Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220906</ErrorCode>
<ErrorDetails xmlns:a="">schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Action failed for assembly 'fullnamePlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5142aa48c1eedc41': Assembly must be registered in isolation.</Message>
<Timestamp>2020-09-23T11:27:47.6867155Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at PluginProfiler.Library.ProfilerManagementUtility.DisableProfilerSteps(CrmServiceClient service, Dictionary`2 steps)
at PluginProfiler.Library.ProfilerManagementUtility.DisablePlugin(CrmServiceClient service, Guid profilerStepId)
at Microsoft.Crm.Tools.Libraries.OrganizationHelper.DisableProfiler(CrmPluginStep step)
at Microsoft.Crm.Tools.PluginRegistration.OrganizationControlViewModel.StartProfiler_Clicked()
I solved this problem - user who is operating the profiler should have a Deployment Admin role