﻿<error errorId="798f5f27-728c-4ab8-bbb5-fb03af4391ef" 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.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.FirstOrDefault[TSource](IEnumerable`1 source)&#xD;&#xA;   at Softvar.Business.Business.EstoqueBusiness.AtualizarSaldos(Int32 idLoja, Int32 idUsuario, IEnumerable`1 movimentacao) in C:\Softvar\Dotnet\Softvar.Business\Business\EstoqueBusiness.cs:line 187&#xD;&#xA;   at Softvar.WebApi.Controllers.EstoqueServiceController.AtualizarSaldos(IEnumerable`1 saldos, Int32 idLoja, Int32 idUsuario) in C:\Softvar\Dotnet\Softvar.WebApi\Controllers\EstoqueServiceController.cs:line 103&#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-13T16:41:52.6127125Z">
  <serverVariables>
    <item name="ALL_HTTP">
      <value string="HTTP_CONTENT_LENGTH:2&#xD;&#xA;HTTP_CONTENT_TYPE:application/json&#xD;&#xA;HTTP_ACCEPT:application/xml&#xD;&#xA;HTTP_EXPECT:100-continue&#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-Length: 2&#xD;&#xA;Content-Type: application/json&#xD;&#xA;Accept: application/xml&#xD;&#xA;Expect: 100-continue&#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="2" />
    </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/EstoqueService/AtualizarSaldos" />
    </item>
    <item name="PATH_TRANSLATED">
      <value string="C:\inetpub\api\v1\EstoqueService\AtualizarSaldos" />
    </item>
    <item name="QUERY_STRING">
      <value string="idLoja=43&amp;idUsuario=1" />
    </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="53293" />
    </item>
    <item name="REQUEST_METHOD">
      <value string="POST" />
    </item>
    <item name="SCRIPT_NAME">
      <value string="/v1/EstoqueService/AtualizarSaldos" />
    </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/EstoqueService/AtualizarSaldos" />
    </item>
    <item name="HTTP_CONTENT_LENGTH">
      <value string="2" />
    </item>
    <item name="HTTP_CONTENT_TYPE">
      <value string="application/json" />
    </item>
    <item name="HTTP_ACCEPT">
      <value string="application/xml" />
    </item>
    <item name="HTTP_EXPECT">
      <value string="100-continue" />
    </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="idUsuario">
      <value string="1" />
    </item>
  </queryString>
</error>