Click here to Skip to main content
15,890,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When using the exe file in other machines, the below error is available. The exe is created using C# code.

This file does not have a valid digital signature that verifies its publisher. You should only run software from publishers you trust.

This should be fixed by adding the certificates. Can you pls help with this?

What I have tried:

I tried adding the Certificate from the solution, but that didn't work
Posted
Updated 20-Dec-17 2:02am

1 solution

Adding the certificate to the solution should resolve what you need.
If it didn't, then most likely the problem IS THE CERTIFICATE.

The certificates created automaticaly by the Visual Studio don't have a full cascade of CA's (Certificate Authorities) and therefore cannot be used as a base for Full Trust Application Certification.

By using then you may notice that your Applications gain a PublicKeyToken to their references instead of "PublicKeyToken=null"; but that is not what qualifies the software as Full Trust.

To do that you need a certificate fully qualified, with a chain os certification and a CA. That CA needs to be on the trust chain. If you here installing-a-self-signed-certificate-as-a-trusted-root-ca-in-windows-vista you'll see the CA's installed on Windows, and the CA must be there - either because it's a trusted CA native to windows or because you added it manualy (to the client machine).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900