因为我发现这里的任何论坛都是这个问题的解决方案,这适用于人们如何使用ADXSTUDIO,ADXSTUDIO有几个插件和工作流程,这些插件和工作流程被注册为作为呼叫用户运行,因此,我们有时需要更改此权限。
"访问被拒绝。管理员或支持的参考编号:#xxxxx"
Plugin Trace:
[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]
[CreateStep1: Create Record as Activity]
[Adxstudio.Xrm.Plugins.Productivity: Adxstudio.Xrm.Plugins.Productivity.Utilities.IdentifierRequestPlugin]
[e0ebe1fa-b46e-e111-a0dc-00155d03a708: Adxstudio.Xrm.Plugins.Productivity.Utilities.IdentifierRequestPlugin: Create of adx_identifierrequest]
Error Message:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Access Denied. Reference number for administrators or support: #536DBC1EDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147187707</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Access Denied. Reference number for administrators or support: #536DBC1E</Message>
<Timestamp>2014-05-01T14:35:38.9130605Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]
[CreateStep1: Create Record as Activity]
[Adxstudio.Xrm.Plugins.Productivity: Adxstudio.Xrm.Plugins.Productivity.Utilities.IdentifierRequestPlugin]
[e0ebe1fa-b46e-e111-a0dc-00155d03a708: Adxstudio.Xrm.Plugins.Productivity.Utilities.IdentifierRequestPlugin: Create of adx_identifierrequest]
</TraceText>
</OrganizationServiceFault>
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)
at Microsoft.Crm.Workflow.Services.CreateActivityService.<>c__DisplayClass1.<CreateInternal>b__0(IOrganizationService sdkService)
at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
at Microsoft.Crm.Workflow.Services.CreateActivityService.CreateInternal(Entity entity, String StepId)
at Microsoft.Crm.Workflow.Services.CreateActivityService.ExecuteInternal(ActivityContext executionContext, CreateEntity createEntity)
at Microsoft.Crm.Workflow.Services.CreateActivityService.Execute(ActivityContext executionContext, CreateEntity createEntity)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
答案 0 :(得分:0)
解决方案(适用于任何提供访问错误的插件或工作流程):