I'm sorry for this newbie question, but I can't find any other help and
I can't figure out how to solve this problem. Hope someone can help me:
I want to connect to a SSAS Server in order to detect the databases.
However, I don't know how to connect to the server in SSAS.
Whenever I connect with server.Connect(string), I get this error message:

AMO Connection
livehedfsdfsd
However, AcquireConnection(Nothing) returns an object which can not be casted to Microsoft.AnalysisServices.Server.
Error message on an explicit type cast:
JulianaMassara
Server.Connnect works well ...
Thanks for your support.
limeypilot
I'm not much of a VB guy:)
maybe it should be something like:
server = connection.AcquireConnection(Nothing) As Server
HTH,
Ovidiu
Carlos Lozano
You forgot to initialize the server variable.
I think you want to do
server = connMgr.AcquireConnection(Nothing)
HTH,
Ovidiu
NJ2CIL
What should that statement do (btw: it does not work)
If it should be a cast: the problem is not the cast syntax, it is that I cannot downcast the returned object, since there is some incompatibility with the COM hierarchy.
Microsoft.AnalysisServices.Server has a connect Method on its own, however, it only takes a string as argument and it fails when calling it in SSIS.
Does anybody know how to use the ConnectionManager connection in Microsoft.AnalysisServices