Unplanned
Last Updated: 10 Jul 2023 14:45 by Steven
John
Created on: 13 Apr 2022 09:26
Type: Bug Report
5
CubeDataSource connection fails with AdomdClient version 13 or higher

If I use Microsoft.AnalysisServices.AdomdClient assembly with version 13 or higher, I receive the following exception:

An error has occurred while processing Report 'Report1':
Unable to establish a connection to the database. Please verify that your connection string is valid. In case you use a named connection string from the application configuration file, make sure the name is 
correct and the connection string settings are present in the configuration file of your application.
------------- InnerException -------------
Attempt by security transparent method 'Telerik.Reporting.Adomd.AdomdProviderFactory.CreateConnection()' to access security critical method 'Microsoft.AnalysisServices.AdomdClient.AdomdConnection..ctor()' 
failed.
 
Assembly 'Telerik.Reporting.Adomd, Version=16.0.22.119, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security 
transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception

With earlier versions, the data source works as expected.

1 comment
Steven
Posted on: 10 Jul 2023 14:45
This would be really nice to have.