Named Pipes Provider: Could not open a connection to SQL Server [2].

System.Data.SqlClient.SqlException: Named Pipes Provider: Could not open a connection to SQL Server [2].

System.Data.SqlClient.SqlException (0x80131904): Named Pipes Provider: Could not open a connection to SQL Server [2]. 
   at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__180_0(Task`1 result)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<ExecuteStoreQueryInternalAsync>d__73`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
   at System.Data.Entity.Core.Objects.ObjectContext.<ExecuteInTransactionAsync>d__3d`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
   at System.Data.Entity.Core.Objects.ObjectContext.<ExecuteStoreQueryReliablyAsync>d__70`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
   at System.Data.Entity.Internal.LazyAsyncEnumerator`1.<FirstMoveNextAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.<ForEachAsync>d__5`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OOPRepository.Common.UserSettings.<LoadbireportdashboardRepo>d__7.MoveNext() in D:\30.10.2024\OOP\OOPRepository\Common\UserSettings.cs:line 171
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at OOP.Common.ResourceServer.Controllers.UserSettingsController.<Loadbireportdashboard>d__8.MoveNext() in D:\30.10.2024\OOP\OOP.Common.ResourceServer\Controllers\UserSettingsController.cs:line 126
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
ClientConnectionId:79eecbec-7d1b-4c30-8032-f83af6994b87
Error Number:2,State:1,Class:16
		

Logged on Tuesday, August 19, 2025 at 2:30:22 PM

See also:

Server Variables

NameValue
ALL_HTTPHTTP_CONNECTION:close HTTP_CONTENT_TYPE:application/json HTTP_ACCEPT:application/json, text/javascript, */*; q=0.01 HTTP_ACCEPT_ENCODING:gzip, deflate, br, zstd HTTP_ACCEPT_LANGUAGE:en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7 HTTP_AUTHORIZATION:Bearer vaV4a75_2xXDBs-0WOYnHztPn8BFGnSYw7174dTondT5Pz2-1X_Nl9iWV3OdnDM8-svjU56bKlDCDLYhNal8mdJHzCynjdM5b644yzUr9DtH68BXfcq7iCWuHl3lsslWD_G56Zk4YH2CPnRTHJlzgDsNYScim0QwM11IoNQLavClXpnrhaCyKi71JXn1gARw2aBTGXSjXQRJxHDDUzVbjUS8rgZjqPUisP4KBkM17ZOOP7D2UN2EIOab-GCthukhoniDxf2N9R5lOBJHhGcuHJSOEWEVTAo3Lkjyq2vAt8t6klGiVioYANIJTMdQWXWmS-5Rlq2A832rcZyXbYjM66FAH0Rr35-l7AJVMdELZYjlJ7HB2YZrc5lzlMmPm3aoeADssaC0U_GSKpCrTLoBb4KP6zsUIVr30DxbqlvnetD8KzHp1VKULCV4EO7ONah2H3XHYle0U_9BIJpfp-3c3CseJaM HTTP_HOST:oopcommon.ramrajcotton.net HTTP_REFERER:https://portal.ramrajcotton.net/ HTTP_USER_AGENT:Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Mobile Safari/537.36 HTTP_SEC_CH_UA_PLATFORM:"Android" HTTP_SEC_CH_UA:"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139" HTTP_SEC_CH_UA_MOBILE:?1 HTTP_SELECTEDDIVISIONID:2,5 HTTP_APPCLIENT:OOP HTTP_SELECTEDBPID:43237 HTTP_ORIGIN:https://portal.ramrajcotton.net HTTP_SEC_FETCH_SITE:same-site HTTP_SEC_FETCH_MODE:cors HTTP_SEC_FETCH_DEST:empty HTTP_PRIORITY:u=1, i
ALL_RAWConnection: close Content-Type: application/json Accept: application/json, text/javascript, */*; q=0.01 Accept-Encoding: gzip, deflate, br, zstd Accept-Language: en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7 Authorization: Bearer vaV4a75_2xXDBs-0WOYnHztPn8BFGnSYw7174dTondT5Pz2-1X_Nl9iWV3OdnDM8-svjU56bKlDCDLYhNal8mdJHzCynjdM5b644yzUr9DtH68BXfcq7iCWuHl3lsslWD_G56Zk4YH2CPnRTHJlzgDsNYScim0QwM11IoNQLavClXpnrhaCyKi71JXn1gARw2aBTGXSjXQRJxHDDUzVbjUS8rgZjqPUisP4KBkM17ZOOP7D2UN2EIOab-GCthukhoniDxf2N9R5lOBJHhGcuHJSOEWEVTAo3Lkjyq2vAt8t6klGiVioYANIJTMdQWXWmS-5Rlq2A832rcZyXbYjM66FAH0Rr35-l7AJVMdELZYjlJ7HB2YZrc5lzlMmPm3aoeADssaC0U_GSKpCrTLoBb4KP6zsUIVr30DxbqlvnetD8KzHp1VKULCV4EO7ONah2H3XHYle0U_9BIJpfp-3c3CseJaM Host: oopcommon.ramrajcotton.net Referer: https://portal.ramrajcotton.net/ User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Mobile Safari/537.36 sec-ch-ua-platform: "Android" sec-ch-ua: "Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139" sec-ch-ua-mobile: ?1 selecteddivisionid: 2,5 appclient: OOP selectedbpid: 43237 origin: https://portal.ramrajcotton.net sec-fetch-site: same-site sec-fetch-mode: cors sec-fetch-dest: empty priority: u=1, i
APPL_MD_PATH/LM/W3SVC/12/ROOT
APPL_PHYSICAL_PATHD:\IIS\OOP\Resources\Common\
AUTH_PASSWORD*****
AUTH_TYPEBearer
AUTH_USERE21-01028
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE256
CERT_SECRETKEYSIZE2048
CERT_SERIALNUMBER
CERT_SERVER_ISSUERC=US, S=Arizona, L=Scottsdale, O="GoDaddy.com, Inc.", OU=http://certs.godaddy.com/repository/, CN=Go Daddy Secure Certificate Authority - G2
CERT_SERVER_SUBJECTCN=*.ramrajcotton.net
CERT_SUBJECT
CONTENT_LENGTH0
CONTENT_TYPEapplication/json
GATEWAY_INTERFACECGI/1.1
HTTP_ACCEPTapplication/json, text/javascript, */*; q=0.01
HTTP_ACCEPT_ENCODINGgzip, deflate, br, zstd
HTTP_ACCEPT_LANGUAGEen-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7
HTTP_APPCLIENTOOP
HTTP_APPLICATIONINSIGHTS_REQUESTTRACKINGTELEMETRYMODULE_ROOTREQUEST_IDf5017502-e7b0-47f2-be51-17d5b1a1a21c
HTTP_AUTHORIZATIONBearer vaV4a75_2xXDBs-0WOYnHztPn8BFGnSYw7174dTondT5Pz2-1X_Nl9iWV3OdnDM8-svjU56bKlDCDLYhNal8mdJHzCynjdM5b644yzUr9DtH68BXfcq7iCWuHl3lsslWD_G56Zk4YH2CPnRTHJlzgDsNYScim0QwM11IoNQLavClXpnrhaCyKi71JXn1gARw2aBTGXSjXQRJxHDDUzVbjUS8rgZjqPUisP4KBkM17ZOOP7D2UN2EIOab-GCthukhoniDxf2N9R5lOBJHhGcuHJSOEWEVTAo3Lkjyq2vAt8t6klGiVioYANIJTMdQWXWmS-5Rlq2A832rcZyXbYjM66FAH0Rr35-l7AJVMdELZYjlJ7HB2YZrc5lzlMmPm3aoeADssaC0U_GSKpCrTLoBb4KP6zsUIVr30DxbqlvnetD8KzHp1VKULCV4EO7ONah2H3XHYle0U_9BIJpfp-3c3CseJaM
HTTP_CONNECTIONclose
HTTP_CONTENT_TYPEapplication/json
HTTP_HOSToopcommon.ramrajcotton.net
HTTP_ORIGINhttps://portal.ramrajcotton.net
HTTP_PRIORITYu=1, i
HTTP_REFERERhttps://portal.ramrajcotton.net/
HTTP_SEC_CH_UA"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139"
HTTP_SEC_CH_UA_MOBILE?1
HTTP_SEC_CH_UA_PLATFORM"Android"
HTTP_SEC_FETCH_DESTempty
HTTP_SEC_FETCH_MODEcors
HTTP_SEC_FETCH_SITEsame-site
HTTP_SELECTEDBPID43237
HTTP_SELECTEDDIVISIONID2,5
HTTP_USER_AGENTMozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Mobile Safari/537.36
HTTPSon
HTTPS_KEYSIZE256
HTTPS_SECRETKEYSIZE2048
HTTPS_SERVER_ISSUERC=US, S=Arizona, L=Scottsdale, O="GoDaddy.com, Inc.", OU=http://certs.godaddy.com/repository/, CN=Go Daddy Secure Certificate Authority - G2
HTTPS_SERVER_SUBJECTCN=*.ramrajcotton.net
INSTANCE_ID12
INSTANCE_META_PATH/LM/W3SVC/12
LOCAL_ADDR10.0.0.198
LOGON_USERE21-01028
PATH_INFO/Api/UserSettings/Loadbireportdashboard
PATH_TRANSLATEDD:\IIS\OOP\Resources\Common\Api\UserSettings\Loadbireportdashboard
QUERY_STRINGstatus=Defaulthome
REMOTE_ADDR223.228.108.69
REMOTE_HOST223.228.108.69
REMOTE_PORT17617
REMOTE_USERE21-01028
REQUEST_METHODGET
SCRIPT_NAME/Api/UserSettings/Loadbireportdashboard
SERVER_NAMEoopcommon.ramrajcotton.net
SERVER_PORT443
SERVER_PORT_SECURE1
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/10.0
URL/Api/UserSettings/Loadbireportdashboard