web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :

CRM 2011 + IFD + CRM 4 Outlook Client = Crash!

MagnetismXRM Profile Picture MagnetismXRM 6,230
We are in the process of doing another major upgrade and we’ve come across an interesting bug. The client has over 250 users and some are still on the CRM 4 Outlook Client. We implemented IFD, tested through IE , all works perfectly until a user who has CRM 4 Outlook Client opens a form through the Outlook Client.

After endless hours of investigating we found that the CRM 4 Outlook Client doesn’t pass authentication tokens through, so when your shiny new upgraded javascript code tries to call organization.svc it fails with an access denied error.

<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-NZ/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>/LM/W3SVC/1/ROOT-1-129942876745737924</AppDomain><Exception><ExceptionType>System.ServiceModel.FaultException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Access is denied.</Message><StackTrace>   at System.ServiceModel.Dispatcher.AuthorizationBehavior.Authorize(MessageRpc&amp;amp; rpc)

 >   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&amp;amp; rpc)
>   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
 >   at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
 >   at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
 >   at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
 >   at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
 >   at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
 >   at System.Runtime.InputQueue`1.AsyncQueueReader.Set(Item item)
 >   at System.Runtime.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)
 >   at System.Runtime.InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
 >   at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
 >   at System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, Action callback)
 >   at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
 >   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
 >   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
 >   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)
 >   at System.ServiceModel.AspNetPartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state)
 >   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequestWithFlow(Object state)
 >   at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
 >   at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
 >   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
 ></StackTrace><ExceptionString>System.ServiceModel.FaultException: Access is denied.</ExceptionString></Exception></TraceRecord>

If you experience a similar issue check the trace logs and see if you can see an error similar to the one below:

Microsoft has confirmed this as a bug; Rollup 12 will hopefully have a fix for this.

* http://www.conniemah.com/wp-content/uploads/2012/02/frustrated-face.gif

Comments

*This post is locked for comments