Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDO error handling


Message #1 by Eli Schilling <eschilli@t...> on Tue, 12 Jun 2001 11:02:11 -0700
I have a form that retrieves info from my exchange information store based

on user input.  However, there are occasions when a person will misspell the

user's name and they get an ugly page saying "MAPI_E_NOT_FOUND" and they

don't know what is going on.



What can I do to check the name, if it is found then proceed, otherwise

return a specific page saying it could not be found, please try again?



Thanks,

Eli



Message #2 by "Siegfried Weber" <sweber@c...> on Wed, 13 Jun 2001 00:03:34 +0200
Check if the particular error occurs and display your own error message

page.



</Siegfried>



> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Tuesday, June 12, 2001 8:02 PM

> To: ASP CDO

> Subject: [asp_cdo] CDO error handling

>

>

> I have a form that retrieves info from my exchange

> information store based

> on user input.  However, there are occasions when a person

> will misspell the

> user's name and they get an ugly page saying

> "MAPI_E_NOT_FOUND" and they

> don't know what is going on.

>

> What can I do to check the name, if it is found then proceed,

> otherwise

> return a specific page saying it could not be found, please try again?

>

> Thanks,

> Eli

>

>

Message #3 by Eli Schilling <eschilli@t...> on Tue, 12 Jun 2001 16:08:58 -0700
I hate to sound ignorant but....



How do I check for a particular error?



Thanks



-----Original Message-----

From: Siegfried Weber [mailto:sweber@c...]

Sent: Tuesday, June 12, 2001 3:04 PM

To: ASP CDO

Subject: [asp_cdo] RE: CDO error handling





Check if the particular error occurs and display your own error message

page.



</Siegfried>



> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Tuesday, June 12, 2001 8:02 PM

> To: ASP CDO

> Subject: [asp_cdo] CDO error handling

>

>

> I have a form that retrieves info from my exchange

> information store based

> on user input.  However, there are occasions when a person

> will misspell the

> user's name and they get an ugly page saying

> "MAPI_E_NOT_FOUND" and they

> don't know what is going on.

>

> What can I do to check the name, if it is found then proceed,

> otherwise

> return a specific page saying it could not be found, please try 

again?

>

> Thanks,

> Eli

>

>=20
Message #4 by "Siegfried Weber" <sweber@c...> on Wed, 13 Jun 2001 01:46:07 +0200
Something like this should do the trick (note that you need to change

the logon method parameters to fit your needs):



On Error Resume Next

Err.Clear

objSession.Logon "", "", False, True



' Check CDO session

If Err.Number =3D 0 Then

  ' your code after a sucessful logon goes here

Else

  ' do anything else you like here

End If



</Siegfried>



> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Wednesday, June 13, 2001 1:09 AM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> I hate to sound ignorant but....

>

> How do I check for a particular error?

>

> Thanks

>

> -----Original Message-----

> From: Siegfried Weber [mailto:sweber@c...]

> Sent: Tuesday, June 12, 2001 3:04 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> Check if the particular error occurs and display your own

> error message

> page.

>

> </Siegfried>

>

> > -----Original Message-----

> > From: Eli Schilling [mailto:eschilli@t...]

> > Sent: Tuesday, June 12, 2001 8:02 PM

> > To: ASP CDO

> > Subject: [asp_cdo] CDO error handling

> >

> >

> > I have a form that retrieves info from my exchange

> > information store based

> > on user input.  However, there are occasions when a person

> > will misspell the

> > user's name and they get an ugly page saying

> > "MAPI_E_NOT_FOUND" and they

> > don't know what is going on.

> >

> > What can I do to check the name, if it is found then proceed,

> > otherwise

> > return a specific page saying it could not be found, please

> try again?

> >

> > Thanks,

> > Eli

> >

> >

Message #5 by Eli Schilling <eschilli@t...> on Tue, 12 Jun 2001 16:52:45 -0700
The problem I'm having is not with the logon, rather, its during the

resolution of the user input.



<%

objRecipient.Resolve

%>



If a person misspells the recipients name they wind up at a "The page 

cannot

be displayed"  I would rather be able to catch this and redirect them 

to a

page that gives them a more specific error.



Thanks!!



-----Original Message-----

From: Siegfried Weber [mailto:sweber@c...]

Sent: Tuesday, June 12, 2001 4:46 PM

To: ASP CDO

Subject: [asp_cdo] RE: CDO error handling





Something like this should do the trick (note that you need to change

the logon method parameters to fit your needs):



On Error Resume Next

Err.Clear

objSession.Logon "", "", False, True



' Check CDO session

If Err.Number =3D 0 Then

  ' your code after a sucessful logon goes here

Else

  ' do anything else you like here

End If



</Siegfried>



> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Wednesday, June 13, 2001 1:09 AM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> I hate to sound ignorant but....

>

> How do I check for a particular error?

>

> Thanks

>

> -----Original Message-----

> From: Siegfried Weber [mailto:sweber@c...]

> Sent: Tuesday, June 12, 2001 3:04 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> Check if the particular error occurs and display your own

> error message

> page.

>

> </Siegfried>

>

> > -----Original Message-----

> > From: Eli Schilling [mailto:eschilli@t...]

> > Sent: Tuesday, June 12, 2001 8:02 PM

> > To: ASP CDO

> > Subject: [asp_cdo] CDO error handling

> >

> >

> > I have a form that retrieves info from my exchange

> > information store based

> > on user input.  However, there are occasions when a person

> > will misspell the

> > user's name and they get an ugly page saying

> > "MAPI_E_NOT_FOUND" and they

> > don't know what is going on.

> >

> > What can I do to check the name, if it is found then proceed,

> > otherwise

> > return a specific page saying it could not be found, please

> try again?

> >

> > Thanks,

> > Eli

> >

> >

Message #6 by Eli Schilling <eschilli@t...> on Tue, 12 Jun 2001 17:01:33 -0700
Please disregard my last message, I typed it but didn't mean to send 

it.  I

figured out what I needed.



Thanks Siegfried!!!



-----Original Message-----

From: Eli Schilling [mailto:eschilli@t...]

Sent: Tuesday, June 12, 2001 4:53 PM

To: ASP CDO

Subject: [asp_cdo] RE: CDO error handling





The problem I'm having is not with the logon, rather, its during the

resolution of the user input.



<%

objRecipient.Resolve

%>



If a person misspells the recipients name they wind up at a "The page 

cannot

be displayed"  I would rather be able to catch this and redirect them 

to a

page that gives them a more specific error.



Thanks!!



-----Original Message-----

From: Siegfried Weber [mailto:sweber@c...]

Sent: Tuesday, June 12, 2001 4:46 PM

To: ASP CDO

Subject: [asp_cdo] RE: CDO error handling





Something like this should do the trick (note that you need to change

the logon method parameters to fit your needs):



On Error Resume Next

Err.Clear

objSession.Logon "", "", False, True



' Check CDO session

If Err.Number =3D 0 Then

  ' your code after a sucessful logon goes here

Else

  ' do anything else you like here

End If



</Siegfried>



> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Wednesday, June 13, 2001 1:09 AM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> I hate to sound ignorant but....

>

> How do I check for a particular error?

>

> Thanks

>

> -----Original Message-----

> From: Siegfried Weber [mailto:sweber@c...]

> Sent: Tuesday, June 12, 2001 3:04 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> Check if the particular error occurs and display your own

> error message

> page.

>

> </Siegfried>

>

> > -----Original Message-----

> > From: Eli Schilling [mailto:eschilli@t...]

> > Sent: Tuesday, June 12, 2001 8:02 PM

> > To: ASP CDO

> > Subject: [asp_cdo] CDO error handling

> >

> >

> > I have a form that retrieves info from my exchange

> > information store based

> > on user input.  However, there are occasions when a person

> > will misspell the

> > user's name and they get an ugly page saying

> > "MAPI_E_NOT_FOUND" and they

> > don't know what is going on.

> >

> > What can I do to check the name, if it is found then proceed,

> > otherwise

> > return a specific page saying it could not be found, please

> try again?

> >

> > Thanks,

> > Eli

> >

> >=20
Message #7 by "Siegfried Weber" <sweber@c...> on Wed, 13 Jun 2001 02:10:11 +0200
IIRC, the CDO 1.21 recipients collection does have a property to check

if a name couldn't get resolved. Don't have the docs handy but a search

for a property "Resolved" should bring it up.



</Siegfried>





> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Wednesday, June 13, 2001 1:53 AM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> The problem I'm having is not with the logon, rather, its during the

> resolution of the user input.

>

> <%

> objRecipient.Resolve

> %>

>

> If a person misspells the recipients name they wind up at a

> "The page cannot

> be displayed"  I would rather be able to catch this and

> redirect them to a

> page that gives them a more specific error.

>

> Thanks!!

>

> -----Original Message-----

> From: Siegfried Weber [mailto:sweber@c...]

> Sent: Tuesday, June 12, 2001 4:46 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> Something like this should do the trick (note that you need to change

> the logon method parameters to fit your needs):

>

> On Error Resume Next

> Err.Clear

> objSession.Logon "", "", False, True

>

> ' Check CDO session

> If Err.Number =3D 0 Then

>   ' your code after a sucessful logon goes here

> Else

>   ' do anything else you like here

> End If

>

> </Siegfried>

>

> > -----Original Message-----

> > From: Eli Schilling [mailto:eschilli@t...]

> > Sent: Wednesday, June 13, 2001 1:09 AM

> > To: ASP CDO

> > Subject: [asp_cdo] RE: CDO error handling

> >

> >

> > I hate to sound ignorant but....

> >

> > How do I check for a particular error?

> >

> > Thanks

> >

> > -----Original Message-----

> > From: Siegfried Weber [mailto:sweber@c...]

> > Sent: Tuesday, June 12, 2001 3:04 PM

> > To: ASP CDO

> > Subject: [asp_cdo] RE: CDO error handling

> >

> >

> > Check if the particular error occurs and display your own

> > error message

> > page.

> >

> > </Siegfried>

> >

> > > -----Original Message-----

> > > From: Eli Schilling [mailto:eschilli@t...]

> > > Sent: Tuesday, June 12, 2001 8:02 PM

> > > To: ASP CDO

> > > Subject: [asp_cdo] CDO error handling

> > >

> > >

> > > I have a form that retrieves info from my exchange

> > > information store based

> > > on user input.  However, there are occasions when a person

> > > will misspell the

> > > user's name and they get an ugly page saying

> > > "MAPI_E_NOT_FOUND" and they

> > > don't know what is going on.

> > >

> > > What can I do to check the name, if it is found then proceed,

> > > otherwise

> > > return a specific page saying it could not be found, please

> > try again?

> > >

> > > Thanks,

> > > Eli

> > >

> > >

>=20
Message #8 by "Siegfried Weber" <sweber@c...> on Wed, 13 Jun 2001 02:11:10 +0200
Too late ;-) but glad to hear you got it working.



</Siegfried>



> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Wednesday, June 13, 2001 2:02 AM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> Please disregard my last message, I typed it but didn't mean

> to send it.  I

> figured out what I needed.

>

> Thanks Siegfried!!!

>

> -----Original Message-----

> From: Eli Schilling [mailto:eschilli@t...]

> Sent: Tuesday, June 12, 2001 4:53 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> The problem I'm having is not with the logon, rather, its during the

> resolution of the user input.

>

> <%

> objRecipient.Resolve

> %>

>

> If a person misspells the recipients name they wind up at a

> "The page cannot

> be displayed"  I would rather be able to catch this and

> redirect them to a

> page that gives them a more specific error.

>

> Thanks!!

>

> -----Original Message-----

> From: Siegfried Weber [mailto:sweber@c...]

> Sent: Tuesday, June 12, 2001 4:46 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDO error handling

>

>

> Something like this should do the trick (note that you need to change

> the logon method parameters to fit your needs):

>

> On Error Resume Next

> Err.Clear

> objSession.Logon "", "", False, True

>

> ' Check CDO session

> If Err.Number =3D 0 Then

>   ' your code after a sucessful logon goes here

> Else

>   ' do anything else you like here

> End If

>

> </Siegfried>

>

> > -----Original Message-----

> > From: Eli Schilling [mailto:eschilli@t...]

> > Sent: Wednesday, June 13, 2001 1:09 AM

> > To: ASP CDO

> > Subject: [asp_cdo] RE: CDO error handling

> >

> >

> > I hate to sound ignorant but....

> >

> > How do I check for a particular error?

> >

> > Thanks

> >

> > -----Original Message-----

> > From: Siegfried Weber [mailto:sweber@c...]

> > Sent: Tuesday, June 12, 2001 3:04 PM

> > To: ASP CDO

> > Subject: [asp_cdo] RE: CDO error handling

> >

> >

> > Check if the particular error occurs and display your own

> > error message

> > page.

> >

> > </Siegfried>

> >

> > > -----Original Message-----

> > > From: Eli Schilling [mailto:eschilli@t...]

> > > Sent: Tuesday, June 12, 2001 8:02 PM

> > > To: ASP CDO

> > > Subject: [asp_cdo] CDO error handling

> > >

> > >

> > > I have a form that retrieves info from my exchange

> > > information store based

> > > on user input.  However, there are occasions when a person

> > > will misspell the

> > > user's name and they get an ugly page saying

> > > "MAPI_E_NOT_FOUND" and they

> > > don't know what is going on.

> > >

> > > What can I do to check the name, if it is found then proceed,

> > > otherwise

> > > return a specific page saying it could not be found, please

> > try again?

> > >

> > > Thanks,

> > > Eli

> > >

> > >


  Return to Index