Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Outlook with Window service?

Outlook with Window service?

Scheduled Pinned Locked Moved C#
helpwindows-adminquestionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sinanju
    wrote on last edited by
    #1

    I am working with the office outlook, it is working fine with console version, but when i use it with window service, it does not work. I am getting the following log entry Event Type: Error Event Source: Microsoft Office 11 Event Category: None Event ID: 2001 Date: 8/16/2006 Time: 6:38:46 PM User: N/A Computer: XYZ Description: The description for Event ID ( 2001 ) in Source ( Microsoft Office 11 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Microsoft Office Outlook, . Any idea???

    U 1 Reply Last reply
    0
    • S sinanju

      I am working with the office outlook, it is working fine with console version, but when i use it with window service, it does not work. I am getting the following log entry Event Type: Error Event Source: Microsoft Office 11 Event Category: None Event ID: 2001 Date: 8/16/2006 Time: 6:38:46 PM User: N/A Computer: XYZ Description: The description for Event ID ( 2001 ) in Source ( Microsoft Office 11 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Microsoft Office Outlook, . Any idea???

      U Offline
      U Offline
      unclepaul
      wrote on last edited by
      #2

      Windows service runs in a separate user context, i think this is the root cause of the problem. Try running it under the same user as your console application (your login id). Also try turning on "allow this service to interact with the desktop" feature.

      S 1 Reply Last reply
      0
      • U unclepaul

        Windows service runs in a separate user context, i think this is the root cause of the problem. Try running it under the same user as your console application (your login id). Also try turning on "allow this service to interact with the desktop" feature.

        S Offline
        S Offline
        sinanju
        wrote on last edited by
        #3

        Thanx for the reply but these solutions don't seem to work. The actual line of error is Outlook.MAPIFolder objFolder; Outlook.NameSpace objNamespace; objFolder = objNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);//HERE here objFolder.Items.Count = 0. While in case of console application im getting the actual no of mails.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups