I have created a cube with name of "MY_CUBE"
I use ASp to check count of item int CubeDefs collection but it return 0
(cat.CubeDefs.Count=0). My code :

Set con = Server.CreateObject("ADODB.Connection")
con.Open "Data Source=myServer;Provider=MSOLAP;"
con.DefaultDatabase="MyFirstCube"
Set cat= Server.CreateObject("ADOMD.Catalog")
Set cat.ActiveConnection = con

' Write count of CubeDefs
Response.Write(cat.CubeDefs.Count)

Anyone hlp me ?