![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I hope I am in the right group to post a question about the issue I am having. I have a web page (ASP.NET web page .aspx) that uses a NT Account (It has read privilege on the cube) to hit a OLAP cube on a different server and display the results from the Cube on the web page. I am using an adomd component and build mdx queries (ALL the MDX Queries are SELECT statements). When I move this code to the server I get the following error after 15-16 hits to the page. Then I had to reset the IIS to make this report work. The problem shows up again after 15-16 hits to the web page. System.Data.OleDb.OleDbException: Initial command(s) for cube 'HR Scorecard' failed, command = ''. The operation requested failed due to security problems - the underlying data structures are not valid An unexpected internal error has occurred. Initial command(s) for cube 'HR Scorecard' failed, command = 'GRANT CELL WRITE ON CURRENTCUBE FOR ALL'. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextE rrorHandling(Int32 hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextF orMultpleResults(tagDB PARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(Comm andBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior behavior) at System.Data.OleDb.OleDbCommand.System.Data.IDbComm and.ExecuteReader(Comm andBehavior behavior) at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at CITReporting.MyPage.GetDataSource(String mdxQry) Here's the method I use: private DataSet GetDataSource(string mdxQry) { DataSet dsCube = new DataSet(); OleDbConnection oleDbConn = new OleDbConnection(); try { oleDbConn.ConnectionString = ConfigurationSettings.AppSettings["MyCube"].ToString(); OleDbCommand cmd = new OleDbCommand(); cmd.Connection = oleDbConn; cmd.CommandText = mdxQry; OleDbDataAdapter adapter = new OleDbDataAdapter(cmd.CommandText, oleDbConn); adapter.Fill(dsCube, "CubeData"); } catch(Exception ex) { DisplayMessage(ex.Message, ex.ToString()); } finally { oleDbConn.Close(); } return dsCube; } Any help with this issue is greatly appreciated. Thanks CH |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Any ideas? Pls help. Thanks, CH |
![]() |
| Thread Tools | |
| Display Modes | |
| |