![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, Env: Analysis Services 2005. Visual Studio 2005. Problem: I am trying to open up a connection from the web application using ADOMD.NET. Here is the connection string we use add key="Cube_ConnStr" value="Data Source=ServerName\InstanceName;Initial Catalog=Cube1;user id=domain\user;password=pwd;Provider=MSOLAP/ I have created a Role in the Analysis Services database and added the domainuser as a member. When I try to run the application, it throws the error message… AdomdConnection objConn = new AdomdConnection(ConfigurationSettings. AppSettings["Cube_ConnStr"]); objConn.Open(); - Error here "A connection cannot be made. Ensure that the server is running" But when I add the key <identity impersonate="true"/>, I am not getting any error, I can open the connection and manipulate things inside the cube I know I am missing some permission settings, please let me know….what I am missing I cannot go with impersonate in production… Thanks in advance Balaji -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums...-olap/200607/1 |
#3
| |||
| |||
|
|
Hi Balaji, I have doubt about about "initial catalog=Cube1" in your text "Initial Catalog" refers to OLAP database name, not cube name. Peter Kao "balajikkrishnan via SQLMonster.com" wrote: Hi All, Env: Analysis Services 2005. Visual Studio 2005. Problem: I am trying to open up a connection from the web application using ADOMD.NET. Here is the connection string we use add key="Cube_ConnStr" value="Data Source=ServerName\InstanceName;Initial Catalog=Cube1;user id=domain\user;password=pwd;Provider=MSOLAP/ I have created a Role in the Analysis Services database and added the domainuser as a member. When I try to run the application, it throws the error message. AdomdConnection objConn = new AdomdConnection(ConfigurationSettings. AppSettings["Cube_ConnStr"]); objConn.Open(); - Error here "A connection cannot be made. Ensure that the server is running" But when I add the key <identity impersonate="true"/>, I am not getting any error, I can open the connection and manipulate things inside the cube I know I am missing some permission settings, please let me know..what I am missing I cannot go with impersonate in production. Thanks in advance Balaji -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums...-olap/200607/1 |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Peter/Jeje, Thanks for your reply. I don't have any issue with the connection string, because I am using Initial Catalog in the connection string and when querying the I use the cube name inside the code. AdomdConnection objConn = new AdomdConnection(ConfigurationSettings. AppSettings["Cube_ConnStr"]); objConn.Open(); AdomdCommand objCmd = new AdomdCommand(); objCmd.Connection = objConn; objCmd.CommandText = "Select from [ActualCube]"; CellSet Objcs = objCmd.ExecuteCellSet(); it works when <identity impersonate="true" /> or <identity impersonate="true" userName="domain\user" password="password" / But I dont want to imperonate the account, I want to connect to the cube using the default ASPNET account. How can I add a ASPNET user to the OLAP Admin in another server...? Any thoughts? Balaji -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums...-olap/200607/1 |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Jeje, Thanks again for the reply. I have couple of questions. 1. If I change my web application account to run under the doamin account (say impersonate the user), my entire web application will run under this doamin\user account instead of ASPNET account. - Is this correct, do we have any issues on running this in production. 2. Say if my analysis services and web application are on the same machine, I can add the ASPNET account to the OLAP admin group, - will this work. Please advice. Thanks balaji -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums...-olap/200607/1 |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
jeje, I saw some examples in using the location tag.... location path="AdminSite" system.web customErrors mode="Off" / authorization allow roles="Admin" deny users="*" / /authorization /system.web /location do we need to specify the aspx page name(where the analysis services opens the connection) in the path.... Also can this be used in PRODUCTION. Thanks Balaji -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums...-olap/200607/1 |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |