I'm pulling my hair out here.
I have an ASP page which causes an error when loading.
The error is...
***************************
Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method
/intranet/default.asp, line 66
***************************
The procedure causing the problem in the default.asp page is
******************************************
Sub GetEvents()
Dim oApp, clsD, vCls, clsE
Dim sEvents
Set oApp = Server.CreateObject("Calendar.clsApplication")
Set vCls = oApp.GetCalendarMonth(Year(Date()), Month(Date()), vbMonday)
For Each clsD In vCls
If clsD.TodaysDate = Date Then
If clsD.DoesDayHaveEvents Then
For Each clsE In clsD
%>
<li><a
href="EventDefault.asp?app=Calendar%20Events"><%=clsE.Title%></a></li>
<%
Next
End If
End If
Next
'we will always have the last link
%>
<li><a href="EventDefault.asp?app=Calendar%20Events">Click here to view
the calendar</a></li>
<%
Set clsD = Nothing
Set vCls = Nothing
Set oApp = Nothing
End Sub
******************************************
The actual error line (Line 66) is the line that says:-
For Each clsD In vCls
This code actually works on our intranet and another developers machine, but
does not work on my system (the main development machine) when I run
//localhost/intranet/default.asp.
When I comment out this routine, it does run.
Does anyone have any ideas?
Thx