Unable to display the folder.

P

priya815

HI FRIENDS,

i am sending mail throw MAPI from my VB application. after sending the mail
somtimes outlook 2003 get hanged with the following msg.

Unable to display the folder. Microsoft office outlook could not access the
specified folder location another application closed unexpectedly while using
your personal folders file ‘i:\mailbox.pst’. to prevent protential damage to
your personal folders file, it will not be available until you close all
applications currently using it.

any one can help me plz.

Thank you.
 
S

Sue Mosher [MVP-Outlook]

It might help if you showed a code snippet. I presume you're using Simple MAPI, not Outlook objects? You might want to consider using CDO for Windows instead.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
P

priya815 via OfficeKB.com

ur right i am using simple MAPI only.

sample code

With MAPIMessages1
.SessionID = Session 'MAPISession1.SessionID
.Compose
.MsgIndex = -1

'To address
.RecipIndex = 0
.RecipType = 1
.RecipDisplayName = "(e-mail address removed)"
.RecipAddress = "(e-mail address removed)"
.ResolveName

.MsgSubject = "Mail SUbject"
.MsgNoteText = "Mail Message"
.Send False
end with

some times it is working. in outlook 2003 only i am facing this problam.

Thank you.

It might help if you showed a code snippet. I presume you're using Simple MAPI, not Outlook objects? You might want to consider using CDO for Windows instead.
HI FRIENDS,
[quoted text clipped - 10 lines]
Thank you.
 
S

Sue Mosher [MVP-Outlook]

You're always going to encounter security prompts with Outlook 2003 using Simple MAPI. That's why I suggested that you might want to use CDO for Windows instead. See http://www.outlookcode.com/d/sec.htm for other options.

BTW, you went a little heavy on the snipping and omitted any reference to your original problem.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



priya815 via OfficeKB.com said:
ur right i am using simple MAPI only.

sample code

With MAPIMessages1
.SessionID = Session 'MAPISession1.SessionID
.Compose
.MsgIndex = -1

'To address
.RecipIndex = 0
.RecipType = 1
.RecipDisplayName = "(e-mail address removed)"
.RecipAddress = "(e-mail address removed)"
.ResolveName

.MsgSubject = "Mail SUbject"
.MsgNoteText = "Mail Message"
.Send False
end with

some times it is working. in outlook 2003 only i am facing this problam.

Thank you.

It might help if you showed a code snippet. I presume you're using Simple MAPI, not Outlook objects? You might want to consider using CDO for Windows instead.
HI FRIENDS,
[quoted text clipped - 10 lines]
Thank you.
 
P

priya815 via OfficeKB.com

Thank you very much.

i have changed my code to CDO, but i ididnt check it.

:)

Thank you.

bye
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top