• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
MSCRM janmson
MS CRM顾问及二次开发
博客园    首页    新随笔    联系   管理    订阅  订阅

轉 Not have enough privilege to complete Create operation for an Sdk entity" exception when you register a CRM 4.0 plug-i

CRM 4.0 introduces the concept of plug-ins that will replace the callouts. CRM 4.0 Plug-in is custom business logic that can be integrated into CRM 4.0's platform. Plug-ins are much more powerful than callouts, but require more work to be deployed successfully. It's sometimes not easy to be successful with plug-in registration if you forget about a specific step.

Today we were trying to deploy new plug-in assembly into CRM 4.0 database. First we used Plug-in Registration Tool for CRM 4.0 delivered with CRM 4.0 SDK. After that we were trying to register plug-in assembly with our custom application.

Unfortunately in both cases the operation was unsuccessful and we were getting the strange looking Soap Exception "Not have enough privilege to complete Create operation for an Sdk entity". At the same time we were able to create any other business entities like contacts, accounts...

Unhandled Exception: System.Web.Services.Protocols.SoapException: Server was unable to process request.

Detail:

<detail>

<error>

                       <code>0x80040256</code>

                       <description>Not have enough privilege to complete Create operation for an Sdk entity.</description>

                       <type>Platform</type>

</error>

</detail>  

 

It looked pretty strange because our user had System Administrator role and in CRM it had all the rights. After few attempts we realized that Active Directory account used to deploy and register new assembly into CRM 4.0 database has to be added into Deployment Administrators group in CRM Deployment Manager. 

Here are the steps to accomplish this: 

1.       Open CRM 4.0 Deployment Manager Console (Start -> All Programs -> Microsoft Dynamics CRM -> Deployment Manager).

 

2.       Go to “Deployment Administrators” node and choose “New Deployment Administrator…” option.

3.       Insert appropriate user and confirm selection by clicking “OK” button.

 

After completing this step, both users were able to register and deploy the assembly successfully. So, remember about this when you try to play with plug-ins with user that you added to CRM :)

posted @ 2009-04-17 11:28  韩建兴  阅读(312)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3