IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

VB.NET Discussion :

connexion analysis services


Sujet :

VB.NET

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Janvier 2005
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 145
    Points : 102
    Points
    102
    Par défaut connexion analysis services
    Bonjour à tous! J'aimerai me connecter à un serveur analysis services autre que "localhost".
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    Dim rs As New Microsoft.AnalysisServices.Server
     rs.Connect("localhost")
    Comment faire? Le nom du serveur est sql_server.
    J'ai essayé rs.Connect("http://sql_server"), rs.Connect("sql_server") sans succès...
    Merci à tous!

  2. #2
    Membre averti
    Inscrit en
    Novembre 2006
    Messages
    337
    Détails du profil
    Informations forums :
    Inscription : Novembre 2006
    Messages : 337
    Points : 319
    Points
    319
    Par défaut
    essaye avec l'adresse IP, Je ne sait pas ce que ca peut donner c'est juste une idée..

  3. #3
    Membre averti Avatar de bouvda
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    252
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Octobre 2005
    Messages : 252
    Points : 318
    Points
    318
    Par défaut
    Bonjour,

    essaie avec cette chaîne de connexion :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    Dim rs As New Microsoft.AnalysisServices.Server
     rs.Connect("Provider=MSOLAP.3;Password=MOT_DE_PASSE;Persist Security Info=True;User ID=UTILISATEUR;Data Source=SERVEUR")

  4. #4
    Membre régulier
    Profil pro
    Inscrit en
    Janvier 2005
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 145
    Points : 102
    Points
    102
    Par défaut
    Avec l'adresse IP ça ne marche pas:
    An existing connection was forcibly closed by the remote host
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

    Source Error:


    Line 12: If Not Page.IsPostBack Then
    Line 13:
    Line 14: rs.connect("192.168.0.104")
    Line 15: Try
    Line 16: For Each item3 In rs.Databases


    Source File: C:\Inetpub\wwwroot\a\Administration\Autorisation\Page5.aspx.vb Line: 14

    Stack Trace:


    [SocketException (0x2746): An existing connection was forcibly closed by the remote host]
    System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +1018171
    System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +119

    [IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
    System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +267
    System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count) +194
    Microsoft.AnalysisServices.DimeRecord.ForceRead(Stream stream, Byte[] buffer, Int32 length) +35
    Microsoft.AnalysisServices.DimeRecord.ReadHeader() +37
    Microsoft.AnalysisServices.DimeRecord..ctor(Stream stream) +100
    Microsoft.AnalysisServices.DimeReader.ReadRecord() +74
    Microsoft.AnalysisServices.TcpStream.GetResponseDataType() +74

    [ConnectionException: A connection cannot be made. Ensure that the server is running.]
    Microsoft.AnalysisServices.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession) +442
    Microsoft.AnalysisServices.Server.Connect(String connectionString, String sessionId) +192
    Microsoft.AnalysisServices.Server.Connect(String connectionString) +6
    Autorisation5.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\a\Administration\Autorisation\Page5.aspx.vb:14
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +47
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
    Avec "Provider=MSOLAP.3;Password=MOT_DE_PASSE;Persist Security Info=True;User ID=UTILISATEUR;Data Source=SERVEUR" ca ne marche pas non plus:
    The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ComponentModel.Win32Exception: The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you

    Source Error:


    Line 11:
    Line 12: If Not Page.IsPostBack Then
    Line 13: rs.Connect("Provider=MSOLAP.3;Password=Pass123;Persist Security Info=True;User ID=Administrator;Data Source=sql_server")
    Line 14: Try
    Line 15: For Each item3 In rs.Databases


    Source File: C:\Inetpub\wwwroot\a\Administration\Autorisation\Page5.aspx.vb Line: 13

    Stack Trace:


    [Win32Exception (0x80004005): The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you]
    Microsoft.AnalysisServices.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean& handshakeComplete) +297
    Microsoft.AnalysisServices.XmlaClient.Authenticate(ConnectionInfo connectionInfo, DateTime startTime) +244

    [ConnectionException: Authentication failed.]
    Microsoft.AnalysisServices.XmlaClient.Authenticate(ConnectionInfo connectionInfo, DateTime startTime) +1096
    Microsoft.AnalysisServices.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo) +383
    Microsoft.AnalysisServices.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession) +447
    Microsoft.AnalysisServices.Server.Connect(String connectionString, String sessionId) +192
    Microsoft.AnalysisServices.Server.Connect(String connectionString) +6
    Autorisation5.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\a\Administration\Autorisation\Page5.aspx.vb:13
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +47
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
    Je suis assez bloqué quand même...

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Janvier 2005
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 145
    Points : 102
    Points
    102
    Par défaut
    bouvda, j'ai essayé rs.Connect("Provider=MSOLAP.3;Password=Pass123;Persist Security Info=True;User ID=sql_server\\Administrator;Data Source=sql_server") mais toujours la même erreur:
    The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ComponentModel.Win32Exception: The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you

  6. #6
    Membre averti
    Inscrit en
    Novembre 2006
    Messages
    337
    Détails du profil
    Informations forums :
    Inscription : Novembre 2006
    Messages : 337
    Points : 319
    Points
    319
    Par défaut
    Juste une idée, tu as vérifié les firewall ??? ils sont bien désactivés ??

  7. #7
    Membre régulier
    Profil pro
    Inscrit en
    Janvier 2005
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 145
    Points : 102
    Points
    102
    Par défaut
    Oui oui l'ICS service est désactivé, donc pas de firewall...
    Ce problème me

  8. #8
    Membre régulier
    Profil pro
    Inscrit en
    Janvier 2005
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 145
    Points : 102
    Points
    102
    Par défaut
    j'ai tout reinstallé. Donc les deux machines sont bien dans le meme domaine, et quand j'utilise le logiciel Pivotview j'arrive a me connecter de la ws03 vers la machine srvsql2 (a distance donc)
    J'utilise la meme chaine de connexion que celle utilisé dans PivotView qui est
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Provider=MSOLAP.3;Cache Authentication=False;Password=pass;User ID=administrator;Initial Catalog=piou;Data Source=srvsql2;Impersonation Level=Impersonate;Location=srvsql2;Mode=ReadWrite;Protection Level=Pkt Privacy;Auto Synch Period=20000;Default Isolation Mode=0;Default MDX Visual Mode=0;MDX Compatibility=0;MDX Unique Name Style=0;Non Empty Threshold=0;SQLQueryMode=Calculated;Safety Options=1;Secured Cell Value=0;SQL Compatibility=0;Compression Level=0;Real Time Olap=False;Packet Size=4096
    pourtant quand je fais :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    Dim rs As New Microsoft.AnalysisServices.Server
    rs.connect("Provider=MSOLAP.3;Cache Authentication=False;Password=pass;User ID=administrator;Initial Catalog=piou;Data Source=srvsql2;Impersonation Level=Impersonate;Location=srvsql2;Mode=ReadWrite;Protection Level=Pkt Privacy;Auto Synch Period=20000;Default Isolation Mode=0;Default MDX Visual Mode=0;MDX Compatibility=0;MDX Unique Name Style=0;Non Empty Threshold=0;SQLQueryMode=Calculated;Safety Options=1;Secured Cell Value=0;SQL Compatibility=0;Compression Level=0;Real Time Olap=False;Packet Size=4096")
    cette erreur est renvoyée:
    An existing connection was forcibly closed by the remote host
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    Stack Trace:


    [SocketException (0x2746): An existing connection was forcibly closed by the remote host]
    System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +1018171
    System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +119

    [IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
    System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +267
    System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count) +194
    Microsoft.AnalysisServices.DimeRecord.ForceRead(Stream stream, Byte[] buffer, Int32 length) +35
    Microsoft.AnalysisServices.DimeRecord.ReadHeader() +37
    Microsoft.AnalysisServices.DimeRecord..ctor(Stream stream) +100
    Microsoft.AnalysisServices.DimeReader.ReadRecord() +74
    Microsoft.AnalysisServices.TcpStream.GetResponseDataType() +74

    [ConnectionException: A connection cannot be made. Ensure that the server is running.]
    Microsoft.AnalysisServices.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession) +442
    Microsoft.AnalysisServices.Server.Connect(String connectionString, String sessionId) +192
    Microsoft.AnalysisServices.Server.Connect(String connectionString) +6
    Autorisation5.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\a\Administration\Autorisation\Page5.aspx.vb:22
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +47
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

Discussions similaires

  1. [2005] SQL Server Agent et connexion à Analysis Services
    Par guilld dans le forum SSAS
    Réponses: 12
    Dernier message: 22/08/2012, 10h49
  2. Réponses: 9
    Dernier message: 02/11/2009, 14h46
  3. Connexion avec Microsoft Analysis Services
    Par ravat dans le forum Cognos
    Réponses: 5
    Dernier message: 30/08/2007, 10h15
  4. Connexion á Analysis services
    Par Pedro Varela dans le forum MS SQL Server
    Réponses: 4
    Dernier message: 26/06/2007, 22h47
  5. Problème connexion Server Analysis Services 2000
    Par nnasser dans le forum MS SQL Server
    Réponses: 4
    Dernier message: 22/09/2006, 14h03

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo