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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Can't connect to Report Service URL after CRM version 9 upgrade

(0) ShareShare
ReportReport
Posted on by 190

Hi,

We are had custom SSRS reports with our premise CRM instance that are quite complex and when we moved to CRM online we kept the SQL based reports and rather than change toFetchXml, we moved them to an Azure SQL server and we use the Data Export Service to run the reports off. We have a custom workflow activity that creates a PDF version of the reports and sends them to a file location on another Azure VM. This all works fine for out current UAT and Production CRM organisations but we have just had to upgrade our DEV organisation to Version 9 and now we are getting a security permissions error when trying to create the PDF report. We can preview the reports fine in Version 9 but get the following error from the custom workflow activity:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.ComponentModel.Win32Exception.GetObjectData(SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectCloneHelper.GetObjectData(Object serObj, String& typeName, String& assemName, String[]& fieldNames, Object[]& fieldValues)

This error is occuring at the following line of code:

rs.Url = reportServiceUrl;

where rs is the ReportExecutionService instance

and reportServiceUrl is http://*************.northeurope.cloudapp.azure.com//ReportServer_*************/reportexecution2005.asmx?wsdl

Any one faced the same or similar issue?

Thanks

Phil

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    I expect you're trying to make an authenticated connection to the reporting services web service. This is not supported for code running in the sandbox (which is your only option in CRM Online). To make this work, you'll need to make your custom workflow activity azure-aware, and deploy the code onto an Azure server. See https://msdn.microsoft.com/en-us/library/gg327854.aspx   for an example

  • fillcrocker Profile Picture
    190 on at

    Hi David,

    Thanks for your reply. We moved to CRM online (Version 8.2) about 8 months ago and the workflow activity has been working fine running in the sandbox but the issue has just started with Version 9. Is this something to do with TSL1.2 ?

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    You may try this

    mscrm365.blogspot.sg/.../dynamics-crm-v9-connection-error-in.html

  • fillcrocker Profile Picture
    190 on at

    Hi Sandeep,

    Thanks for you reply also. I have seen that post before and used it to update my version of the Registration tool but the section on reports seems to apply to report using FetchXml. We are using SQL and the data export service for our reports. The issue seems to be connecting to the reporting service. Reporting services is installed on an azure VM. Nothing has changed on that server and we also have UAT and Production reports hosted on the same server which are working fine using the same svc accounts.

    Any other advice appreciated.

    Thanks

    Phil

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans