+3 votos
3 visitas

Estou recebendo o erro abaixo ao tentar iniciar o WES pela minha máquina:

-----------------------------------------------------------------------------------

ed8c3e64-2cce-410c-9ab3-72798ed426bd
Erro ao executar a solicitação filho para /WebApp/Warmup.aspx.
Exceção do tipo 'System.Web.HttpUnhandledException' foi acionada.
A chave fornecida não estava presente no dicionário.

System.Web.HttpException (0x80004005): Erro ao executar a solicitação filho para /WebApp/Warmup.aspx. ---> System.Web.HttpUnhandledException (0x80004005): Exceção do tipo 'System.Web.HttpUnhandledException' foi acionada. ---> System.Collections.Generic.KeyNotFoundException: A chave fornecida não estava presente no dicionário.
   em System.ThrowHelper.ThrowKeyNotFoundException()
   em System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   em Benner.Tecnologia.Wes.Components.Helpers.UrlResolverHelper.ResolveUrl(String url) na C:\git\Tecnologia\Tecnologia\Source\Wes\Components\Components\Helpers\UrlResolverHelper.cs:linha 19
   em ASP.warmup_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) na c:\git\Tecnologia\Tecnologia\Source\Wes\WebApp\Warmup.aspx:linha 9
   em System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   em System.Web.UI.Page.Render(HtmlTextWriter writer)
   em System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer)
   em System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   em System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   em System.Web.UI.Page.HandleError(Exception e)
   em System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   em System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   em System.Web.UI.Page.ProcessRequest()
   em System.Web.UI.Page.ProcessRequest(HttpContext context)
   em ASP.warmup_aspx.ProcessRequest(HttpContext context) na c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\webapp\7649c7ed\5fb5e14e\App_Web_warmup.aspx.cdcab7d2.8lpkuago.0.cs:linha 0
   em System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
   em System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
   em System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)
   em System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
   em System.Web.HttpServerUtility.Transfer(String path)
   em Benner.Tecnologia.Wes.Components.WebApp.Global.ShowWarmupPage() na C:\git\Tecnologia\Tecnologia\Source\Wes\Components\Components.WebApp\Global.cs:linha 273
   em Benner.Tecnologia.Wes.Components.WebApp.Global.Application_BeginRequest(Object sender, EventArgs e) na C:\git\Tecnologia\Tecnologia\Source\Wes\Components\Components.WebApp\Global.cs:linha 221
   em System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   em System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   em System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Request Information:
   HttpContext.Current: NULL


-----------------------------------------------------------------------------------

Já dei um "Clean Solution", recompilei, resintalei os pacotes do Node, refiz/regerei o WebPack, mas não tive sucesso.

Alguma sujestão do que poderia ser?

por (28 pontos) | 3 visitas

1 Resposta

+3 votos
Melhor resposta

Aparentemente existe "lixo" na compilação das páginas do App_Code pelo IIS e alguns objetos carregados durante o warmup não estão sendo preenchidos.

Para refazer esse cache de páginas apague o conteúdo dos diretórios abaixo e reinicie a pool.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\ 

Dentro desses diretórios existem arquivos temporários de todas as aplicações instaladas na sua máquina, olhando o stack trace poderia apagar apenas o conteúdo da pasta webapp que aparentemente está com problemas.

 

por (117 pontos)
selecionada por
Melhores Aug 2025
    200 pontos
    Melhores 2025 Jul 28 - Aug 03
    1. Larson

      156 Pontos

    2. danilo.pereira

      96 Pontos

    3. danilo.pereira

      96 Pontos

    4. danilo.pereira

      96 Pontos

    5. luciano.fronza

      61 Pontos

    6. luciano.fronza

      61 Pontos

    7. luciano.fronza

      61 Pontos

    8. diuari.molinari

      52 Pontos

    9. diuari.molinari

      51 Pontos

    10. diuari.molinari

      51 Pontos

    517 perguntas
    566 respostas
    389 comentários
    704 usuários