ASP.NET MVC: “An internal error occurred.” when loading certificate bytes with X509Certificate2
问题 I have already spent a few hours to resolve this error. The weird thing is when I use this libraries independently, it works absolutely fine but when I integrate them with my ASP .NET MVC website, it start throwing the following exception. I have also used MachineKeySet flag based on suggestion here but still no luck. Could anyone please help me to get rid of this exception. Thanks. An internal error occurred. Description: An unhandled exception occurred during the execution of the current