|
 |
asp_cdo thread: Cannot initialize a CDOEXM object
Message #1 by "François St-Maurice" <frankstm@h...> on Thu, 30 Aug 2001 14:49:31
|
|
Hello everyone.
I am trying to create a mail enabled recipient in Exchange 2000.
Unfortunately, I am unable to initialize my CDOEXM object. The following
line of code generates the error:
------------------------------
Set objMailbox = Server.Createobject("CDOEXM.IMailboxStore")
------------------------------
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/usermanager/user/save.asp, line 12
Invalid ProgID. For additional information specific to this message please
visit the Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
------------------------------
Any ideas why this is happening?
Thanks in advance.
Message #2 by "Siegfried Weber" <sweber@c...> on Thu, 30 Aug 2001 17:42:15 +0200
|
|
You need to use the following code:
Set objPerson = CreateObject("CDO.Person")
Set objMailboxStore = objPerson.GetInterface("IMailboxStore")
Also, you might want to check
http://www.cdolive.net/samples/adusermanagement.eml for a bunch of WSH
scripts which can easily be changed to run as VBScript code from ASP.
<Siegfried />
> -----Original Message-----
> From: Fran=E7ois St-Maurice [mailto:frankstm@h...]
> Sent: Thursday, August 30, 2001 4:50 PM
> To: ASP CDO
> Subject: [asp_cdo] Cannot initialize a CDOEXM object
> Hello everyone.
?
> I am trying to create a mail enabled recipient in Exchange 2000.
> Unfortunately, I am unable to initialize my CDOEXM object. The
following
> line of code generates the error:
>
> ------------------------------
> Set objMailbox =3D Server.Createobject("CDOEXM.IMailboxStore")
> ------------------------------
>
> Server object error 'ASP 0177 : 800401f3'
>
> Server.CreateObject Failed?
> /usermanager/user/save.asp, line 12
>
> Invalid ProgID. For additional information specific to this message
please
> visit the Microsoft Online Support site located at:
>> ------------------------------
>Any ideas why this is happening?
>thanks in advance.
Message #3 by "François St-Maurice" <frankstm@h...> on Thu, 30 Aug 2001 19:11:25
|
|
Thanks for the link!
Alas, I get the same error message trying to execute :
Set objPerson = CreateObject("CDO.Person")
It is very confusing for me because I can successfully create a ADSI user
using this code:
Set objContainer = GetObject("LDAP://domain.com/DC=domain,DC=com")
Set objUser = objContainer.Create("user", "CN=Francois St-Maurice"))
It's as if my Exchange 2000 server did not install CDO dll's
successfully...
> You need to use the following code:
>
> Set objPerson = CreateObject("CDO.Person")
> Set objMailboxStore = objPerson.GetInterface("IMailboxStore")
>
> Also, you might want to check
> http://www.cdolive.net/samples/adusermanagement.eml for a bunch of WSH
> scripts which can easily be changed to run as VBScript code from ASP.
>
> <Siegfried />
>
>
> > -----Original Message-----
> > From: Fran=E7ois St-Maurice [mailto:frankstm@h...]
> > Sent: Thursday, August 30, 2001 4:50 PM
> > To: ASP CDO
> > Subject: [asp_cdo] Cannot initialize a CDOEXM object
> > Hello everyone.
> ?
> > I am trying to create a mail enabled recipient in Exchange 2000.
> > Unfortunately, I am unable to initialize my CDOEXM object. The
> following
> > line of code generates the error:
> >
> > ------------------------------
> > Set objMailbox =3D Server.Createobject("CDOEXM.IMailboxStore")
> > ------------------------------
> >
> > Server object error 'ASP 0177 : 800401f3'
> >
> > Server.CreateObject Failed?
> > /usermanager/user/save.asp, line 12
> >
> > Invalid ProgID. For additional information specific to this message
> please
> > visit the Microsoft Online Support site located at:
> >> ------------------------------
> >Any ideas why this is happening?
> >thanks in advance.
Message #4 by "Siegfried Weber" <sweber@c...> on Thu, 30 Aug 2001 20:29:46 +0200
|
|
You are trying to run this code locally on your Exchange 2000 Server and
it fails on that line Set objPerson =3D CreateObject("CDO.Person")?
If so, I'd probably reinstall the machine (it is a development or test
machine, isn't it?) because you should be able to create this object
without any problem.
<Siegfried />
> -----Original Message-----
> From: Fran=E7ois St-Maurice [mailto:frankstm@h...]
> Sent: Thursday, August 30, 2001 9:11 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Cannot initialize a CDOEXM object
>
> Thanks for the link!
>
> Alas, I get the same error message trying to execute :
> Set objPerson =3D CreateObject("CDO.Person")
>
> It is very confusing for me because I can successfully create a ADSI
user
> using this code:
>
> Set objContainer =3D
GetObject("LDAP://domain.com/DC=3Ddomain,DC=3Dcom")
> Set objUser =3D objContainer.Create("user", "CN=3DFrancois
St-Maurice"))
>
> It's as if my Exchange 2000 server did not install CDO dll's
> successfully...
>
>
>
> > You need to use the following code:
> >
> > Set objPerson =3D CreateObject("CDO.Person")
> > Set objMailboxStore =3D objPerson.GetInterface("IMailboxStore")
> >
> > Also, you might want to check
> > http://www.cdolive.net/samples/adusermanagement.eml for a bunch of
WSH
> > scripts which can easily be changed to run as VBScript code from
ASP.
> >
> > <Siegfried />
> >
> >
> > > -----Original Message-----
> > > From: Fran=3DE7ois St-Maurice [mailto:frankstm@h...]
> > > Sent: Thursday, August 30, 2001 4:50 PM
> > > To: ASP CDO
> > > Subject: [asp_cdo] Cannot initialize a CDOEXM object
> > > Hello everyone.
> > ?
> > > I am trying to create a mail enabled recipient in Exchange 2000.
> > > Unfortunately, I am unable to initialize my CDOEXM object. The
> > following
> > > line of code generates the error:
> > >
> > > ------------------------------
> > > Set objMailbox =3D3D Server.Createobject("CDOEXM.IMailboxStore")
> > > ------------------------------
> > >
> > > Server object error 'ASP 0177 : 800401f3'
> > >
> > > Server.CreateObject Failed?
> > > /usermanager/user/save.asp, line 12
> > >
> > > Invalid ProgID. For additional information specific to this
message
> > please
> > > visit the Microsoft Online Support site located at:
> > >> ------------------------------
> > >Any ideas why this is happening?
> > >thanks in advance.
Message #5 by "François St-Maurice" <frankstm@h...> on Thu, 30 Aug 2001 20:47:41
|
|
I went to your site and executed CreateContactWithCDOEXM.wsf locally on my
Exchange server. It works perfectly!
I guess my problem resides in my IIS server and Exchange server not being
on the same machine.
I will try making all my mailbox managing in a local wsf file and call it
from my ASP code. I guess that should work...
Thanks again for those tools...they will be very handy. If you have any
other suggestions for me, I'm all ears!
> You are trying to run this code locally on your Exchange 2000 Server and
> it fails on that line Set objPerson =3D CreateObject("CDO.Person")?
>
> If so, I'd probably reinstall the machine (it is a development or test
> machine, isn't it?) because you should be able to create this object
> without any problem.
>
> <Siegfried />
Message #6 by "Siegfried Weber" <sweber@c...> on Thu, 30 Aug 2001 23:19:08 +0200
|
|
Well, you didn't tell that you tried to execute your app on another
machine than the Exchange 2000 Server ;-)) This might bring up some
issues with missing components (as you already figured out).
If you want to run CDOEXM stuff on another machine than the Exchange
2000 Server you must at least install the Exchange 2000 System
Management tools (from the Exchange 2000 setup CD) and the same service
pack as you Exchange 2000 Server has.
I might have some more tools in the near future. The Website is still
under construction but make sure to check back every now and then ;-)
<Siegfried />
> -----Original Message-----
> From: Fran=E7ois St-Maurice [mailto:frankstm@h...]
> Sent: Thursday, August 30, 2001 10:48 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Cannot initialize a CDOEXM object
>
> I went to your site and executed CreateContactWithCDOEXM.wsf locally
on my
> Exchange server. It works perfectly!
>
> I guess my problem resides in my IIS server and Exchange server not
being
> on the same machine.
>
> I will try making all my mailbox managing in a local wsf file and call
it
> from my ASP code. I guess that should work...
>
> Thanks again for those tools...they will be very handy. If you have
any
> other suggestions for me, I'm all ears!
>
>
> > You are trying to run this code locally on your Exchange 2000 Server
and
> > it fails on that line Set objPerson =3D3D
CreateObject("CDO.Person")?
> >
> > If so, I'd probably reinstall the machine (it is a development or
test
> > machine, isn't it?) because you should be able to create this object
> > without any problem.
> >
> > <Siegfried />
|
|
 |