J'ai ce problème étrange ...ASP.NET AJAX et jQuery - problème étrange
J'ai un service Web en cours d'exécution contre frontal jQuery. Quand je le lance sur le serveur web intégré de VS2008 - ça marche très bien. Mais quand je l'utilise IIS lui-même - je reçois cette erreur:
System.InvalidOperationException: Request format is invalid: application/json; charset=utf-8. at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
le code pour l'AJAX:
$.ajax({ type: "POST", url: " http://localhost/MYSITE/WEBSERVICE.asmx/SOME_FUNCTION ", data: '{ prm1: "' + p1+ '", prm2: "' + p2+ '", prm3: "' + p3+ '"}', contentType: "application/json; charset=utf-8", dataType: "json", .....
Toutes les idées pourquoi cela se produit?
Le site est .NET 3.5 en utilisant "pool de pipeline géré intégré".
Merci, Roman