dbTalk Databases Forums  

ADOMD.NET : connection string without xmla - No connection could be made because the target machine actively refused it

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss ADOMD.NET : connection string without xmla - No connection could be made because the target machine actively refused it in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Samir Bencoscos
 
Posts: n/a

Default ADOMD.NET : connection string without xmla - No connection could be made because the target machine actively refused it - 06-15-2004 , 05:13 AM






Hi guys,

I need to connect a web .NET application to an OLAP database.
I am using the latest ADOMD.NET build.

This connection string works well when the OLAP server is in the same
machine that the web server :

<add key="OLAPConnectionString"
value="Provider=MSOLAP.2;Password=xxx;Persist Security Info=True;User
ID=xxx;Data Source=serverolap1;Initial Catalog=olapbase1;Client Cache
Size=25;Auto Synch Period=10000;ConnectTo=8.0" />

But I am getting the error message when I try to use a remote OLAP server on
the same local network :

Exception Details: System.Net.Sockets.SocketException: No connection could
be made because the target machine actively refused it

Stack Trace:
[SocketException (0x274d): No connection could be made because the target
machine actively refused it]
System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) +580


Thanks,

Sam



Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: ADOMD.NET : connection string without xmla - No connection could b - 06-15-2004 , 07:20 AM






I see you are specifying user and password properties in your connection string.
Those properties are ignored by the provider and integrated security is always used, so the user running the process that opens the connection should have the appropiate permissions in the remote OLAP server.
HTH,
--
Brian
www.geocities.com/brianaltmann/olap.html


"Samir Bencoscos" wrote:

Quote:
Hi guys,

I need to connect a web .NET application to an OLAP database.
I am using the latest ADOMD.NET build.

This connection string works well when the OLAP server is in the same
machine that the web server :

add key="OLAPConnectionString"
value="Provider=MSOLAP.2;Password=xxx;Persist Security Info=True;User
ID=xxx;Data Source=serverolap1;Initial Catalog=olapbase1;Client Cache
Size=25;Auto Synch Period=10000;ConnectTo=8.0" /

But I am getting the error message when I try to use a remote OLAP server on
the same local network :

Exception Details: System.Net.Sockets.SocketException: No connection could
be made because the target machine actively refused it

Stack Trace:
[SocketException (0x274d): No connection could be made because the target
machine actively refused it]
System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) +580


Thanks,

Sam




Reply With Quote
  #3  
Old   
Samir Bencoscos
 
Posts: n/a

Default Re: ADOMD.NET : connection string without xmla - No connection could b - 06-15-2004 , 09:57 AM



Thank you Brian,

I updated the connection string : Provider=MSOLAP.2;Integrated
Security=SSPI;Persist Security Info=False;Data
Source=serverolap1;Mode=Read;Initial Catalog=olapbase1;Client Cache
Size=25;Auto Synch Period=10000;ConnectTo=8.0

Now I am getting this error :
Unhandled Execution Error
[AdomdErrorResponseException]

Microsoft.AnalysisServices.AdomdClient.XmlaClientP rovider.Microsoft.Analysis
Services.AdomdClient.AdomdConnection+IXmlaClientPr oviderEx.DiscoverWithCreat
eSession(String requestType, Boolean sendNamespaceCompatibility) +170

I have set the rights of IUSR_serverweb1 as a member of the OLAP
Administrators of serverolap1.

Anyone know what I am doing wrong?

Thanks,

Sam

"Brian Altmann" <findme@thesignaturewebsite> a écrit dans le message de
news:F0925D00-90A3-412B-8CD3-A0553E72D06B (AT) microsoft (DOT) com...
Quote:
I see you are specifying user and password properties in your connection
string.
Those properties are ignored by the provider and integrated security is
always used, so the user running the process that opens the connection
should have the appropiate permissions in the remote OLAP server.
Quote:
HTH,
--
Brian
www.geocities.com/brianaltmann/olap.html


"Samir Bencoscos" wrote:

Hi guys,

I need to connect a web .NET application to an OLAP database.
I am using the latest ADOMD.NET build.

This connection string works well when the OLAP server is in the same
machine that the web server :

add key="OLAPConnectionString"
value="Provider=MSOLAP.2;Password=xxx;Persist Security Info=True;User
ID=xxx;Data Source=serverolap1;Initial Catalog=olapbase1;Client Cache
Size=25;Auto Synch Period=10000;ConnectTo=8.0" /

But I am getting the error message when I try to use a remote OLAP
server on
the same local network :

Exception Details: System.Net.Sockets.SocketException: No connection
could
be made because the target machine actively refused it

Stack Trace:
[SocketException (0x274d): No connection could be made because the
target
machine actively refused it]
System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
+580


Thanks,

Sam






Reply With Quote
  #4  
Old   
Samir Bencoscos
 
Posts: n/a

Default Re: ADOMD.NET : connection string without xmla - No connection cou - 06-16-2004 , 03:36 AM




According to the figure 8 scenario of this document
http://msdn.microsoft.com/library/de...l_datapump.asp,
it tells me to run Analysis Services and
IIS 6 on the same computer. "...because of the one-hop restriction of NT
security tokens".

So, I can not have two separate computers running IIS and AS ?? I can not /
dont need to activate Kerberos because the users are not windows users, they
are just identified by a login/pwd. And also everyone is allowed to see any
data in my cubes.

What if I decide to use XMLA in my connection string (this one is working
fine), ie :

<add key="OLAPConnectionString" value="Provider=MSOLAP.2;Persist Security
Info=True;Data Source=http://serverolap1/xmla/msxisapi.dll;Initial
Catalog=olapbase1;Client Cache Size=25;Auto Synch Period=10000" />

Is there a big performance cost because the OLAP connections now are using
the HTTP protocol ?

Thanks all for your answers,
Sam

"Brian Altmann" <findme@thesignaturewebsite> a écrit dans le message de
news:4DE59FF5-CB3E-4F1B-82E2-2C084F5CB50B (AT) microsoft (DOT) com...
Quote:
I'm not clear whether you´re trying to connect via http (you mention the
iusr_serverweb1 user), or using ixmla (no http on the datasource).
In case you want to use http, this link might be useful:


http://msdn.microsoft.com/library/de...l_datapump.asp

HTH,
--
Brian
www.geocities.com/brianaltmann/olap.html


"Samir Bencoscos" wrote:

Thank you Brian,

I updated the connection string : Provider=MSOLAP.2;Integrated
Security=SSPI;Persist Security Info=False;Data
Source=serverolap1;Mode=Read;Initial Catalog=olapbase1;Client Cache
Size=25;Auto Synch Period=10000;ConnectTo=8.0

Now I am getting this error :
Unhandled Execution Error
[AdomdErrorResponseException]


Microsoft.AnalysisServices.AdomdClient.XmlaClientP rovider.Microsoft.Analysis

Services.AdomdClient.AdomdConnection+IXmlaClientPr oviderEx.DiscoverWithCreat
eSession(String requestType, Boolean sendNamespaceCompatibility) +170

I have set the rights of IUSR_serverweb1 as a member of the OLAP
Administrators of serverolap1.

Anyone know what I am doing wrong?

Thanks,

Sam

"Brian Altmann" <findme@thesignaturewebsite> a écrit dans le message de
news:F0925D00-90A3-412B-8CD3-A0553E72D06B (AT) microsoft (DOT) com...
I see you are specifying user and password properties in your
connection
string.
Those properties are ignored by the provider and integrated security
is
always used, so the user running the process that opens the connection
should have the appropiate permissions in the remote OLAP server.
HTH,
--
Brian
www.geocities.com/brianaltmann/olap.html


"Samir Bencoscos" wrote:

Hi guys,

I need to connect a web .NET application to an OLAP database.
I am using the latest ADOMD.NET build.

This connection string works well when the OLAP server is in the
same
machine that the web server :

add key="OLAPConnectionString"
value="Provider=MSOLAP.2;Password=xxx;Persist Security
Info=True;User
ID=xxx;Data Source=serverolap1;Initial Catalog=olapbase1;Client
Cache
Size=25;Auto Synch Period=10000;ConnectTo=8.0" /

But I am getting the error message when I try to use a remote OLAP
server on
the same local network :

Exception Details: System.Net.Sockets.SocketException: No connection
could
be made because the target machine actively refused it

Stack Trace:
[SocketException (0x274d): No connection could be made because the
target
machine actively refused it]
System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
+580


Thanks,

Sam










Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.