Answered by:
custom workflow activity registration error

Question
-
hi , i have modified the sdk custom workflow acitvity and built it successfully and got error while trying to register it. the error is like this (i using non-sandbox and database in the sdk plug-in registration tool). the error is pasted below. does anyone know how to fix this issue?
thanks
--------------
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Action failed for assembly 'cwa1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0e5d790cad020f27': Assembly must be registered in isolation.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>-2147220906</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Action failed for assembly 'cwa1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0e5d790cad020f27': Assembly must be registered in isolation.</Message>
<Timestamp>2011-06-08T03:36:43.6261908Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220906</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Action failed for assembly 'cwa1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0e5d790cad020f27': Assembly must be registered in isolation.</Message>
<Timestamp>2011-06-08T03:36:43.6261908Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Create(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Create(Entity entity)
at PluginRegistrationTool.RegistrationHelper.RegisterAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly) in C:\Users\sammak\Documents\CRM\stupidNOIT stupid\sdk2011 update\sdk\tools\pluginregistration\RegistrationHelper.cs:line 227
at PluginRegistrationTool.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e) in C:\Users\sammak\Documents\CRM\stupidNOIT stupid\sdk2011 update\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 461Wednesday, June 8, 2011 3:38 AM
Answers
-
This is a duplicate post as http://social.microsoft.com/Forums/en-US/crm/thread/61686ab1-4939-46ee-a8da-bf4b5626427f.
Please try to avoid duplicating psots in different forums (if you do it by mistake you can just mark one of them as answered to avoid confusion).
Gonzalo | gonzaloruizcrm.blogspot.com
- Marked as answer by verystupidguy Monday, June 20, 2011 2:43 AM
Wednesday, June 8, 2011 12:10 PMModerator
All replies
-
Hi,
As per the error, you need to register the workflow cusotm activity in SandBox mode. As shown in the following screen shot: http://i.msdn.microsoft.com/dynimg/IC443909.png
Microsoft Dynamics CRM workflows are not supported to run in sandbox mode. To prevent execution of any arbitrary or malicious code in custom workflow activities and custom XAML workflows that could compromise data security, custom workflow activities and custom XAML workflows are not supported for Microsoft Dynamics CRM Online. If it is a plugin then it will be installed.
Thank You,
Jehanzeb Javeed,
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
- Edited by Jehanzeb.Javeed Wednesday, June 8, 2011 8:03 AM
Wednesday, June 8, 2011 7:04 AM -
check for the CRM version here, if it is CRM online it has to be in the Sandbox and database, or there are combinations in terms of assebly registration. see below.
http://msdn.microsoft.com/en-us/library/gg309620.aspx
Plug-in Storage
Plug-ins not-registered in the sandbox can be stored in the Microsoft Dynamics CRM server's database or the on-disk file system. We strongly recommend that you store your production-ready plug-ins in the Microsoft Dynamics CRM database, instead of on-disk. Plug-ins stored in the database are automatically distributed across multiple Microsoft Dynamics CRM servers in a data center cluster. On-disk storage of plug-ins is useful for debugging plug-ins using Microsoft Visual Studio.
Plug-ins registered in the sandbox must be stored in the database.
i hope this will help.
BharatKumar Bambhaniya Software Developer.- Proposed as answer by Bharat BambhaniyaMicrosoft employee Wednesday, June 8, 2011 7:17 AM
Wednesday, June 8, 2011 7:16 AM -
Hi,
Make sure that you are registering with user that has administrator securiety privillages of CRM System and CRM Deployment Manager. You can add user to Deployment Manager adminsitraor groups from CRM Deployment Manager Tool (Start Menu -> All Programs -> Microsoft Dynamics CRM 2011 -> Deployment Manager )
I hope this answers your question.
Thank You,
Jehanzeb Javeed,
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".- Proposed as answer by Jehanzeb.Javeed Wednesday, June 8, 2011 8:08 AM
Wednesday, June 8, 2011 8:08 AM -
This is a duplicate post as http://social.microsoft.com/Forums/en-US/crm/thread/61686ab1-4939-46ee-a8da-bf4b5626427f.
Please try to avoid duplicating psots in different forums (if you do it by mistake you can just mark one of them as answered to avoid confusion).
Gonzalo | gonzaloruizcrm.blogspot.com
- Marked as answer by verystupidguy Monday, June 20, 2011 2:43 AM
Wednesday, June 8, 2011 12:10 PMModerator