![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am having a weird problem using ADOMD.NET in a VB.NET ASP.NET application. I am unable to connect to MS Analysis Services on my Local Machine or any other server on my LAN from inside an ASP.NET application. I am able to do it from inside a Windows application with no problem. I have impersonation turned off in the Web.Config. I am impersonating a user from inside the application. I have verified that the impersonation is successful. This user belongs to MS Analysis Services Admins Role. However it really doesnât matter who I am impersonating, I get the same error. The connection string I am using is: Provider=MSOLAP; Data Source=localhost; Initial Catalog= Demo_DB; ConnectTo=8.0; Connect Timeout=60 I have tried replacing the localhost with my system name and other server names. The exception I am receiving is: AdomdConnectionException The exception message is: The connection either timed out or was lost. There are no other internal exceptions or error messages. I have ADOMD.NET, XMLASDK, MSXML4, and the latest SQL Server and Analysis Services service packs installed. I have run MS Office Repair. I have done the same on the various server systems I have attempted to connect to. I have created the IIS virtual directory XMLA redirecting to âC:\Program Files\Microsoft XML For Analysis SDK\Isapiâ. When I use the sample application that comes with ADOMD.NET I can connect with no problem to any of my systems including my localhost. When I turn my impersonation off and add the Web.Config Identity property to impersonate the above user or even my self. I still get the exception. When I turned all impersonation off and added the anonymous account being used by IIS to MS Analysis Services I can connect with no problem. It seems as if the impersonation is not being sent outside of IIS. I also have no problem connecting with the older ADOMD COM objects. I want to upgrade all my applications to ADOMD.NET. This makes no sense to me. I obviously am missing something or donât understand something. The same code has no problem in a Windows application. What am I missing? Is there something in IIS I need to change? Please help. Any Suggestions? Thank You for Your Help |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I get it now. And I can be of no help other than validating your problem. ![]() I added a new account to the web server and then impersonated (through web.config), that worked fine for everything except a call to AS. I then added that account to the olap admins group, and get the same error attempting to get data from AS. Stack trace below. Hopefully someone with a clue will jump in here, since, like you, I'm going to need to figure this out before we go production. Tom -------------------------------------- [AdomdConnectionException: The connection either timed out or was lost.] Microsoft.AnalysisServices.AdomdClient.XmlaClient. EndRequest() +251 Microsoft.AnalysisServices.AdomdClient.XmlaClient. SendMessage(Boolean endReceivalIfException, Boolean readSession, Boolean readNamespaceCompatibility) +32 Microsoft.AnalysisServices.AdomdClient.XmlaClient. DiscoverWithCreateSession(String discoverType, ListDictionary properties, Boolean sendNamespacesCompatibility) +177 Microsoft.AnalysisServices.AdomdClient.XmlaClientP rovider.Microsoft.AnalysisServices.AdomdClient.Ado mdConnection+IXmlaClientProviderEx.DiscoverWithCre ateSession(String requestType, Boolean sendNamespaceCompatibility) +131 Microsoft.AnalysisServices.AdomdClient.AdomdConnec tion.RetrieveSchemaRowsets(Boolean createSession) +42 Microsoft.AnalysisServices.AdomdClient.AdomdConnec tion.ConnectToIXMLA(Boolean createSession) +127 Microsoft.AnalysisServices.AdomdClient.AdomdConnec tion.Open() +601 |
#6
| |||
| |||
|
|
I ran into this same problem yesterday and have been trying to get it to work...with no luck. Anyone out there find a solution? "Tom DAurizio" <daurizio (AT) gmail (DOT) com> wrote in message news:335ef9a2.0410280513.3b243055 (AT) posting (DOT) google.com... I get it now. And I can be of no help other than validating your problem. ![]() I added a new account to the web server and then impersonated (through web.config), that worked fine for everything except a call to AS. I then added that account to the olap admins group, and get the same error attempting to get data from AS. Stack trace below. Hopefully someone with a clue will jump in here, since, like you, I'm going to need to figure this out before we go production. Tom -------------------------------------- [AdomdConnectionException: The connection either timed out or was lost.] Microsoft.AnalysisServices.AdomdClient.XmlaClient. EndRequest() +251 Microsoft.AnalysisServices.AdomdClient.XmlaClient. SendMessage(Boolean endReceivalIfException, Boolean readSession, Boolean readNamespaceCompatibility) +32 Microsoft.AnalysisServices.AdomdClient.XmlaClient. DiscoverWithCreateSession(String discoverType, ListDictionary properties, Boolean sendNamespacesCompatibility) +177 Microsoft.AnalysisServices.AdomdClient.XmlaClientP rovider.Microsoft.AnalysisServices.AdomdClient.Ado mdConnection+IXmlaClientProviderEx.DiscoverWithCre ateSession(String requestType, Boolean sendNamespaceCompatibility) +131 Microsoft.AnalysisServices.AdomdClient.AdomdConnec tion.RetrieveSchemaRowsets(Boolean createSession) +42 Microsoft.AnalysisServices.AdomdClient.AdomdConnec tion.ConnectToIXMLA(Boolean createSession) +127 Microsoft.AnalysisServices.AdomdClient.AdomdConnec tion.Open() +601 |
![]() |
| Thread Tools | |
| Display Modes | |
| |