locked
Access is denied when accessing OrganisationServices on an MS Dynamics 2011 RRS feed

  • Question

  • Hi,

    I'm struggeling with an issue regaring SecurityAccessDeniedExceptionwhen implemeting a solution into an production enivronment.

    The application is accessing an MS CRM instance and trying to retrieve all active markering lists. This works well in our test environment, but in production the respons is "Access is denied". One thing that differs between production and test is that production uses SSL and the test don't. I don't know if that is contributing to the problem.

    This is the complete stack trace:

    System.ArgumentException: System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

    Server stack trace:
       at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
       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.RetrieveMultiple(QueryBase query)
       at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.RetrieveMultipleCore(QueryBase query)
       at Microsoft.Xrm.Client.Services.OrganizationService.InnerOrganizationService.UsingService[TResult](Func`2 action)
       at Bia.Centiro.MsCrmImporter.CRMImportHelper.GetImportSources()
       at Bia.Centiro.MsCrmImporter.CRMImportHelper.GetImportSources()
       at Bia.Centiro.MsCrmImporter.Program.Main(String[] args)

    Thanks

    /Bo

    Thursday, October 17, 2013 10:49 AM