开发者

Microsoft CRM dynamics 2011: crmsvcutil Access is denied exception

开发者 https://www.devze.com 2023-03-12 12:22 出处:网络
I have been attempting to use the command line tool crmsvcutil (as Administrator) to generate a data context class and DTOs for our CRM Entities.

I have been attempting to use the command line tool crmsvcutil (as Administrator) to generate a data context class and DTOs for our CRM Entities.

I am getting the following exception: Exiting program with exception: Access is denied.

My command-line arguements are as follows:

crmsvcutil /url:"http://<ourdynamicscrm>/XRMServices/2011/Organization.svc" /u:"<user Name>" /p:"<password>" /d:"<domain>"  /namespace:OurNameSpace.Xrm /serviceContextName:OurServiceContextName.Crm /o:Crm.cs

The user is an Administrator on the CRM box.

Has anyone had this problem and know what I a开发者_开发知识库m missing?


I found what I was doing wrong and it was quite simple. I had left out the Organization Name section in the URL.

The code below generated the desired entities.

crmsvcutil /url:"http://<ourdynamicscrm>/<organization name>/XRMServices/2011/Organization.svc" /u:"<user Name>" /p:"<password>" /d:"<domain>"  /namespace:OurNameSpace.Xrm /serviceContextName:OurServiceContextName.Crm /o:Crm.cs


Are you using claims based authentication with IFD? If so we ran into the same problem im our environment. There is a bug in the crmsvcutil.

Here is some information on the work around I used that worked.

Claims-based Authentication Workaround for SDK Version 5.0.3

0

精彩评论

暂无评论...
验证码 换一张
取 消