Exchange connect .net 1.1 vs 2.0

I’m confused what my issue is. Same code and most recent copy of aspose.network, 2.0 connects fine, but 1.1 says Bad Request?


Dim client As ExchangeClient = New ExchangeClient("http://server/exchange/user", “username”, “password”, “domain”)
Dim msgCollection As ExchangeMessageInfoCollection = client.ListMessages(client.MailboxInfo.InboxUri)
dgEmail.DataSource = msgCollection


Error in 1.1 (2.0 loads messages fine)

The remote server returned an error: (400) Bad Request.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (400) Bad Request.

Source Error:

Line 25: Private Sub dgEmail_NeedDataSource(ByVal [source] As Object, ByVal e As Telerik.WebControls.GridNeedDataSourceEventArgs)
Line 26: Dim client As ExchangeClient = New ExchangeClient("http://server/exchange/user", "user", "password", "domain")
Line 27: Dim msgCollection As ExchangeMessageInfoCollection = client.ListMessages(client.MailboxInfo.InboxUri)
Line 28: dgEmail.DataSource = msgCollection
Line 29: End Sub

Source File: D:\hart11dev\content\mail.aspx Line: 27

Stack Trace:

[WebException: The remote server returned an error: (400) Bad Request.]
Aspose.Network.Exchange.ExchangeClient.x02b56011810c316c(String x8b5b49efcd08ae0a, String x196c05a09a123da6) +312
Aspose.Network.Exchange.ExchangeClient.ListMessages(String folder, Boolean recursive) +70
Aspose.Network.Exchange.ExchangeClient.ListMessages(String folder) +7
ASP.mail_aspx.dgEmail_NeedDataSource(Object source, GridNeedDataSourceEventArgs e) in D:\hart11dev\content\mail.aspx:27
Telerik.WebControls.RadGrid.OnNeedDataSource(GridNeedDataSourceEventArgs e) +105
Telerik.WebControls.RadGrid.ObtainDataSource(GridRebindReason rebindReason, Boolean IsBoundUsingDataSourceId) +100
Telerik.WebControls.RadGrid.AutoDataBind(GridRebindReason rebindReason) +69
Telerik.WebControls.RadGrid.OnLoad(EventArgs e) +208
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +744

I just noticed the Dll version on the 1.1 build is 4.6.0 but the 2.0 build is 6.4.0? Is the 1.1 build not updated ever?

Hi,

I am sorry, but due to some issues, we have not updated the 1.1 dlls. Would it be feasible for you to use the 2.0 or later .NET dlls instead of 1.1? Could you please also send me the order id and license file by using the “Contact” --> “send saqib.razzaq an email” button on this thread?