I Published asp.net core web api 3.1 on azure app service. I am getting certificate from azure using default credentials method. it is working fine in local but production getting 500 error. help me
wha
Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Connection ID "11240984680117308671", Request ID "80000d00-0002-9c00-b63f-84710c7967bb": An unhandled exception was thrown by the application.Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The system cannot find the file specified.at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] data)at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData)at EntrustDataCard.Controllers.ApiController.GetCertificate(String uri, String name) in E:\Entrustproject\EntrustData-And-Api-1\EntrustDataCard\Controllers\ApiController.cs:line 85at lambda_method(Closure , Object , Object[] )at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()--- End of stack trace from previous location where exception was thrown ---at