Question Status

Verified
Vamshee Pasham asked a question on 6 Feb 2015 10:41 AM

Hi 

if someone can shed some light on this error

Unexpected exception from plug-in (Execute): CreateAppointment.CreateAppointment: System.Security.SecurityException: That assembly does not allow partially trusted callers.

I am trying to write a plugin which is using another dll 

Please let me know if this information is not sufficient 

Reply
Vamshee Pasham responded on 6 Feb 2015 10:42 AM

I did mention

[assembly: AllowPartiallyTrustedCallers]

in code still no luck :(

Reply
Mathieu LEPOUTRE responded on 6 Feb 2015 10:49 AM

Hi,

I do not think that we can use a dll in a plugin.

you should merge your two dll with ilmerge and redeploy

Reply
Suggested Answer
Guido Preite responded on 6 Feb 2015 1:19 PM

try to register your plugin outside the sandbox (option "None" inside the plugin registration tool window)

Reply
Suggested Answer
Surmeet Singh responded on 7 Feb 2015 1:57 AM

Hi Vamshee,

You need to do 2 things:

1. Register the another dll in GAC of the CRM server

2. Register the plugin in "None" mode rathers than Sandbox.

Please mark my answer as correct if you find so.

Regards,

Surmeet Singh

Reply
Vamshee Pasham responded on 9 Feb 2015 3:37 AM

I tried to register plugin as none Isolation mode and i got the below error

<Message>Action failed for assembly 'CreateAppointment, Version=1.0.0.1, Culture=neutral, PublicKeyToken=4ea5f5b22d5e7971': Assembly must be registered in isolation.</Message>

Reply
Vamshee Pasham responded on 9 Feb 2015 3:38 AM

Hi Surmeet

1.I registered the dll in Gac bot not using GACUTIL but using Powershell

2. When i tried to register the plugin in None Mode i got below error

<Message>Action failed for assembly 'CreateAppointment, Version=1.0.0.1, Culture=neutral, PublicKeyToken=4ea5f5b22d5e7971': Assembly must be registered in isolation.</Message>

Reply
Suggested Answer
Mahadeo Matre responded on 9 Feb 2015 10:45 AM

Hi..

Are you in Deployment Administrators group of Deployment Manager?

If you are not deployment administrator, then also you will get this error.

please Check for more details

blogs.msdn.com/.../error-message-assembly-must-be-registered-in-isolation-when-registering-plugins-in-microsoft-dynamics-crm-2011.aspx

if you are deployment admin, and still getting error, then please check

mahenderpal.wordpress.com/.../assembly-must-be-registered-in-isolation-error-ms-crm-2011

Hope this will help..

Reply
Suggested Answer
Vamshee Pasham responded on 9 Feb 2015 11:08 AM

Amazing that worked!!!!

i added myself as deployment administrator, registered my plugin as None in isolation mode and that made the trick

Thanks a lot Mahadeo :)

Reply
Mahadeo Matre responded on 9 Feb 2015 11:11 AM

Vamashee..

you are welcome..

Can you please mark answers as Verified.. which ever answers are helped..

So that it will helpful for other community users to resolve their similar issues.

Reply
Vamshee Pasham responded on 9 Feb 2015 11:14 AM

Sorry I am new to community how would i mark answer as verified?

Reply
Suggested Answer
Vamshee Pasham responded on 9 Feb 2015 11:17 AM

.

Reply
Vamshee Pasham responded on 9 Feb 2015 11:29 AM

Access Denied

You do not have permissions to perform the requested action. :(

Reply
Guido Preite responded on 9 Feb 2015 11:32 AM

Only the user that started the thread and the moderators can mark an answer as verified.

Vamshee, probably you have two accounts, the first with your picture that asked the question (Vamshee Pasham) and the last one without picture (Vamshee), so please login with the first account in order to mark the answer.

Reply
Suggested Answer
Guido Preite responded on 6 Feb 2015 1:19 PM

try to register your plugin outside the sandbox (option "None" inside the plugin registration tool window)

Reply
Suggested Answer
Surmeet Singh responded on 7 Feb 2015 1:57 AM

Hi Vamshee,

You need to do 2 things:

1. Register the another dll in GAC of the CRM server

2. Register the plugin in "None" mode rathers than Sandbox.

Please mark my answer as correct if you find so.

Regards,

Surmeet Singh

Reply
Suggested Answer
Mahadeo Matre responded on 9 Feb 2015 10:45 AM

Hi..

Are you in Deployment Administrators group of Deployment Manager?

If you are not deployment administrator, then also you will get this error.

please Check for more details

blogs.msdn.com/.../error-message-assembly-must-be-registered-in-isolation-when-registering-plugins-in-microsoft-dynamics-crm-2011.aspx

if you are deployment admin, and still getting error, then please check

mahenderpal.wordpress.com/.../assembly-must-be-registered-in-isolation-error-ms-crm-2011

Hope this will help..

Reply
Suggested Answer
Vamshee Pasham responded on 9 Feb 2015 11:08 AM

Amazing that worked!!!!

i added myself as deployment administrator, registered my plugin as None in isolation mode and that made the trick

Thanks a lot Mahadeo :)

Reply
Suggested Answer
Vamshee Pasham responded on 9 Feb 2015 11:17 AM

.

Reply