Applies ToMicrosoft Dynamics CRM 2011 SharePoint Server 2010 SharePoint Server 2013

Introduction

On a Microsoft Dynamics CRM 2011 deployment integrated with Office SharePoint 2010 or Office SharePoint 2013, a user could get a JavaScript error the second time the user wants to open an Office document file from the same CRM grid.While the first time the file opens as expected, the second time, the user needs to go back to the CRM web page. The CRM grid will start to refresh, raising the following JavaScript Exception: "Sys.InvalidOperationException: A control is already associated with the element”.

This behavior occurs if SharePoint has debug mode enabled.To avoid this issue, SharePoint needs debug mode disabled.

Resolution

As a resolution, SharePoint debug mode need to be disabled:1. Login to SharePoint server with administrative Privileges2. Search for the file web.config under the application folder (e.g. "C:\inetpub\wwwroot\wss\VirtualDirectories\80")3. Make a copy of the file4. Open it with notepad5. Search for: debug="true"6. Update the debug value to be false: debug="false"7. Save the fileNote that as soon as you make the change, it will then be automatically loaded by the IIS Server hosting the SharePoint application.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.