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
Prev Previous Post   Next Post Next
  #1  
Old March 2nd 06, 10: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
 




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 12:39 AM
Error message "an object can't be found" when sending mail Vikes Outlook - Installation 7 February 21st 06 01:37 AM
Outlook Error - "An Object Not Found" [email protected] Outlook - General Queries 2 February 18th 06 03:26 AM
When I try send emails I receive the error "object not found" 57chevy pickup Outlook - General Queries 1 January 21st 06 04:04 AM
Error when Sending/Receiving - "Object could not be found" Cissy Outlook - Installation 0 January 17th 06 12:42 AM


All times are GMT +1. The time now is 03:50 AM.


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.