Quote:
> Hello,
> I made a ASP page for our intranet that shows the
> free/busy-information of all employees. I have done this by querying
> Microsoft Exchange through a Mapi-session. After server maintenance
> the page suddenly stopped working. The cause was that after the
> maintenance the CDO.DLL was not registered anymore. Re-registering was
> easily done by: REGSVR32.EXE CDO.DLL but it took hours to find out
> this was the problem.
> What I want to do is building a check in the ASP-page to see if
> CDO.DLL is registered on the server and if is is not I display a
> message so we know immediatly what the problem is (and solve the
> problem in 1 minute).
> My question:
> Is there a way to detect CDO.DLL is registered on the server using
> VBSCRIPT?
Either error trap on the CreateObject("MAPI.Session") or check the registy
to see if the "MAPI.Session" progid is present (which mayso require error
trapping depending on how you access the registry).
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
Technet Script Center
http://www.microsoft.com/technet/scriptcenter/default.asp