Unable to load plugin assembly
-
Friday, April 20, 2012 8:20 AM
Hi,
I want to register a plugin. When i try to register plugin on database it is getting registered, but when i register it to disk it show the following error.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unable to load plug-in assembly.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>-2147204719</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Unable to load plug-in assembly.</Message>
<Timestamp>2012-04-20T08:14:59.3044596Z</Timestamp>
<InnerFault>
<ErrorCode>-2147204719</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Unable to load plug-in assembly.</Message>
<Timestamp>2012-04-20T08:14:59.3044596Z</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 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Create(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity)
at PluginRegistrationTool.RegistrationHelper.RegisterAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly) in C:\MSCRM 2011\MSCRM 2011 Downloads\sdk\tools\pluginregistration\RegistrationHelper.cs:line 227
at PluginRegistrationTool.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e) in C:\MSCRM 2011\MSCRM 2011 Downloads\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 461What can be the problem.
All Replies
-
Friday, April 20, 2012 8:27 AM
HI kishanraj,
Before registreing to disk, have you copied the assembly (dll file) to the “Program Files\Microsoft Dynamics CRM\Server\bin\assembly” folder?
Regards,
Damian Sinay -
Friday, April 20, 2012 8:59 AMI have copied the dll to the folder u mentioned
-
Friday, April 20, 2012 9:33 AM
are you running the plugin registration tool in administration mode?
is there a reason why you need to register it to the disk?
Ben Hosking
Check out my CRM Blog
Linked-In Profile
Follow Me on Twitter! -
Friday, April 20, 2012 9:36 AM
HI ,
Try also copying the plugin on the “Program Files\Microsoft Dynamics CRM\Server\bin\” folder
Regards,
Damian Sinay -
Monday, April 23, 2012 1:57 PMModerator
I have seen something like this before. I would recommend do some playing around with the permissions to the /server/bin/assembly folder. It seems that sometimes you need to add the box and user you are trying to register the plugin from to a group or give them privileges to act on this directory.
Also, make sure your user you are registering the plugin from is also a deployment administrator (has to be set up in deployment manager by a current deployment administrator).
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter! -
Saturday, March 16, 2013 3:23 PMModeratorDid you get this resolved? If so, how?
Jamie Miley
Check out RBA Today!
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!