Hi,
I am facing a strange problem in asp + exchnage server 5.5 application.
This application is running well in Win200 environment (IIS5,exchnage
server 2000)
Now the present set up is IIS5(win2000) is and Exchnage Server5.5(NT) - in
tow different machine
which are in same domain.
The follwoing bit f code runs perfectly in WScript and I am able to get
the logged members
username
-----------------------
DIm objOMSession
Dim bstrProfileInfo
on error resume next
Set objOMSession = CreateObject("MAPI.Session")
If err <>0 then
wSCript.echo "error" & err.number & " desc" & err.description
else
bstrProfileInfo = "new-server" + vbLF + "administrator" ' hard coded for
testing
objOMSession.Logon "", "", False, True, 0, True, bstrProfileInfo
wSCript.echo objOMSession.currentuser
end if
--------------------
Where new-server is NT machine where exchnage server is running
BUt the equivalente code is not running in ASP
--------------------
Set objOMSession = Server.CreateObject("MAPI.Session")
bstrProfileInfo = "new-server" + vbLF + "administrator" ' hard coded for
testing
If Not objOMSession Is Nothing Then
objOMSession.Logon "", "", False, True, 0, True, bstrProfileInfo
-----rest of the code
-------------------
We are getting following error
Error No:- 424
Error Source :- Microsoft VBScript runtime error
Error Desc:- Object required
This is happenning at the line where MAPI.Session is created.
IN the IIS, we have basic authentication set and BASIC AUthentication
DOmain is set to the
domain to which both thse systems belong.
Since code is running well with WSrcipt, i think there is no probles as
for as code or DLL
is concerned....
can any one trap the error and let me know the solution...
Tnx in advance,
Raghu
_________________________________________________________________
List posting FAQ: http://www.swinc.com/resource/exch_faq.htm
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe: mailto:[EMAIL PROTECTED]
Exchange List admin: [EMAIL PROTECTED]