473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Testing for an Invalid Exchange Server (CDO 1.21 & VB.NET)

Hello all,

I have a service that's using CDO 1.21 and Redemption to routinely
iterate through a list of users to retrieve some properties which are
then written to a database.

My problem is that the ExchangeServer property of my service is
user-configured and I wanted to have it write to the event log if this
value is invalid so that it stops trying to process the users
(sometimes in the thousands). Currently, my service is not able to
determine the difference between an invalid user (or a user that
doesn't have a mailbox) and an invalid Exchange Server. I'd like to be
able to Catch both.

The following is my Logon line of code, which generates no error:

_Session.Logon(Nothing, Nothing, False, False, Nothing, True,
ExchangeServer & vbLf & LegacyExchangeDN)

The line of code immediately following it does generate an error:
(MAPI_LOGON_FAILED) -2147221231

_Inbox = _Session.Inbox

I was curious if anyone has a suggestion to determine if the
ExchangeServer value provided is valid short of using DirectoryServices
& CDOEXM to connect to it and retrieve properties.

Mar 8 '06 #1
0 977

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nitec Dev | last post by:
Our setup: server1 ASP database running on IIS5, Outlook 2000 and SQL 2000 on Windows 2000. Server2 runs Windows 2000 with Exchange 2000 using CDO 1.2 MAPI Sessions. Clients use IE5/6 and had...
4
by: Roberto | last post by:
Hi, I have Windows Server 2003 + IIS 6.0 with all the security patches released by Microsoft installed until Today. I have an ASP page that calls a method of an object installed under COM +...
2
by: | last post by:
How can I force SmtpMail class to use CDO for Windows 2000 instead of Exchange 2000. We do not use Exchange at all. I want to do this because I am having a problem sending email from the web...
0
by: Maxim | last post by:
Hi I have a major problem with cdo 1.21 and ASP.NET. I hope you can help me. Please, could you guide me in right direction I need to access an Exchange Server 5.5 from ASP.NET application....
8
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
0
by: craigwfl | last post by:
This is really a lame error. I've spent two days scouring the internet for a proper solution to my problem. My issue is that I have an ASP.NET website using a VB.NET COM object to send emails (code...
9
by: Paul H | last post by:
If there is no email client on the XP workstation that my DB is on, is it possible for Access to talk directly with Exchange Server to send an email? I am sure you might think, what's the problem...
4
by: Radek | last post by:
Hi, I would like to send mails using MS Exchange from ASP.NET application. Is it possible to achieve this with CDO 1.21? Currently I'm using Redemption (version 4.2) and I have the following...
0
by: =?Utf-8?B?ZGJhY2g=?= | last post by:
I was getting the dreaded “Could not create CDO.Message”. Microsoft advises that CDOEX.DLL should be unregistered (This is a MS 2003 Sharepoint server that relays mail via a 2003 Exchange...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.