2022-09-06T07:37:26 :: Error in calculating decision with adjustment for Loan Amount., Error Message: The process cannot access the file 'C:\home\site\wwwroot\Logs_UtilityRequest\ScoreModel_09062022_0_To_12.txt' because it is being used by another process. | Exception: System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\Logs_UtilityRequest\ScoreModel_09062022_0_To_12.txt' because it is being used by another process. at ScoreModel.Common.Helper.LoggerHelper.Log(String msg, String folderName) at ScoreModel.Business.Logic.Helper.UtilityHelper.LogUtilityRequestAndResponse(UtilityModel model, UtilityResponseModel response) at ScoreModel.Business.Logic.Helper.UtilityHelper.CalculateLoanAmountDecision(UtilityModel model, Tenant tenant, Location location, Boolean isForTest) at ScoreModel.Business.Logic.UtilityService.CalculateLoanAmountDecision(UtilityModel model, ModelStateDictionary modelState) at ScoreModel.API.Controllers.UtilityController.DecisionWithLoanAmount(UtilityModel model) 2022-09-06T08:32:33 :: Getting setting ApplicationInsights.InstrumentationKey which was not yet in cache. 2022-09-06T08:32:34 :: Getting setting ScoreModel.DataContext.ConnectionString which was not yet in cache. 2022-09-06T08:32:45 :: Getting setting ScoreModel.Filters.RequireHttps which was not yet in cache. 2022-09-06T08:32:51 :: System Parameter Count: 6 2022-09-06T08:32:51 :: System Parameter Count: 6 2022-09-06T08:32:51 :: OWIN Started 2022-09-06T08:32:52 :: Getting setting ApplicationInsights.InstrumentationKey which was not yet in cache. 2022-09-06T08:32:52 :: Getting setting ScoreModel.DataContext.ConnectionString which was not yet in cache. 2022-09-06T08:32:57 :: Getting setting ApplicationInsights.InstrumentationKey which was not yet in cache. 2022-09-06T08:32:57 :: Getting setting ScoreModel.DataContext.ConnectionString which was not yet in cache. 2022-09-06T08:33:03 :: Getting setting ScoreModel.Filters.RequireHttps which was not yet in cache. 2022-09-06T08:33:09 :: System Parameter Count: 6 2022-09-06T08:33:09 :: System Parameter Count: 6 2022-09-06T08:33:09 :: OWIN Started 2022-09-06T08:33:09 :: Getting setting ScoreModel.Filters.RequireHttps which was not yet in cache. 2022-09-06T08:33:15 :: System Parameter Count: 6 2022-09-06T08:33:15 :: System Parameter Count: 6 2022-09-06T08:33:15 :: OWIN Started 2022-09-06T08:34:55 :: Getting setting ScoreModel.ShowUtilityValuesInResult which was not yet in cache. 2022-09-06T08:35:53 :: Getting setting ScoreModel.ShowUtilityValuesInResult which was not yet in cache. 2022-09-06T08:48:24 :: Getting setting ScoreModel.ShowUtilityValuesInResult which was not yet in cache. 2022-09-06T09:14:01 :: Error authenticating user, Error Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) Exception: System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) ---> System.ComponentModel.Win32Exception (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.Open() at WebMatrix.Data.Database.EnsureConnectionOpen() at WebMatrix.Data.Database.QueryValue(String commandText, Object[] args) at WebMatrix.WebData.DatabaseWrapper.QueryValue(String commandText, Object[] parameters) at WebMatrix.WebData.SimpleMembershipProvider.GetUserId(IDatabase db, String userTableName, String userNameColumn, String userIdColumn, SimpleMembershipProviderCasingBehavior casingBehavior, String userName) at WebMatrix.WebData.SimpleMembershipProvider.GetUserId(IDatabase db, String userName) at WebMatrix.WebData.SimpleMembershipProvider.VerifyUserNameHasConfirmedAccount(IDatabase db, String username, Boolean throwException) at WebMatrix.WebData.SimpleMembershipProvider.ValidateUser(String username, String password) at ScoreModel.API.BasicAuthHttpModule.AuthenticateUser(String credentials) ClientConnectionId:43879e19-b216-4b33-8bb1-8eb1a388c137 Error Number:10060,State:0,Class:20 Routing Destination:de83635462b2.tr25004.eastus1-a.worker.database.windows.net,11019 LineNo : 0 InnerException : System.ComponentModel.Win32Exception (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond