Answered by:
Unhandled Exception: System.ServiceModel.FaultException

Question
-
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Principal user (Id=89c709f1-dc76-e011-989c-005056c00008, type=8) is missing prvCreatePluginAssembly privilege (Id=c81a03bb-4bfc-45a6-9184-e899ce26811a)
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>-2147220960</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Principal user (Id=89c709f1-dc76-e011-989c-005056c00008, type=8) is missing prvCreatePluginAssembly privilege (Id=c81a03bb-4bfc-45a6-9184-e899ce26811a)</Message>
<Timestamp>2011-06-21T10:32:25.3974374Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220960</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Principal user (Id=89c709f1-dc76-e011-989c-005056c00008, type=8) is missing prvCreatePluginAssembly privilege (Id=c81a03bb-4bfc-45a6-9184-e899ce26811a)</Message>
<Timestamp>2011-06-21T10:32:25.3974374Z</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 D:\sdk\tools\pluginregistration\RegistrationHelper.cs:line 227
at PluginRegistrationTool.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e) in D:\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 461
spkhTuesday, June 21, 2011 10:55 AM
Answers
-
Looks like you're trying to register a plugin for which you need to be a Deployment Administrator - it appears you are not.
--pogo (pat) @ pogo69.wordpress.com- Marked as answer by spkh Thursday, June 23, 2011 5:40 AM
Tuesday, June 21, 2011 12:16 PM -
As the error message indicates, you simply do not have the create privilege on Plugin Assembly. You don't necessarily need to be the deployment administrator (if you register in sandbox mode), but you certainly need to configure the privileges to give the user access to plugin assembly and plugin type.
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Tuesday, June 21, 2011 1:10 PM
- Marked as answer by spkh Thursday, June 23, 2011 5:41 AM
Tuesday, June 21, 2011 1:10 PMModerator
All replies
-
Looks like you're trying to register a plugin for which you need to be a Deployment Administrator - it appears you are not.
--pogo (pat) @ pogo69.wordpress.com- Marked as answer by spkh Thursday, June 23, 2011 5:40 AM
Tuesday, June 21, 2011 12:16 PM -
As the error message indicates, you simply do not have the create privilege on Plugin Assembly. You don't necessarily need to be the deployment administrator (if you register in sandbox mode), but you certainly need to configure the privileges to give the user access to plugin assembly and plugin type.
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Tuesday, June 21, 2011 1:10 PM
- Marked as answer by spkh Thursday, June 23, 2011 5:41 AM
Tuesday, June 21, 2011 1:10 PMModerator