WebException: The remote server returned an error: (500) on opening EWSClient (Java)

Hello,
I am using aspose-email version 18.11 with jdk16 classifier .

issue : when I call the EWSClient.getEWSCliet(“Exchange URL…XXX.asmx”,“UserName”,Password)
getting below error : Could you please help
java.lang.IllegalStateException: class com.aspose.email.system.exceptions.WebException: The remote server returned an error: (500) Internal Server Error.
com.aspose.email.internal.o.ab.b(Unknown Source)
com.aspose.email.internal.o.ab.a(Unknown Source)
com.aspose.email.internal.o.bh.a(Unknown Source)
com.aspose.email.internal.o.bi.invoke(Unknown Source)
com.aspose.email.system.d.a(Unknown Source)
com.aspose.email.internal.ex.c.a(Unknown Source)
com.aspose.email.internal.ah.g.run(SourceFile:66)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.rk.a(SourceFile:288)
at com.aspose.email.rk.a(SourceFile:354)
at com.aspose.email.EWSClient.getEWSClient(SourceFile:333)
at com.aspose.email.EWSClient.getEWSClient(SourceFile:281)
at com.aspose.email.EWSClient.getEWSClient(SourceFile:83)
at com.sgcib.bars.utils.TestOutLookConnection.checkMail(TestOutLookConnection.java:45)
at com.sgcib.bars.utils.TestOutLookConnection.main(TestOutLookConnection.java:32)
Caused by: class com.aspose.email.system.exceptions.WebException: The remote server returned an error: (500) Internal Server Error.

@Nkorrapo071811,

I have observed the issue shared by you and request you to please try using Aspose.Email for Java 19.12 on your end. In case there is still an issue then please share the Test account details with us that we may use on our end to help you further. Apparently, (500) Internal Server error is some issue related to your website you are trying to access.