I you installed CRM Server in aany other machine, and plugins are registered
on Disk, then you need to copy the plugins to the other servers too.
If it worked before just try reset iis and see if it picks up the assemblies
correctly as it flushes all the Caches...
Using the tool on the blog, go to Organization->Views ->View by Entity to
look at what plugins are being fired when the action applies to that entity.
"Kevin" wrote:
> OK, I am at a loss here...I cannot figure this one out.
> I had plugins working before...but i reinstalled CRM Server, and cannot get
> them working again.
>
> All I get is "Unable to Loan Plugin Assembly" messages.
> All of the Crm.Sdk dll's are in the GAC, and the plugin and the debug
> symbols are in the bin\assembly folder as they should be.
> The plugin was also signed at compile time.
>
> I am using the plugin base from
> "http://blogs.msdn.com/akezyt/archive/2007/11/27/crm-plug-in-that-expose-easy-precreate-postcreate-v3-style-interface.aspx"
>
> Not sure what's going on...like I said...it used to work...but not anymore...
CRM Server is only on this one machine.
IISReset didn't fix the problem.
The plugin is supposed to be fired on Create Contact. The C# code within
the called method is actually empty, so, there seems to be an error while the
plugin is being loaded, not called...since if it were able to call the
method, there would be no code that could cause and error.
Is there some minor little setup piece I'm missing that I did in the first
setup, that I'm not doing now?
Here's how I installed:
1. Developed an "empty" plugin interface to be called on Contact Create.
Actual method is empty. Only added reference is Microsoft.Crm.Sdk.
2. Compiled the plugin, and copied it to "C:\Program Files\Microsoft
Dynamics CRM\Server\bin\assembly", along with the debug symbols file.
3. Copied Microsoft.Crm.Sdk.dll to the GAC of the CRM server.
4. Ran the Registration tool.
5. Loaded my assembly, and registered it.
6. Mapped "Create" "Contact" to synchronous, server-only.
7. Opened CRM, added a contact...got the error message.
Is there no place to check a detailed error message as to why it could not
be loaded? Is there a logfile somewhere...nothing appears in the event log
of the server.
I tried running "aspnet_regiis -ga MSCRM\ASPNET"...and it said that adding
the security privileges were successful...but I'm still having problems.
--
Thanks
Ajith
http://code.msdn.microsoft.com/crmplugin
This posting is provided "AS IS" with no warranties, and confers no rights.
"Kevin" <Ke...@discussions.microsoft.com> wrote in message
news:8217871F-2A38-43C2...@microsoft.com...
Did you manage to get a resolution on this, im having the same problem and
have tried everything but no joy yet!
I added read rights (under the security tab) to "Everyone" on the "Windows"
folder, and had it replace permissions on all sub-folders and files (under
advanced), and it fixed my problem.
Now, I don't recommend doing this, honestly, but for some reason, thats what
I had to do to get it working. There was some folder or DLL that it needed
somewhere in there...but I have no idea what one it was.
Thanks for getting back to me so quickly. I'll try that suggestion out,
however I think my problem is a little different.
I register my plugin to either disk or database and have copied the SDK
dll's into the server's GAC - Now when my plugin is fired I get an error
saying 'Unable to connect to remote server' When I check the trace logs and
event logs it indicates that it was trying to connect to the original Visual
Studio soultion file path on my computer (where the plugin was created).
The event is attempting to create a new related entity to an Account and is
using
crm service...
ICrmService service = (ICrmService)context.CreateCrmService(true);
Any ideas on what is going on here?
Am I missing something here? The plugin is using the