Answered by:
Plugins reference dlls in online ms crm 2011

Question
-
HiWhile creating plugin i am using my own dlls in plugin class library.Where we have to copy these reference assemblies in cloud(online) MS CRM 2011 trial version.Generally we will copy reference assemblies in GAC.But in online MS CRM 2011 where we have to copy?I am getting given below error.Unexpected exception from plug-in (Execute): SMSCRM.SMSconfig: System.IO.FileNotFoundException: Could not load file or assembly 'SMSUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f15c7ce1ebad44c' or one of its dependencies. The system cannot find the file specified.Note: Ilmerge is not useful for me.Please help me.Thanks& Regards,Ramakrishna MunigantiFriday, July 1, 2011 5:31 AM
Answers
-
Hi Ramakrishna,
As mentioned multiple times in this thread you CANNOT copy anything to CRM Online in terms of plugins/symbols, you cannot store assemblies in GAC/Disk for CRM Online. Please read the following suggestion:
Why don't you compile the entire code into one assembly? Otherwise your only option would be to use ILMerge and merge all the assemblies into one, unfortunatelly, there is no other workaround for CRM Online:
http://blogs.msdn.com/b/crm/archive/2010/11/09/how-to-reference-assemblies-from-plug-ins.aspx
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Monday, July 4, 2011 1:08 PM
- Marked as answer by DavidJennawayMVP, Moderator Wednesday, July 20, 2011 9:22 AM
Monday, July 4, 2011 1:08 PMModerator
All replies
-
Hi, I have used the plugin registration tool from the SDK and load in into the database.(Just copy you CRM Online into the server text field and you are able to connect) For me this works fine!
Perhaps this helps!
Regards,
Rene
Friday, July 1, 2011 5:43 AM -
Hi Rene,
Thanks for your reply .
iam unable to add my own referece dlls through Pllugin registraion tool.
I am getting below error.
"No plugins have been selected".
Please help me.
Iam using online ms crm 2011 trial version.
Friday, July 1, 2011 7:11 AM -
Please tell me the steps to copy dll into online serverFriday, July 1, 2011 7:11 AM
-
Microsoft will not allow you to copy any dlls the CRM Online server. In this scenario, your only option is have all your code in one assembly dll. Why can't you use ILMerge ?
Microsoft CRM MVP - http://mscrmuk.blogspot.com http://www.excitation.co.uk
Friday, July 1, 2011 7:52 AMModerator -
Hi Rene,
how to copy dlls CRM Online into the server text field
Friday, July 1, 2011 9:40 AM -
Hm well I am "only"
- started the registration tool -
- Setup the URL to CRM online
- connect to the origanization
- Click Register
- Select the .dll
- activate "Database"
- Confirm it
- Done
I have done it again few minutes ago - perhaps it is a restriction because of the trial version? But the error message sounds like you have not select the dll?
If you like you an send me an screenshot of you error. I am not sure I can help, but if it is useful just do it :) r.gayer@mbs-training.com
Friday, July 1, 2011 10:31 AM -
I have read it again, I think David is 100% right (and I dont now!)! I havent seen that you wrote - "you are using another dll" in your plugin. I have no other dll in my plugin. Perhaps this is the reason why it is not working and this is what David means. :) Thats the reason why he is MVP for CRM and I am for NAV :D:D:D
Sorry for the missunderstanding.!!
Regards Rene
Friday, July 1, 2011 10:38 AM -
Reference dlls are not supported in CRM (at least officially). And of course, in CRM Online it is not possible to have reference assemblies. Why don't you compile the entire code into one assembly? Otherwise your only option would be to use ILMerge and merge all the assemblies into one, unfortunatelly, there is no other workaround for CRM Online:
http://blogs.msdn.com/b/crm/archive/2010/11/09/how-to-reference-assemblies-from-plug-ins.aspx
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Friday, July 1, 2011 10:49 PM
Friday, July 1, 2011 10:49 PMModerator -
Hi Gonzalo,
May i get the online crm 2011 server map path for bin folder?
Thanks & Regards,
Ramakrishna Muniganti
Monday, July 4, 2011 4:50 AM -
Hi David,
May i get the online crm 2011 server map path for bin folder?
Thanks & Regards,
Ramakrishna Muniganti
Monday, July 4, 2011 4:50 AM -
May i get the online crm 2011 server map path for bin folder?
Thanks & Regards,
Ramakrishna Muniganti
Monday, July 4, 2011 4:50 AM -
Hi Ramakrishna,
As mentioned multiple times in this thread you CANNOT copy anything to CRM Online in terms of plugins/symbols, you cannot store assemblies in GAC/Disk for CRM Online. Please read the following suggestion:
Why don't you compile the entire code into one assembly? Otherwise your only option would be to use ILMerge and merge all the assemblies into one, unfortunatelly, there is no other workaround for CRM Online:
http://blogs.msdn.com/b/crm/archive/2010/11/09/how-to-reference-assemblies-from-plug-ins.aspx
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Monday, July 4, 2011 1:08 PM
- Marked as answer by DavidJennawayMVP, Moderator Wednesday, July 20, 2011 9:22 AM
Monday, July 4, 2011 1:08 PMModerator -
Hi David,
How to rename Mark Complete activity buttion to "Send SMS" in mscrm 2011 for custom activity.
Ramakrishna MunigantiWednesday, July 20, 2011 5:39 AM -
HI Rene,
How r u?
How to rename Mark Complete activity buttion to "Send SMS" in mscrm 2011 for custom activity
Ramakrishna MunigantiWednesday, July 20, 2011 5:40 AM -
even i faced the same problem.why i got this problem i forgot to mention IPLUGIN CLASS besides actual class.for more clarification see below line
public class autonumber:iplugin then my problem is solved
Wednesday, March 21, 2012 8:47 AM -
Hi Ramakrishna,
Have you developed Iplugin Interface in your class and scope of class should be public.
public class MyPlugin : Iplugin
Thanks,
---vaib
Monday, July 15, 2013 4:27 AM