Hi Fellows,
Im having a problem, sometimes my scripts works, and sometimes it fail in
the logon line.
My Configuration:
My IIS and Exchange Servers are in diferent servers.
My virtual web site has basic authentication
My users have logon on local right.
Im using global.asa and instanciating CDO there. Here is:
Sub Session_OnStart
Session.timeout = 5
Session.LCID = 4105
Set Session("objRenderApp") = Server.CreateObject("AMHTML.Application")
Set Session("objCdoSession") = Server.CreateObject("MAPI.Session")
End Sub
Sub Session_OnEnd
Set Session("objCdoSession") = nothing
Set Session("objRendderApp") = nothing
End Sub
And thorough my asp page I manipulate its methods and properties as here:
Set objRP = Session("objRenderApp")
objRP.LoadConfiguration
1,"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSExchangeWeb\Param
eters"
strServer = objRP.ConfigParameter("Server")
strLogonID = Request.ServerVariables("Logon_User")
strMailbox = Right(strLogonID, Len(strLogonID) - InStr
(strLogonID, "\"))
strProfileInfo = strServer + vbLF + strMailbox
set objSession = Session("objCdoSession")
objSession.Logon "", "", False,True , 0, true , strProfileInfo
My strProfileInfo its ok. "ExchangeServer Mailbox"
I have to launch this application but I can let this like that, unstable.
If someone is having the same situation, please HELP me >:)