CHECK YOUR STUB FOR BAD DATA

"Jim Bob" <tm@tm.com> wrote in message
news:016201c34d57$c9b79110$a401280a@phx.gbl...
> Periodically throughout the day, one of my .asp pages will
> fail with one of the following errors caught in vb script:
>
> 1) The stub received bad data
> 2) The server has been disabled
>
> I suspect the first error causes the second error. The
> page is located in a virtual directory which has the
> application protection set to High (Isolated) to prevent
> the problem from stopping the rest of the website. After
> the error occurs, the only way to recover and view the
> page again is to click Unload, or if that won't work
> (sometimes it freezes), then I have to restart IIS.
>
> Several times per day the event log has warning entries -
> Warning: Out of process
> application '/LM/W3SVC/1/Root/Exchange' terminated
> unexpectedly.
>
> Sometimes the event log records an error:
> Error: The HTTP server encountered an unhandled exception
> while processing the ISAPI Application '
> RPCRT4!I_RpcTransGetAddressList + 0x87A1
> ole32!CoCreateGuid + 0x2D
>
> The page creates a mapi.session object, then reads
> free/busy information from a remote Exchange server to
> display on the web page.
>
> VB Script Code Snippet:
> Set ObjSession = CreateObject("mapi.session")
> strProfileInfo = strServer + Chr(10) + strMailbox
> objSession.Logon "", "", False, True, 0, True,
> strProfileInfo
>
> System Information:
> Win2K server, SP4 (also occurs on SP3)
> IIS 5, SP3