Hello,
I have an web api application which is working perfectly when i run the application. But getting error when deploy it in IIS.
Error: The maximum number of retries (6) was exceeded while executing database operations with 'SqlServerRetryingExecutionStrategy'. See the inner exception for the most recent failure.
Don't konw why I am getting this error. Can anyone help?
Amit MohantyPosted Nov 23, 2022, 10:10 AM
Don't know it will work for you or not. If 'NT AUTHORITY\SYSTEM' is not set to sysadmin role will cause some inner exception because in your local it's working but in IIS not. So run the below query and try. This may help you.
Deepak MPosted Nov 23, 2022, 2:27 PM
It worked. Thank you @Amit
Deepak MPosted Nov 22, 2022, 10:51 AM
@Naresh, I am using Sql Server database not Cosmos. And already go through the provided link.
Naresh BeniwalPosted Nov 22, 2022, 9:57 AM
https://stackoverflow.com/questions/58454224/maximum-number-of-retries-6-exceeded-while-executing-database-operations-with