List Info

Thread: Adding CDO 1.21 reference to ASP.NET project




Adding CDO 1.21 reference to ASP.NET project
country flaguser name
United States
2007-07-16 09:51:23
Hi all,

I've been investigating using CDO in .NET (yes, I know it's
not
supported) to search Exchange's Global Address List.

First off:
1. I know cdo isn't supported in .net/managed code
2. I know the GAL isn't stored in exchange, it's in the AD

Nonetheless, I want to explore it as an option.  However,
whenever I
add the CDO 1.21 Library as a reference I get this message:

      "A reference to 'Microsoft CDO 1.21 Library'
could not be
added.  Could not load the type library.  Library not
registered.
(Exception from HRESULT: 0x8002801D
(TYPE_E_LIBNOTREGISTERED))"

Does anyone know why I'm getting this message, and what I
can do to
install/register the CDO 1.21 library so I can use it?

I've tried registering the DLL using regsvr32.
I've tried loading the Office 2003 disk and making sure
Collaboration
Data Objects is checked on the Outlook install.
Neither has worked.

I'm running Visual Studio 2005 on a Windows XP Professional
box
(development only).  I have Outlook 2003 installed, and I'm
trying to
connect to an Exchange 2003 instance.

Thanks in advance...
R


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Adding CDO 1.21 reference to ASP.NET project
country flaguser name
United States
2007-07-17 19:32:37
try regsvr32 /u DLLNAME.DLL then regsvr32

Also can you instantiate a cdo object using createobject?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Adding CDO 1.21 reference to ASP.NET project
country flaguser name
United States
2007-07-18 14:52:21
Thanks for the feedback.

I've tried unregistering and re-registering the dll, but no
love.

I haven't actually tried doing a createobject call.. good
thought,
just to see if it works.

BUT - I figured out what the problem is
(also for anyone else searching for this issue)

I'm developing the project on a personal PC, not on the
exchange
server.  Therefore the same DLL's referenced in Exchange
(and all the
examples I've found) aren't registered on my machine
correctly.  But,
there is an Exchange Toolkit that comes with the
installation CDs for
Exchange 2003.  Installing this Toolkit on the development
machine
registers the necessary COM components and the DLLs
necessary to
reference CDO  in .Net.

simple solutions are the best 




On Jul 17, 7:32 pm, Kr3at <i...Kr3at.com> wrote:
> try regsvr32 /u DLLNAME.DLL then regsvr32
>
> Also can you instantiate a cdo object using
createobject?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )