Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5935417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:15:05+00:00 2026-05-22T15:15:05+00:00

I have an email account on a remote server. I created an application that

  • 0

I have an email account on a remote server.
I created an application that utilizes outlook interop api to search for an email with specific subject than extract an attachment from it and save it to a directory.

Everything is fine when I run that application manually.
But when I create a scheduled task for this application, I get

Stack:
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(System.RuntimeType)
   at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(System.RuntimeType)
   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(System.RuntimeType, System.Object[], Boolean)
   at System.RuntimeTypeHandle.CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)
   at System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean, Boolean, Boolean, Boolean)
   at System.Activator.CreateInstance(System.Type, Boolean)
   at PocketDataFromEmail.EmailManager..ctor()
   at MyApp.Program.Main(System.String[])

It is said that outlook is not suitable for that kind of scenarios:
Is Interop.Outlook multithreaded?

Any ideas on how to check the inbox of an exchange account and extract attachments without using outlook interop api?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:15:06+00:00Added an answer on May 22, 2026 at 3:15 pm

    Would Exchange Web Services be an option?

    http://msdn.microsoft.com/en-us/library/dd877045.aspx

    There is also MAPI, though it is older technology, and I recall it wasn’t that fun to use:

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&displaylang=en

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array of input strings that contains either email addresses or account
i have an application that uses SMTP to send emails from an yahoo account.
I have an email account set up that triggers a python script whenever it
I have a windows service that checks an email account and then saves off
I have multiple email addresses linked to my gmail account. I am signed up
Hi i am testing android E-mail application . I have configured an Exchange account
I have a table like this: |sub_account|name|email| |-----------|----|-----| // same account and same name:
I have a remote server to which I login using ssh. Is there a
I have a big user database with a lot of spammy email account, like
I found a perl script that checks an email account and forwards the contents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.