Nessun gestore HTTP è stato trovato per la richiesta di tipo 'POST'
Domanda
Questo errore si apre quando presento una pagina per caricare un controllo grafico .net. Ho il gestore HTTP nel mio web.config sotto. Per motivi di whateve doesnt sembra funzionare.
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
Tutte le idee perché questo errore sarebbe venuto fuori? Im perplesso su questo.
Soluzione 2
Ho risolto questo con l'aggiunta del gestore nella sezione <system.webServer>
del web.config per IIS 7.
Altri suggerimenti
Proprio per contribuire a rendere le cose chiare, perché non erano chiaro per me;
rispostachopps': 'Avevo bisogno di aggiungere il gestore nella sezione del web.config per IIS 7'
significa che il gestore doveva essere anche nella sezione system.webServer
nel web.config
.
Per Todd:
<add path="ChartImg.axd" verb="GET,HEAD,POST"
type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler,
System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" validate="false" />
Il passaggio a .NET classica AppPool in IIS lavorato per me - come raccomandato nel commento chopps'
.Proprio per contribuire a rendere le cose chiare, perché non erano chiaro per me;
Anserchopps': "Avevo bisogno di aggiungere il gestore nella sezione del web.config per IIS 7"
significa che il gestore doveva essere anche nella sezione system.webServer nel web.config.
Il passaggio a .NET classica AppPool in IIS lavorato per me! Ho incontrato il problema durante la migrazione del sito web da IIS 6 a IIS 10.
Hmm ... forse <remove verb="*" path="*.asmx"/>
rende il server risponde più alle richieste POST? Prova commentando che fuori, e vedere se è ignorando le linee add
.