ASP error accessing component in Win2K  
Author Message
ng_[at]_neotericsdc_[dot]_com>





PostPosted: Sat Jun 12 14:52:01 CDT 2004 Top

IIS >> ASP error accessing component in Win2K

The following message from IIS running under Win 2k Pro. is returned when I attempt to run an asp page which instatiates a simple "Hello World" component:

Technical Information (for support personnel)
Error Type:
Microsoft VBScript runtime (0x800A01C1)
Argument not optional: 'RunCalendar'
/calendar/calendar.asp, line 5

Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; {ED7DB665-3D80-47CA-ADA2-517F9AEE7755}; .NET CLR 1.1.4322)

Page:
GET /calendar/calendar.asp

Time:
12 June 2004, 13:11:09

When I run this page in Visual Studio.net in debug it works perfectly.
When I register the component on another machine running NT4 the page runs perfectly on that machine. The settings for the virtual websites are the same on both machines. When I run the page from the NT4 machine looking at the Win2k machine while debug is running the page works also. As soon as I stop the debug process the page refuses to load. Any Ideas?

Web Programming246  
 
 
willakawill





PostPosted: Sat Jun 12 14:52:01 CDT 2004 Top

IIS >> ASP error accessing component in Win2K A little extra info.
The code in the component (CalCom2.dll) is:

Option Explicit
Private oContext As ScriptingContext
Sub OnStartPage(oSC As ScriptingContext)
Set oContext = oSC
End Sub
Public Sub RunCalendar()
With oContext.Response
.Write "<html><body><H1>Hello World</H1></body></html>"
End With
End Sub

The asp page is:

<% Option Explicit
Private oCalendar
Set oCalendar = Server.CreateObject("CalCom2.CalAdmin")
oCalendar.RunCalendar
Set oCalendar = Nothing
%>

IIS 5 running on Win 2k Pro
Thanks