Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Weird connection problems to analysisserver

$
0
0

I have a large scale web application which connects to a an analysis server.

I didn't have any issues so far but now, only when I am debuging, I get this:

to connect to ssas I use the following method, all the time:

        private static SSAS.Server AnalysisServerConnect(String strStringConnection)
        {
            Microsoft.AnalysisServices.Server svr = new Microsoft.AnalysisServices.Server();
            try
            {
                svr.Connect(strStringConnection);
            }
            catch (SSAS.AmoException e)
            {
                Logger.Exception(strStringConnection, e);
                throw e;
            }
            catch (Exception e)
            {
                Logger.Exception(strStringConnection, e);
                throw e;
            }
   return svr;

}

Now this function succeeds on some cases and fails on others with no specific reason why.

with the same connection string        

for instance, I call it once and it works, call another function and the a few lines later call it again and it fails.

nothing in the code has changed btw

The error:

A connection cannot be made. Ensure that the server is running. and the server is running 

and inner exception of:

No such host is known

the ssas is running for sure. also used sql profiler to see if the failed attemp to connect reaches the server and it doesnt.



Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>