Invalid algorithm specified with ClickOnce

Add-in Express™ Support Service
That's what is more important than anything else

Invalid algorithm specified with ClickOnce
 
Lars Black




Posts: 8
Joined: 2013-04-10
Hi

As some other has reported in this forum some time ago, I also started getting the "Invalid algorithm specified" when trying to publish my addin as a ClickOnce.

I tried all suggestions from previously without luck and then tried to create a new addin to test - and for that, Publish worked without issues!

Then I tried step by step to add modules from my other addin until it failed and in the end, I figured out what is causing the problem.

If I create a complete new addin and add the NuGet package "IdentityModel" for OpenId connect (doesn't matter if it is v5.2 or 6.0), publish will fail. IdentityModel adds a lot of dependencies but as soon as I uninstall IdentityModel (and clear my Pushlish folder), everything works again.

I hope you can reproduce the error and come up with a solution.

Cheers
Lars
Posted 05 Apr, 2022 08:09:19 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Lars,

Does it work with a test certificate?

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Apr, 2022 03:29:44 Top
Lars Black




Posts: 8
Joined: 2013-04-10
No, tried with different "real" and test certificates and as soon as I add IdentityModel, it failes, no matter what certificate.

Cheers
Lars
Posted 06 Apr, 2022 03:56:30 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Lars,

Could you send us a test project reproducing the issue? You can send it to the support email address; find it in {Add-in Express installation folder}\readme.txt; please make sure your email contains a link to this topic.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Apr, 2022 06:48:35 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Lars,

What .NET Framework version is specified in your project?

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Apr, 2022 06:58:51 Top
Lars Black




Posts: 8
Joined: 2013-04-10
Test project sent, .NET 4.7.2

Sample will publish fine until you add the IdentityModel nuget, then it fails with the algorithm error

Cheers
Lars
Posted 08 Apr, 2022 16:38:25 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Lars,

Although I reproduce the issue on my machine, we can't reproduce it on a development PC. Working on this.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 11 Apr, 2022 10:38:07 Top
gjvdkamp




Posts: 56
Joined: 2018-08-28
I use VS2017 to publish our add-in, haven't found another way yet.

One avenue that might explain things is the certificate provider, ours is a Sectigo AES256 pfx
Posted 11 Apr, 2022 18:34:38 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Lars,

Make sure IdentityModel.pdb is absent in the list of files to be published.

Does this help?

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 12 Apr, 2022 08:37:21 Top
Lars Black




Posts: 8
Joined: 2013-04-10
Hi Andrei

Indeed, deleting identitymodel.pdb allow me to publish files!

Thanks for your help

Cheers,
Lars
Posted 12 Apr, 2022 09:15:46 Top