Getting exception on server when using RSA via CSharp-easy-RSA-PEM
问题 I have used https://github.com/jrnker/CSharp-easy-RSA-PEM for RSA implementation in my mvc project. It's working fine in my local machine in IIS & also via visual studio but when I deploy my application on server, it gives me below exception. "System.NullReferenceException: Object reference not set to an instance of an object.\r\n at CoreEntities.Classes.Utility.RSADecrypt(String input)\r\n at WebAPI.Attributes.ApiAuthorizeAttribute.Authorize(HttpActionContext actionContext)" My code is :