We have a licensed version of the Aspose.Net email libraries. We have been using version 5.4 in our product which includes a number of unit tests. We recently decided to update the Aspose library to 5.9. Unfortunately, as soon as we did, any unit tests we had which included an Aspose object started failing with an error message similar to the following:
Hi,
The tests build without issue. It’s when the tests execute that the error occurs:
- Open Visual Studio 2013 (I’m using Visual Studio Professional)
- From the menu select "Test > Run > All Tests"
Hi,
Hi,
We have attempted to run it on a number of different machines here, and most of them failed. However, we did find one machine where this has worked. We will investigate further and get back to you.
Hi,
After experimenting on different development machines in the office, we have been able to determine that the issue only occurs if Typemock is installed and Mocking Integration has been enabled in Visual Studio. If I disable Mocking Integration both tests pass.
Hi,
Thank you for sharing your feedback.
We have downloaded the Typemock and installed it at our end. After this, we have run the tests from your sample application and no error/exception is raised. Could you please re-verify if Typemock is the only reason behind this? We assume that after installing, Typemock is enabled by default in Visual studio. If it is not so, could you please guide us how to enable it in Visual Studio?
You will also need to do the following:
Hi,
What is the state of the bug EMAILNET-35052 ?
Hi,
Hi,
Yesterday i had the same problem with Aspose.Email 17.8
And @BigGriz23 solution worked for me but this is not good, because i can not disable TypeMock.
I want to know if someone working to solve this problem, because is quite big problem if every test involve this library is broken.
Thank you for contacting Aspose support team.
As mentioned in the previous post, we are afraid that still this issue is in queue for analysis and any update in this regard will be posted here immediately. We are sorry for the inconvenience caused in this regard.