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 8049457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:47:27+00:00 2026-06-05T06:47:27+00:00

I am using Aspose.Email assembly to check a mail server for any received mails

  • 0

I am using Aspose.Email assembly to check a mail server for any received mails in the inbox. But the emailClient.ListMessages(emailClient.MailboxInfo.InboxUri) method in the code below returns the following error,

Error:

The remote server returned an error: (405) Method Not Allowed.

Code:

System.Net.NetworkCredential credential = new System.Net.NetworkCredential("username", "password", "domainname");

Aspose.Email.Exchange.ExchangeClient emailClient = new Aspose.Email.Exchange.ExchangeClient("MailserverUri", credential);

Aspose.Email.Exchange.ExchangeMessageInfoCollection messageInfoCollection = emailClient.ListMessages(emailClient.MailboxInfo.InboxUri);

stack trace:

 at Aspose.Email.Exchange.ExchangeClient.GetMailboxInfo(String mailbox)
 at Aspose.Email.Exchange.ExchangeClient.GetMailboxInfo()
 at Aspose.Email.Exchange.ExchangeClient.get_MailboxInfo()
 at ACS.PMO.MainForm.ProcessAction() in D:\Projects\MainForm.cs:line 54
 at ACS.PMO.ClientService.MCPClient.ExecuteProcess()

EDIT

Aspose.Email.Exchange.ExchangeClient emailClient = new Aspose.Email.Exchange.ExchangeClient("MailserverUri", credential);

The MailserverUri i targeted was Exchange web service.

  • 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-06-05T06:47:28+00:00Added an answer on June 5, 2026 at 6:47 am

    Finally i got it corrected…..

    ExchangeWebServiceClient should be used in case of Exchange webservice. Use this class instead of ExchangeClient.The server url is also different in case of EWS.The code i used to overcome the error is as follows,

     ExchangeWebServiceClient client = new ExchangeWebServiceClient("https://exchange-server-host/ews/Exchange.asmx", "username", "password", "domain");
    

    For further details do check the link below,

    http://www.aspose.com/community/forums/thread/301094/405-method-not-allowed-while-connecting-to-exchange-web-service.aspx

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

Sidebar

Related Questions

I'm using Aspose to handle PDFs and Word documents. Each time I'm about to
I have a C# .Net web app using MVC3. I am using Aspose to
Using SQL Server 2000 Table1 Id date --- ---------- 001 23/01/2012 002 25/01/2012 003
In my asp.net application, I am using Aspose.PDF for merging 2 pdf documents. I
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
Given the following code: using Aspose.Cells // {...} Workbook workbook = new Workbook(); Worksheet
I'm using the Aspose library to create an Excel document. Somewhere in some cell
I am using a third-party control (Aspose.Cells.GridWeb). It is basically a web based Excel
I am using Aspose cells to manipulate Excel spreadsheets. One of the types in
Using Sql Server 2005 Profiler, what events, columns, and filters do you trace to

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.