![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |