Plugin with references not working on CRM 2011

家住魔仙堡 提交于 2019-11-30 09:24:24
ccellar

You have to deploy the referenced assembly either to the GAC or merge it with your one (with ILMerge)

See also http://msdn.microsoft.com/en-us/library/gg309620.aspx and Creating a single CRM plugin DLL to store in the CRM database

ryanjones

I have a blog post here on how you can put it all in 1 DLL without ILMerge: All References within CRM2011 plugin. We've yet to have a dll issue since we started doing this.

NB this approach rules out the use of Sandboxed mode (i.e., you will not be able to use this approach should you require your plugin to work in Dynamics CRM Online).

We have had this error several times over the last 6 months and each time, despite me or the other developers swearing blind it would not be the case, it has turned out to be a DLL version problem.

Are you installing the plugin to disk, DB or GAC?

If installing to the GAC, I believe external DLLs go in the GAC as well. If installing to the DB or to disk, I believe DLLs go in the \assembly\bin folder.

Sometimes the Anti-Virus will prevent ASP.NET from accessing file or assembly, I suggest you try to sign the assembly with strong name and add it to GAC: Here you can find more information http://support.microsoft.com/kb/815808

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!