SQL Monitor not starting asp.net core app when installing in IIS
H_racing
Posts: 4 New member
Hi,
We are installing SQL Monitor on one of our servers and we cannot get it working when using IIS web server. If we choose the default SQL Monitor web server option it works fine, but when installing via IIS we get the HTTP Error 500.30 - ASP.NET Core app failed to start message.
We have tried installing the ASP.NET Core Module for IIS (version 6 or the latest version) and still get the error. We can see that the aspNetCore module has been installed as part of the SQL Montior web setup and is showing in IIS.
Any ideas would be really helpful.
Thanks.
We are installing SQL Monitor on one of our servers and we cannot get it working when using IIS web server. If we choose the default SQL Monitor web server option it works fine, but when installing via IIS we get the HTTP Error 500.30 - ASP.NET Core app failed to start message.
We have tried installing the ASP.NET Core Module for IIS (version 6 or the latest version) and still get the error. We can see that the aspNetCore module has been installed as part of the SQL Montior web setup and is showing in IIS.
Any ideas would be really helpful.
Thanks.
Tagged:
Best Answer
-
dkim1999 Posts: 85 Bronze 2Hi there,From this error message:2022-03-04 13:49:15,974 [ 1] ERROR RedGate.SqlMonitor.Common.Utilities.Windows.Certificates.CertificateStore - Access denied.Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: Access denied.at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(ReadOnlySpan`1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)It looks like the app pool identity user for the IIS Site doesn't have permission to access the certificates needed to communicate with the base monitor:
You could try a couple things - first try setting the Load User Profile to be True (seen at the bottom of the image of the Advanced Settings menu (right click on the application pool and choose Advanced Settings) and then restart the application pool and site and see if it works. Or alternatively try changing the Identity user (highlighted in the image above) to the same user that is running the base monitor service (also keeping the load user profile set to true).
Can you let me know if either of those troubleshooting steps helps?Thank you!David KimProduct Support Engineer
Answers
We will try that when we have some time.
Regards
A
That worked when we changed the account to the account running the base monitor. It also works when we use the LocalSystem identity too.
Thank you for your help on this.
Regards,
A