Answered by:
Crm 4 plugin registration in Gac

Question
-
How I can Register CRM 4 plugin into GAC using the plugin registration tool. where is the GAc location for .net 4 framework. I have registered plugin as sandbox solution in the database, But it wont have access to the web.config of crm site as I need it because I am calling WCF service within the plugin(need service configuration in the web.config).
please help me!
Monday, June 6, 2011 9:00 AM
Answers
-
From the content of your post, it looks like you're using CRM 2011, contrary to the title of the thread. Is this correct ?
If you're running the plugin in the sandbox, then I believe that you need to create a Service Endpoint in CRM with the appropriate configuration, rather than reading this from config files
Microsoft CRM MVP - http://mscrmuk.blogspot.com http://www.excitation.co.uk- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, June 6, 2011 11:09 AM
- Marked as answer by Andrii ButenkoMVP, Moderator Saturday, June 11, 2011 1:07 PM
Monday, June 6, 2011 10:03 AMModerator -
You should read this article about why you should avoid register on GAC/Disk:
http://gonzaloruizcrm.blogspot.com/2011/06/6-great-reasons-to-register-your.html
Why do you need GAC registration? Your assembly would not be able to be transported in a solution.
To answer your question, depending on the .NET version with which you have compiled your assembly, you would need to place it in different folders (.NET4 GAC or the earlier GAC). In .net4 you must copy the assembly to C:\Windows\Microsoft.NET\assembly\GAC_MSIL. Make sure you compile it for MSIL (archetecture neutral).
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Monday, June 6, 2011 1:13 PM
- Marked as answer by Andrii ButenkoMVP, Moderator Saturday, June 11, 2011 1:07 PM
Monday, June 6, 2011 1:13 PMModerator
All replies
-
From the content of your post, it looks like you're using CRM 2011, contrary to the title of the thread. Is this correct ?
If you're running the plugin in the sandbox, then I believe that you need to create a Service Endpoint in CRM with the appropriate configuration, rather than reading this from config files
Microsoft CRM MVP - http://mscrmuk.blogspot.com http://www.excitation.co.uk- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, June 6, 2011 11:09 AM
- Marked as answer by Andrii ButenkoMVP, Moderator Saturday, June 11, 2011 1:07 PM
Monday, June 6, 2011 10:03 AMModerator -
I dont want to run it as sangbox solution. Can you guide me where I need to copy my dll before registering it as GAC. It wont allow me to drag and drop assembly in the windows\assembly folder. Also, I need webconfig access because I have a WCF service reference in the plugin which I used to perform business logic.Monday, June 6, 2011 11:00 AM
-
Hello,
For this case you should use gacutil - http://msdn.microsoft.com/en-us/library/ex0ss12c%28VS.80%29.aspx
But from my point of view it is better to use sandbox solution and store service configuration inside one of entities in CRM - you will be able to retrieve it from CRM using webservices.
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)Monday, June 6, 2011 11:08 AMModerator -
You should read this article about why you should avoid register on GAC/Disk:
http://gonzaloruizcrm.blogspot.com/2011/06/6-great-reasons-to-register-your.html
Why do you need GAC registration? Your assembly would not be able to be transported in a solution.
To answer your question, depending on the .NET version with which you have compiled your assembly, you would need to place it in different folders (.NET4 GAC or the earlier GAC). In .net4 you must copy the assembly to C:\Windows\Microsoft.NET\assembly\GAC_MSIL. Make sure you compile it for MSIL (archetecture neutral).
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Monday, June 6, 2011 1:13 PM
- Marked as answer by Andrii ButenkoMVP, Moderator Saturday, June 11, 2011 1:07 PM
Monday, June 6, 2011 1:13 PMModerator