The type exists in both 2 assemblies

Hello guys,

I have a issue that is error CS0433: The type ‘SignedXml’ exists in both ‘System.Security.Cryptography.Xml, Version=[7.0.0.0], Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ and ‘[System.Security], Version=[4.0.0.0], Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’

It happened when I use invoke code

Variable type System.Security.Cryptography.Xml.SignedXml in System.Security package does not have some function I need so I have to install System.Security.Cryptography.Xml package.

I have deleted System.Security package directly from Main.xaml but it doesn’t work.

Do you guys have any solution for that problem?

Hello @noob_dev

Did you try installing the namespace “System.Security.Cryptography.Xml” to the project?

Thanks

of course already installed this package mate, the problem is conflict between 2 packages

@noob_dev

Can you share a smaple xaml…because when i try the same at my end…it is not throwing any conflicts

Cheers

CodeWithuipath_PublicKeyString.zip (140.5 KB)
20.xml (5.2 KB)
you can change the argument path to the 20.xml then run the file Publickey mate.

The code in publickey.xaml I deliberately simulate this error