![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a problem that I've found a few replys to in Google Groups but none appear to relate. I am attempting to use MS Decision Support Objects in an ASP.NET page to process both the dimensions and the full cube on a server. The page is running on the server containing both SQL and the Analysis Services. To get round the problem I have written a simple C# Windows App which does exactly the same thing, installed it on the machine, and it runs perfectly. I am assuming the problem is something to do with permissions here is a simple bit of code I use to refresh all the dimensions.... [MTAThread] public void DimensionRefresh(string Database) { DSO.ServerClass dsoServer = new DSO.ServerClass(); DSO.MDStore dsoDatabase; DSOName = "localhost"; dsoServer.Connect("localhost"); dsoDatabase = (DSO.MDStore) dsoServer.MDStores.Item(Database); foreach (DSO.Dimension dsoDim in dsoDatabase.Dimensions) { dsoDim.LockObject(DSO.OlapLockTypes.olapLockProces s, "Processing object..."); dsoDim.Process(DSO.ProcessTypes.processRefreshData ); dsoDim.UnlockObject(); } dsoDatabase = null; dsoServer.CloseServer(); dsoServer = null; } ...the [MTAThread] bit I read in another post but makes no difference. The error I keep getting is "Connection to server is lost". Is this something to do with the interop with the DSO objects? Or something to do with the permissions of the IIS user on the machine? I am lost, plenty of help please. TIA Chris. |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |