A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Re-Installed Outlook 2003 - Now Get "An Object Can Not Be Found" E



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 2nd 06, 11:27 PM posted to microsoft.public.outlook.program_vba
RitaG
external usenet poster
 
Posts: 3
Default Re-Installed Outlook 2003 - Now Get "An Object Can Not Be Found" E

Hello.

I have a VB.Net program that monitors Outlook for emails within a group's
mailbox
(ppodata). My server crashed last week and I had to re-install Outllook 2003
with SP2. My .Net program worked fine until the re-install. When I now start
the .Net program I see Outlook opening and then my program stops running. I
placed some "write to a log file" statements within the code to isolate the
issue and the program is blowing up on line 4 of my code.

I don't understand why I'm getting this error message
"The operation failed. An object could not be found. Source of error:
Microsoft
Office Outlook " Main. PROGRAM HALTED".

It found the Outlook object but it's having a problem when I'm setting the
Outlook.MAPIFolder to oNS.Folders("ppodata").

Here's my code:
Dim oOutlook As Outlook.Application
oOutlook = New Outlook.Application
Dim oNS As Outlook.NameSpace = oOutlook.Session

*********** HERE's WHERE IT BLOWS UP ************
Dim oInbox As Outlook.MAPIFolder = oNS.Folders("ppodata")

Dim oItems As Outlook.Items = oInbox.Folders("Inbox").Items
Dim oItem As Outlook.MailItem

Any suggestion will be greatly appreciated!

By the way, it works fine on my PC.
Only on the production server does it blow up :-(.

Rita
  #2  
Old March 2nd 06, 11:50 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Re-Installed Outlook 2003 - Now Get "An Object Can Not Be Found" E

Do you have a .pst file in the current Outlook profile with a display name of "ppodata"? If not, that would explain why you'd get an error on that statement. Iterating the Namespace.Folders collection could be revealing.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"RitaG" wrote in message ...
Hello.

I have a VB.Net program that monitors Outlook for emails within a group's
mailbox
(ppodata). My server crashed last week and I had to re-install Outllook 2003
with SP2. My .Net program worked fine until the re-install. When I now start
the .Net program I see Outlook opening and then my program stops running. I
placed some "write to a log file" statements within the code to isolate the
issue and the program is blowing up on line 4 of my code.

I don't understand why I'm getting this error message
"The operation failed. An object could not be found. Source of error:
Microsoft
Office Outlook " Main. PROGRAM HALTED".

It found the Outlook object but it's having a problem when I'm setting the
Outlook.MAPIFolder to oNS.Folders("ppodata").

Here's my code:
Dim oOutlook As Outlook.Application
oOutlook = New Outlook.Application
Dim oNS As Outlook.NameSpace = oOutlook.Session

*********** HERE's WHERE IT BLOWS UP ************
Dim oInbox As Outlook.MAPIFolder = oNS.Folders("ppodata")

Dim oItems As Outlook.Items = oInbox.Folders("Inbox").Items
Dim oItem As Outlook.MailItem

Any suggestion will be greatly appreciated!

By the way, it works fine on my PC.
Only on the production server does it blow up :-(.

Rita

  #3  
Old March 3rd 06, 05:44 PM posted to microsoft.public.outlook.program_vba
RitaG
external usenet poster
 
Posts: 3
Default Re-Installed Outlook 2003 - Now Get "An Object Can Not Be Foun

Thanks for your response Sue.
I found a "Mailbox - PPOData.pst" in D:\Outlook (Outlook was installed on
the D: drive).
I copied the file and renamed it PPOData.pst but still got the same error.
I also tried renaming the copied file to Personal.pst but that didn't work
either.

I'm wondering if the issue could be that the .pst is on the D: drive - but
the install should allow for that.

"Sue Mosher [MVP-Outlook]" wrote:

Do you have a .pst file in the current Outlook profile with a display name of "ppodata"? If not, that would explain why you'd get an error on that statement. Iterating the Namespace.Folders collection could be revealing.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"RitaG" wrote in message ...
Hello.

I have a VB.Net program that monitors Outlook for emails within a group's
mailbox
(ppodata). My server crashed last week and I had to re-install Outllook 2003
with SP2. My .Net program worked fine until the re-install. When I now start
the .Net program I see Outlook opening and then my program stops running. I
placed some "write to a log file" statements within the code to isolate the
issue and the program is blowing up on line 4 of my code.

I don't understand why I'm getting this error message
"The operation failed. An object could not be found. Source of error:
Microsoft
Office Outlook " Main. PROGRAM HALTED".

It found the Outlook object but it's having a problem when I'm setting the
Outlook.MAPIFolder to oNS.Folders("ppodata").

Here's my code:
Dim oOutlook As Outlook.Application
oOutlook = New Outlook.Application
Dim oNS As Outlook.NameSpace = oOutlook.Session

*********** HERE's WHERE IT BLOWS UP ************
Dim oInbox As Outlook.MAPIFolder = oNS.Folders("ppodata")

Dim oItems As Outlook.Items = oInbox.Folders("Inbox").Items
Dim oItem As Outlook.MailItem

Any suggestion will be greatly appreciated!

By the way, it works fine on my PC.
Only on the production server does it blow up :-(.

Rita


  #4  
Old March 3rd 06, 06:16 PM posted to microsoft.public.outlook.program_vba
RitaG
external usenet poster
 
Posts: 3
Default Re-Installed Outlook 2003 - Now Get "An Object Can Not Be Foun

Sue - you are a life saver!!!

I found a "Mailbox - Ppodata.pst" file and changed the program to
Dim oInbox As Outlook.MAPIFolder = oNS.Folders("Mailbox - Ppodata")
and it worked !!

Thank you so much. I needed it for our production server that has a large
volume
of emails that get processed automatically.


"Sue Mosher [MVP-Outlook]" wrote:

Do you have a .pst file in the current Outlook profile with a display name of "ppodata"? If not, that would explain why you'd get an error on that statement. Iterating the Namespace.Folders collection could be revealing.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"RitaG" wrote in message ...
Hello.

I have a VB.Net program that monitors Outlook for emails within a group's
mailbox
(ppodata). My server crashed last week and I had to re-install Outllook 2003
with SP2. My .Net program worked fine until the re-install. When I now start
the .Net program I see Outlook opening and then my program stops running. I
placed some "write to a log file" statements within the code to isolate the
issue and the program is blowing up on line 4 of my code.

I don't understand why I'm getting this error message
"The operation failed. An object could not be found. Source of error:
Microsoft
Office Outlook " Main. PROGRAM HALTED".

It found the Outlook object but it's having a problem when I'm setting the
Outlook.MAPIFolder to oNS.Folders("ppodata").

Here's my code:
Dim oOutlook As Outlook.Application
oOutlook = New Outlook.Application
Dim oNS As Outlook.NameSpace = oOutlook.Session

*********** HERE's WHERE IT BLOWS UP ************
Dim oInbox As Outlook.MAPIFolder = oNS.Folders("ppodata")

Dim oItems As Outlook.Items = oInbox.Folders("Inbox").Items
Dim oItem As Outlook.MailItem

Any suggestion will be greatly appreciated!

By the way, it works fine on my PC.
Only on the production server does it blow up :-(.

Rita


  #5  
Old March 6th 06, 02:11 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Re-Installed Outlook 2003 - Now Get "An Object Can Not Be Foun

As you found out, renaming a .pst file does not affect the display name, which is what Outlook users in Namespace.Folders. Glad you got it working.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"RitaG" wrote in message ...
Sue - you are a life saver!!!

I found a "Mailbox - Ppodata.pst" file and changed the program to
Dim oInbox As Outlook.MAPIFolder = oNS.Folders("Mailbox - Ppodata")
and it worked !!

Thank you so much. I needed it for our production server that has a large
volume
of emails that get processed automatically.


"Sue Mosher [MVP-Outlook]" wrote:

Do you have a .pst file in the current Outlook profile with a display name of "ppodata"? If not, that would explain why you'd get an error on that statement. Iterating the Namespace.Folders collection could be revealing.

"RitaG" wrote in message ...
Hello.

I have a VB.Net program that monitors Outlook for emails within a group's
mailbox
(ppodata). My server crashed last week and I had to re-install Outllook 2003
with SP2. My .Net program worked fine until the re-install. When I now start
the .Net program I see Outlook opening and then my program stops running. I
placed some "write to a log file" statements within the code to isolate the
issue and the program is blowing up on line 4 of my code.

I don't understand why I'm getting this error message
"The operation failed. An object could not be found. Source of error:
Microsoft
Office Outlook " Main. PROGRAM HALTED".

It found the Outlook object but it's having a problem when I'm setting the
Outlook.MAPIFolder to oNS.Folders("ppodata").

Here's my code:
Dim oOutlook As Outlook.Application
oOutlook = New Outlook.Application
Dim oNS As Outlook.NameSpace = oOutlook.Session

*********** HERE's WHERE IT BLOWS UP ************
Dim oInbox As Outlook.MAPIFolder = oNS.Folders("ppodata")

Dim oItems As Outlook.Items = oInbox.Folders("Inbox").Items
Dim oItem As Outlook.MailItem

Any suggestion will be greatly appreciated!

By the way, it works fine on my PC.
Only on the production server does it blow up :-(.

Rita


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending email generates an "object not found" message. How to fix flint Outlook - Installation 5 September 22nd 08 01:39 AM
Error message "an object can't be found" when sending mail Vikes Outlook - Installation 7 February 21st 06 02:37 AM
Outlook Error - "An Object Not Found" [email protected] Outlook - General Queries 2 February 18th 06 04:26 AM
When I try send emails I receive the error "object not found" 57chevy pickup Outlook - General Queries 1 January 21st 06 05:04 AM
Error when Sending/Receiving - "Object could not be found" Cissy Outlook - Installation 0 January 17th 06 01:42 AM


All times are GMT +1. The time now is 12:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.