0 votes
by (160 points)

Applies to: Rebex Secure Mail
by (150k points)
I just tried this with a newly-created VS 2022 project (a .NET 6.0 console app), and I am unable to reproduce this issue. Where exactly do these error appear, and which version of VS 2022 do you use?

1 Answer

0 votes
by (160 points)

by (160 points)
Ok. I discovered that if I unreferenced the other references, then added rebex, then added the others I was able to add the assemblies from rebex.

However I get this error as stated earlier when trying to call a method that references i.e: imap dll, i get this error:
Could not load file or assembly 'Rebex.Imap, Version=6.0.8314.0, Culture=neutral, PublicKeyToken=1c4638788972655d'. The system cannot find the file specified.
by (160 points)
Ok, this last problem. After I did a Clean and build again, the assembly was found at runtime, and everything now works.

A lot of different problems but at least I now can focus on what's important. Code.

KKS
by (150k points)
Thanks for the update!
I'm afraid this problem is not related to Rebex assemblies - it loooks like one of Visual Studio's quirks. See the results of the corresponding Google search:
https://www.google.com/search?q=visual+studio+"a+task+was+canceled"+errors

Usually, cleaning and rebuilding helps. Restoring packages might help as well. Restarting Visual Studio is another commonly-used workaround.

If there was any indication that this is a Rebex issue, we would look into it, but we need to be able to reproduce the issue first.
...