|
 |
asp_cdo thread: Exchange and IIS on seperate servers
Message #1 by Eli Schilling <eschilli@t...> on Tue, 3 Jul 2001 08:43:42 -0700
|
|
I know this has been discussed before but I still haven't been able to make
it work.
I have an asp page on my IIS server that resolves SMTP mail addresses
through an Exchange server. They are both on the same subnet but are on two
seperate servers. On the Exchange server I used the registry hack to change
the temp profile directory to a public directory to which everyone has full
control. I also set the ASP page to use plain text authentication.
However, when I try to connect it just sits there, says "page found, waiting
for reply"......
Here is the code I'm using:
strUsrString = request.servervariables("LOGON_USER")
strMailbox = Mid(strUsrString, 5, 10)
strExchangeServer = "SPTEXC01"
set objSession = Server.CreateObject("MAPI.Session")
strProfileInfo = strExchangeServer & vbLF & strMailbox
objSession.Logon "", "", False,True,0,True,strProfileInfo
If I display the strProfile Info it shows up correctly. If I drop this page
on the exchange server it works fine.
Can anyone tell me what I'm doing wrong?
Thanks,
Eli
Message #2 by "Siegfried Weber" <sweber@c...> on Tue, 3 Jul 2001 20:04:45 +0200
|
|
What did you install on the IIS computer to get CDO 1.21 support?
<Siegfried/>
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Tuesday, July 03, 2001 5:44 PM
> To: ASP CDO
> Subject: [asp_cdo] Exchange and IIS on seperate servers
>
> I know this has been discussed before but I still haven't been able to
> make
> it work.
>
> I have an asp page on my IIS server that resolves SMTP mail addresses
> through an Exchange server. They are both on the same subnet but are
on
> two
> seperate servers. On the Exchange server I used the registry hack to
> change
> the temp profile directory to a public directory to which everyone has
> full
> control. I also set the ASP page to use plain text authentication.
> However, when I try to connect it just sits there, says "page found,
> waiting
> for reply"......
>
> Here is the code I'm using:
>
> strUsrString =3D request.servervariables("LOGON_USER")
> strMailbox =3D Mid(strUsrString, 5, 10)
> strExchangeServer =3D "SPTEXC01"
>
> set objSession =3D Server.CreateObject("MAPI.Session")
>
> strProfileInfo =3D strExchangeServer & vbLF & strMailbox
>
> objSession.Logon "", "", False,True,0,True,strProfileInfo
>
> If I display the strProfile Info it shows up correctly. If I drop
this
> page
> on the exchange server it works fine.
>
> Can anyone tell me what I'm doing wrong?
>
> Thanks,
> Eli
>
Message #3 by Eli Schilling <eschilli@t...> on Tue, 3 Jul 2001 11:28:15 -0700
|
|
I have Outlook 2000...
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Tuesday, July 03, 2001 11:05 AM
To: ASP CDO
Subject: [asp_cdo] RE: Exchange and IIS on seperate servers
What did you install on the IIS computer to get CDO 1.21 support?
<Siegfried/>
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Tuesday, July 03, 2001 5:44 PM
> To: ASP CDO
> Subject: [asp_cdo] Exchange and IIS on seperate servers
>
> I know this has been discussed before but I still haven't been able to
> make
> it work.
>
> I have an asp page on my IIS server that resolves SMTP mail addresses
> through an Exchange server. They are both on the same subnet but are
on
> two
> seperate servers. On the Exchange server I used the registry hack to
> change
> the temp profile directory to a public directory to which everyone has
> full
> control. I also set the ASP page to use plain text authentication.
> However, when I try to connect it just sits there, says "page found,
> waiting
> for reply"......
>
> Here is the code I'm using:
>
> strUsrString = request.servervariables("LOGON_USER")
> strMailbox = Mid(strUsrString, 5, 10)
> strExchangeServer = "SPTEXC01"
>
> set objSession = Server.CreateObject("MAPI.Session")
>
> strProfileInfo = strExchangeServer & vbLF & strMailbox
>
> objSession.Logon "", "", False,True,0,True,strProfileInfo
>
> If I display the strProfile Info it shows up correctly. If I drop
this
> page
> on the exchange server it works fine.
>
> Can anyone tell me what I'm doing wrong?
>
> Thanks,
> Eli
>
Message #4 by "Siegfried Weber" <sweber@c...> on Tue, 3 Jul 2001 23:00:49 +0200
|
|
Did you logon locally on the IIS computer and run Outlook once to
configure it for CW (Corporate or Workgroup Mode)? Also creating a MAPI
profile and logon to a valid mailbox doesn't hurt.
Did you make sure CDO 1.21 is installed (as custom option) and you did
*NOT* apply the Outlook Security update or even Outlook 2000 SP2? Either
one will break CDO 1.21.
Also make sure you implement the registry hack for the CDO 1.21 temp
file on the IIS computer. That's where the dynamic profile is stored.
Just to check if the config is fine I've put up some scripts you can use
to check if CDO 1.21 is installed and if you can logon with a dynamic
profile. Both scripts are WSH files and you need to be logged on locally
(or use Terminal Services - I *love* them) on the IIS computer to run
them.
Get them here: http://212.18.22.93/samples/CDOUtilities.eml (sorry about
the IP address but DNS isn't set up yet for the new Website <hint>)
<Siegfried/>
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Tuesday, July 03, 2001 8:28 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Exchange and IIS on seperate servers
>
> I have Outlook 2000...
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: Tuesday, July 03, 2001 11:05 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Exchange and IIS on seperate servers
>
>
> What did you install on the IIS computer to get CDO 1.21 support?
>
> <Siegfried/>
>
> > -----Original Message-----
> > From: Eli Schilling [mailto:eschilli@t...]
> > Sent: Tuesday, July 03, 2001 5:44 PM
> > To: ASP CDO
> > Subject: [asp_cdo] Exchange and IIS on seperate servers
> >
> > I know this has been discussed before but I still haven't been able
to
> > make
> > it work.
> >
> > I have an asp page on my IIS server that resolves SMTP mail
addresses
> > through an Exchange server. They are both on the same subnet but
are
> on
> > two
> > seperate servers. On the Exchange server I used the registry hack
to
> > change
> > the temp profile directory to a public directory to which everyone
has
> > full
> > control. I also set the ASP page to use plain text authentication.
> > However, when I try to connect it just sits there, says "page found,
> > waiting
> > for reply"......
> >
> > Here is the code I'm using:
> >
> > strUsrString =3D request.servervariables("LOGON_USER")
> > strMailbox =3D Mid(strUsrString, 5, 10)
> > strExchangeServer =3D "SPTEXC01"
> >
> > set objSession =3D Server.CreateObject("MAPI.Session")
> >
> > strProfileInfo =3D strExchangeServer & vbLF & strMailbox
> >
> > objSession.Logon "", "", False,True,0,True,strProfileInfo
> >
> > If I display the strProfile Info it shows up correctly. If I drop
> this
> > page
> > on the exchange server it works fine.
> >
> > Can anyone tell me what I'm doing wrong?
> >
> > Thanks,
> > Eli
> >
>
Message #5 by Eli Schilling <eschilli@t...> on Tue, 3 Jul 2001 16:59:10 -0700
|
|
I've logged into the IIS server and configured a MAPI profile. The registry
hack I did was:
Change HKLM\Software\Microsoft\Windows Messageing Subsystem...and change
Temppath to a directory that is available to everyone (Not share but NTFS
security allows everyone read/write access)
I also ran your scripts which were successful. However, it still does
nothing when I open a browser on my PC and connect to the page on my IIS
server. Once I submit my request is just sits there and sits there....
Any other suggestions?
Thanks,
Eli
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Tuesday, July 03, 2001 2:01 PM
To: ASP CDO
Subject: [asp_cdo] RE: Exchange and IIS on seperate servers
Did you logon locally on the IIS computer and run Outlook once to
configure it for CW (Corporate or Workgroup Mode)? Also creating a MAPI
profile and logon to a valid mailbox doesn't hurt.
Did you make sure CDO 1.21 is installed (as custom option) and you did
*NOT* apply the Outlook Security update or even Outlook 2000 SP2? Either
one will break CDO 1.21.
Also make sure you implement the registry hack for the CDO 1.21 temp
file on the IIS computer. That's where the dynamic profile is stored.
Just to check if the config is fine I've put up some scripts you can use
to check if CDO 1.21 is installed and if you can logon with a dynamic
profile. Both scripts are WSH files and you need to be logged on locally
(or use Terminal Services - I *love* them) on the IIS computer to run
them.
Get them here: http://212.18.22.93/samples/CDOUtilities.eml (sorry about
the IP address but DNS isn't set up yet for the new Website <hint>)
<Siegfried/>
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Tuesday, July 03, 2001 8:28 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Exchange and IIS on seperate servers
>
> I have Outlook 2000...
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: Tuesday, July 03, 2001 11:05 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Exchange and IIS on seperate servers
>
>
> What did you install on the IIS computer to get CDO 1.21 support?
>
> <Siegfried/>
>
> > -----Original Message-----
> > From: Eli Schilling [mailto:eschilli@t...]
> > Sent: Tuesday, July 03, 2001 5:44 PM
> > To: ASP CDO
> > Subject: [asp_cdo] Exchange and IIS on seperate servers
> >
> > I know this has been discussed before but I still haven't been able
to
> > make
> > it work.
> >
> > I have an asp page on my IIS server that resolves SMTP mail
addresses
> > through an Exchange server. They are both on the same subnet but
are
> on
> > two
> > seperate servers. On the Exchange server I used the registry hack
to
> > change
> > the temp profile directory to a public directory to which everyone
has
> > full
> > control. I also set the ASP page to use plain text authentication.
> > However, when I try to connect it just sits there, says "page found,
> > waiting
> > for reply"......
> >
> > Here is the code I'm using:
> >
> > strUsrString = request.servervariables("LOGON_USER")
> > strMailbox = Mid(strUsrString, 5, 10)
> > strExchangeServer = "SPTEXC01"
> >
> > set objSession = Server.CreateObject("MAPI.Session")
> >
> > strProfileInfo = strExchangeServer & vbLF & strMailbox
> >
> > objSession.Logon "", "", False,True,0,True,strProfileInfo
> >
> > If I display the strProfile Info it shows up correctly. If I drop
> this
> > page
> > on the exchange server it works fine.
> >
> > Can anyone tell me what I'm doing wrong?
> >
> > Thanks,
> > Eli
> >
>
Message #6 by "Siegfried Weber" <sweber@c...> on Wed, 4 Jul 2001 11:21:05 +0200
|
|
OK. So, how does "strUsrString" looks like? Can you make sure it is
always entered with "Domain\User"? According to your code
request.servervariables("LOGON_USER") must always look like this:
"DOM1\USER1"
Also you didn't check if strUsrString always contains a value. How do
you force the browser to authenticate? Or does your ASP app run with a
fixed user account defined on the IIS virtual directory?
<Siegfried/>
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Wednesday, July 04, 2001 1:59 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Exchange and IIS on seperate servers
>
> I've logged into the IIS server and configured a MAPI profile. The
> registry
> hack I did was:
>
> Change HKLM\Software\Microsoft\Windows Messageing Subsystem...and
change
> Temppath to a directory that is available to everyone (Not share but
NTFS
> security allows everyone read/write access)
>
> I also ran your scripts which were successful. However, it still does
> nothing when I open a browser on my PC and connect to the page on my
IIS
> server. Once I submit my request is just sits there and sits
there....
>
> Any other suggestions?
>
> Thanks,
> Eli
>
|
|
 |