Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Can't connect to Olap cube with basic authentication
posted

Hi,

I am trying to connect to an olap cube where the IIS olap website is setup with basic authentication.

The xaml is as follows:

-------------------------------------------------------------------

<navigation:Page x:Class="CFSapp.Views.PivotGrid"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

mc:Ignorable="d"

xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"

d:DesignWidth="640" d:DesignHeight="480"

Title="PivotGrid Page" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"

xmlns:ig="http://schemas.infragistics.com/xaml">

<Grid x:Name="LayoutRoot">

<ig:XamPivotDataSelector HorizontalAlignment="Right" Margin="0,25,0,0" Name="dataSelector" VerticalAlignment="Top" />

</Grid>

</navigation:Page>

-----------------------------------------------------------------------------

and the code behind is as follows:

-----------------------------------------------------------------------------

XmlaDataSource xmlaDataSource1 = new XmlaDataSource();

xmlaDataSource1.ServerUri = new Uri(https://remotewebsite/olap/msmdpump.dll);

xmlaDataSource1.Credentials = new XmlaNetworkCredential("username", "password","domain");

this.dataSelector.DataSource = xmlaDataSource1;

________________________________________

When i open the page I get a login box to connect to the "remotewebsite", so I enter the credentials again, but the data selector does not get connected.

Using the same address and credentials, I can connect to "remotewebsite" with Excel pivot. I can also connect to infragistic sampledata by changing the URI and removing the
xmlaDataSource1.Credentials = new XmlaNetworkCredential("username", "password","domain");
line from the code behind.

Any clue how to connect to my olap database which is setup with basic authentication?

PS: I am using the assemblies from InfragisticsSL4.v10.3

Cheers,

Oyvind

Parents Reply Children
No Data