473,782 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 & LegacyExchangeD N)

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

_Inbox = _Session.Inbox

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

Mar 8 '06 #1
0 992

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

Similar topics

0
4663
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 Outlook 2000 installed. Upgraded to ASP running on IIS6, Outlook 2000 and SQL 2000 on Windows 2003. Server2 runs windows 2003 with Exchange 2003 using CDO 1.2 MAPI Sessions. Clients use IE5/6 and have Outlook 2000/2003 installed.
4
1613
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 + <%.... Set ObjMsg = CreateObject("ObjName","ClassName") ObjMsg.Recipient = .....
2
4540
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 server. If I send part of the HTML email it will go through. If I send the whole HTML email then it gets stuck on our email server at corporate with the error: The message could not be sent to the SMTP server. The transport error code was...
0
877
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. ASP.NET application resides on Windows 2000 server and Exchange Server resides on the separate Windows NT Server. I read that .NET framework does not support cdo 1.21 so I thougt to go around this by programming my own dll component which has reference...
8
3424
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 added. Converting the type library to a .Net assembly failed. A depended type library 'CDO' could not be converted to a .NET assembly. A dependent type library 'ADODB' could not be converted to a .NET assembly. Item has already been added." ...
0
1649
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 below). This sporadically works to send emails, but mostly gets the error mentioned. Once an email does go out then the server sends emails fine until IIS is reset. I found this "SendUsing Configuration is Invalid" error attempting to be...
9
18114
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 with simply installing Outlook. Well I guess I am looking for the "elegant" solution :O) Thanks Paul
4
1509
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 problem: E-mails can only be send when Outlook is opened on the computer where IIS is working. If Outlook is closed, every logon method call shows dialog with username, server name and password (although I have entered correct user profile name and...
0
968
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 Server). My asp.net application was working fine until SQL Server 2005 was installed (with all components). I successfully unregistered C:\Program Files\Common Files\Microsoft Shared\CDO\CDOEX.dll from the MS 2003 Sharepoint server and the 'Could not...
0
9641
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.