﻿<error errorId="13e05413-efcc-406e-b7d4-9c7566b950ce" application="/LM/W3SVC/4/ROOT" host="SP1-SD-SOFTVAR-" type="System.ComponentModel.Win32Exception" message="The wait operation timed out" detail="System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---&gt; System.Data.SqlClient.SqlException: 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 - The wait operation timed out.) ---&gt; System.ComponentModel.Win32Exception: The wait operation timed out&#xD;&#xA;   --- End of inner exception stack trace ---&#xD;&#xA;   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)&#xD;&#xA;   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)&#xD;&#xA;   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)&#xD;&#xA;   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)&#xD;&#xA;   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)&#xD;&#xA;   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)&#xD;&#xA;   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)&#xD;&#xA;   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&amp; connection)&#xD;&#xA;   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)&#xD;&#xA;   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)&#xD;&#xA;   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)&#xD;&#xA;   at System.Data.SqlClient.SqlConnection.Open()&#xD;&#xA;   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)&#xD;&#xA;   at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)&#xD;&#xA;   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.&lt;&gt;c__DisplayClass1.&lt;Execute&gt;b__0()&#xD;&#xA;   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)&#xD;&#xA;   at System.Data.Entity.Core.EntityClient.EntityConnection.Open()&#xD;&#xA;   --- End of inner exception stack trace ---&#xD;&#xA;   at System.Data.Entity.Core.EntityClient.EntityConnection.Open()&#xD;&#xA;   at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)&#xD;&#xA;   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)&#xD;&#xA;   at System.Data.Entity.Core.Objects.ObjectQuery`1.&lt;&gt;c__DisplayClass7.&lt;GetResults&gt;b__5()&#xD;&#xA;   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)&#xD;&#xA;   at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)&#xD;&#xA;   at System.Data.Entity.Core.Objects.ObjectQuery`1.&lt;System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator&gt;b__0()&#xD;&#xA;   at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()&#xD;&#xA;   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)&#xD;&#xA;   at Softvar.Persistence.Repository.PedidoRepository.ListarPedidosCompleto(Int32 storeId, DateTime dataFrom, DateTime dataTo, TipoPedidoEnum orderType, Nullable`1 idTransportadora, Int32 pagina, Int32 totalRegistro, String codigoVenda) in C:\Softvar\Dotnet\Softvar.Persistence\Repository\PedidoRepository.cs:line 1489&#xD;&#xA;   at Softvar.Business.Business.PedidoBusiness.ListarPedidosCompleto(Int32 storeId, DateTime dataFrom, DateTime dataTo, TipoPedidoEnum orderType, Nullable`1 idTransportadora, Int32 pagina, Int32 totalRegistro, String codigoVenda) in C:\Softvar\Dotnet\Softvar.Business\Business\PedidoBusiness.cs:line 3162&#xD;&#xA;   at Softvar.WebApi.Controllers.VendaServiceController.ListarPedidos(String idLoja, String dataInicial, String dataFinal, String tipoVenda, String idTransportadora, String pagina, String totalRegistro, String codigoVenda) in C:\Softvar\Dotnet\Softvar.WebApi\Controllers\VendaServiceController.cs:line 386&#xD;&#xA;   at lambda_method(Closure , Object , Object[] )&#xD;&#xA;   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.&lt;&gt;c__DisplayClass10.&lt;GetExecutor&gt;b__9(Object instance, Object[] methodParameters)&#xD;&#xA;   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)&#xD;&#xA;--- End of stack trace from previous location where exception was thrown ---&#xD;&#xA;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#xD;&#xA;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;&#xA;   at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;InvokeActionAsyncCore&gt;d__0.MoveNext()&#xD;&#xA;--- End of stack trace from previous location where exception was thrown ---&#xD;&#xA;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#xD;&#xA;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;&#xA;   at System.Web.Http.Filters.ActionFilterAttribute.&lt;CallOnActionExecutedAsync&gt;d__5.MoveNext()" user="transfolha@softvar.api.com.br" time="2026-04-19T04:56:19.7565613Z">
  <serverVariables>
    <item name="ALL_HTTP">
      <value string="HTTP_HOST:api.softvar.com.br&#xD;&#xA;HTTP_TOKEN:3709B59A-64A6-423D-B048-5FAC80C26CDD|transfolha@softvar.api.com.br&#xD;&#xA;" />
    </item>
    <item name="ALL_RAW">
      <value string="Host: api.softvar.com.br&#xD;&#xA;TOKEN: 3709B59A-64A6-423D-B048-5FAC80C26CDD|transfolha@softvar.api.com.br&#xD;&#xA;" />
    </item>
    <item name="APPL_MD_PATH">
      <value string="/LM/W3SVC/4/ROOT" />
    </item>
    <item name="APPL_PHYSICAL_PATH">
      <value string="C:\inetpub\api\" />
    </item>
    <item name="AUTH_TYPE">
      <value string="" />
    </item>
    <item name="AUTH_USER">
      <value string="" />
    </item>
    <item name="AUTH_PASSWORD">
      <value string="*****" />
    </item>
    <item name="LOGON_USER">
      <value string="" />
    </item>
    <item name="REMOTE_USER">
      <value string="" />
    </item>
    <item name="CERT_COOKIE">
      <value string="" />
    </item>
    <item name="CERT_FLAGS">
      <value string="" />
    </item>
    <item name="CERT_ISSUER">
      <value string="" />
    </item>
    <item name="CERT_KEYSIZE">
      <value string="256" />
    </item>
    <item name="CERT_SECRETKEYSIZE">
      <value string="4096" />
    </item>
    <item name="CERT_SERIALNUMBER">
      <value string="" />
    </item>
    <item name="CERT_SERVER_ISSUER">
      <value string="C=US, O=Let's Encrypt, CN=R13" />
    </item>
    <item name="CERT_SERVER_SUBJECT">
      <value string="CN=api.softvar.com.br" />
    </item>
    <item name="CERT_SUBJECT">
      <value string="" />
    </item>
    <item name="CONTENT_LENGTH">
      <value string="0" />
    </item>
    <item name="CONTENT_TYPE">
      <value string="" />
    </item>
    <item name="GATEWAY_INTERFACE">
      <value string="CGI/1.1" />
    </item>
    <item name="HTTPS">
      <value string="on" />
    </item>
    <item name="HTTPS_KEYSIZE">
      <value string="256" />
    </item>
    <item name="HTTPS_SECRETKEYSIZE">
      <value string="4096" />
    </item>
    <item name="HTTPS_SERVER_ISSUER">
      <value string="C=US, O=Let's Encrypt, CN=R13" />
    </item>
    <item name="HTTPS_SERVER_SUBJECT">
      <value string="CN=api.softvar.com.br" />
    </item>
    <item name="INSTANCE_ID">
      <value string="4" />
    </item>
    <item name="INSTANCE_META_PATH">
      <value string="/LM/W3SVC/4" />
    </item>
    <item name="LOCAL_ADDR">
      <value string="177.136.226.218" />
    </item>
    <item name="PATH_INFO">
      <value string="/v1/VendaService/ListarPedidos" />
    </item>
    <item name="PATH_TRANSLATED">
      <value string="C:\inetpub\api\v1\VendaService\ListarPedidos" />
    </item>
    <item name="QUERY_STRING">
      <value string="idLoja=6&amp;dataInicial=2026-04-12T01:57:40.6735956-03:00&amp;dataFinal=2026-04-19T01:57:40.6735956-03:00&amp;idTransportadora=32&amp;pagina=1" />
    </item>
    <item name="REMOTE_ADDR">
      <value string="201.20.39.106" />
    </item>
    <item name="REMOTE_HOST">
      <value string="201.20.39.106" />
    </item>
    <item name="REMOTE_PORT">
      <value string="51804" />
    </item>
    <item name="REQUEST_METHOD">
      <value string="GET" />
    </item>
    <item name="SCRIPT_NAME">
      <value string="/v1/VendaService/ListarPedidos" />
    </item>
    <item name="SERVER_NAME">
      <value string="api.softvar.com.br" />
    </item>
    <item name="SERVER_PORT">
      <value string="443" />
    </item>
    <item name="SERVER_PORT_SECURE">
      <value string="1" />
    </item>
    <item name="SERVER_PROTOCOL">
      <value string="HTTP/1.1" />
    </item>
    <item name="SERVER_SOFTWARE">
      <value string="Microsoft-IIS/10.0" />
    </item>
    <item name="URL">
      <value string="/v1/VendaService/ListarPedidos" />
    </item>
    <item name="HTTP_HOST">
      <value string="api.softvar.com.br" />
    </item>
    <item name="HTTP_TOKEN">
      <value string="3709B59A-64A6-423D-B048-5FAC80C26CDD|transfolha@softvar.api.com.br" />
    </item>
  </serverVariables>
  <queryString>
    <item name="idLoja">
      <value string="6" />
    </item>
    <item name="dataInicial">
      <value string="2026-04-12T01:57:40.6735956-03:00" />
    </item>
    <item name="dataFinal">
      <value string="2026-04-19T01:57:40.6735956-03:00" />
    </item>
    <item name="idTransportadora">
      <value string="32" />
    </item>
    <item name="pagina">
      <value string="1" />
    </item>
  </queryString>
</error>