﻿<error errorId="e8f8de7c-2830-402c-8c20-1e658d649a4b" application="/LM/W3SVC/4/ROOT" host="SP1-SD-SOFTVAR-" type="System.InvalidOperationException" message="Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached." source="System.Data" detail="System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---&gt; System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.&#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.GetOrder(Int32 storeId, Nullable`1 orderDateFrom, Nullable`1 orderDateTo, String orderCode, TipoPedidoEnum orderType) in C:\Softvar\Dotnet\Softvar.Persistence\Repository\PedidoRepository.cs:line 2010&#xD;&#xA;   at Softvar.Business.Business.PedidoBusiness.GetOrder(Int32 storeId, Nullable`1 orderDateFrom, Nullable`1 orderDateTo, String orderCode, TipoPedidoEnum orderType) in C:\Softvar\Dotnet\Softvar.Business\Business\PedidoBusiness.cs:line 3157&#xD;&#xA;   at Softvar.WebApi.Controllers.VendaServiceController.GetPedido(String idLoja, String codigoVenda, String dataImportacao) in C:\Softvar\Dotnet\Softvar.WebApi\Controllers\VendaServiceController.cs:line 121&#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="dpcdobrasil.jundsoft@softvar.com.br" time="2026-04-18T10:37:04.2614862Z">
  <serverVariables>
    <item name="ALL_HTTP">
      <value string="HTTP_CONTENT_TYPE:application/json&#xD;&#xA;HTTP_ACCEPT:application/xml&#xD;&#xA;HTTP_HOST:api.softvar.com.br&#xD;&#xA;HTTP_TOKEN:15E612B5-6DFB-42E5-A6E8-F7DD064CCA56|dpcdobrasil.jundsoft@softvar.com.br&#xD;&#xA;" />
    </item>
    <item name="ALL_RAW">
      <value string="Content-Type: application/json&#xD;&#xA;Accept: application/xml&#xD;&#xA;Host: api.softvar.com.br&#xD;&#xA;token: 15E612B5-6DFB-42E5-A6E8-F7DD064CCA56|dpcdobrasil.jundsoft@softvar.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="application/json" />
    </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/GetPedido" />
    </item>
    <item name="PATH_TRANSLATED">
      <value string="C:\inetpub\api\v1\VendaService\GetPedido" />
    </item>
    <item name="QUERY_STRING">
      <value string="idLoja=43&amp;codigoVenda=null&amp;dataImportacao=2026-04-18T00:00:00" />
    </item>
    <item name="REMOTE_ADDR">
      <value string="201.92.215.28" />
    </item>
    <item name="REMOTE_HOST">
      <value string="201.92.215.28" />
    </item>
    <item name="REMOTE_PORT">
      <value string="61363" />
    </item>
    <item name="REQUEST_METHOD">
      <value string="GET" />
    </item>
    <item name="SCRIPT_NAME">
      <value string="/v1/VendaService/GetPedido" />
    </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/GetPedido" />
    </item>
    <item name="HTTP_CONTENT_TYPE">
      <value string="application/json" />
    </item>
    <item name="HTTP_ACCEPT">
      <value string="application/xml" />
    </item>
    <item name="HTTP_HOST">
      <value string="api.softvar.com.br" />
    </item>
    <item name="HTTP_TOKEN">
      <value string="15E612B5-6DFB-42E5-A6E8-F7DD064CCA56|dpcdobrasil.jundsoft@softvar.com.br" />
    </item>
  </serverVariables>
  <queryString>
    <item name="idLoja">
      <value string="43" />
    </item>
    <item name="codigoVenda">
      <value string="null" />
    </item>
    <item name="dataImportacao">
      <value string="2026-04-18T00:00:00" />
    </item>
  </queryString>
</error>