Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET application: AJAX PageMethods returning internal server error about "index.php" on Production Server Only
    primarykey
    data
    text
    <p>I have an ASP.NET application running on two almost identical Virtual Windows Server 2003. The first one is my develop and test server. I have installed the .NET WebExtensions for Framework 2.0 there and the application runs well. Now I tried to publish the same application on a second server (lets call him the production server) and also installed the .NET WebExtensions there and compiling and database access runs as well as the complete APS.NET application. Except for calling the static PageMethods through JavaScript AJAX calls. I have used the developer tools of the IE8 to debug into the JavaScript and found that it works identically. Still, all calls of the WebMethods return and internal server error (error code 500) saying "Unknown web method index.php". </p> <p>Does anybody know what might be wrong with the production server or which configuration need to be changed?</p> <p>The main difference between the two servers is that the production server uses .NET .../Framework64/v2.0.50727/aspnet_isapi.dll, while the test server uses .../Framework/v2.0.50727/aspnet_isapi.dll.</p> <p>Some more details:</p> <ol> <li>All PageMethods are static, return a string and have the WebMethod-Attribute.</li> <li>On both servers the JavaScript creates an XmlHttpRequest object using the resolved URL "<a href="http://myDomain/myPage.aspx/myWebMethod" rel="nofollow noreferrer">http://myDomain/myPage.aspx/myWebMethod</a>" and the "Content-Type"-Header "application/json charset="utf-8" and the bodies contain the correct JSON definition of the parameters for the PageMethods.</li> <li>Of course all ASPX-pages that use the AJAX PageMethods do have an ASPX-ScriptManager hving the EnablePageMethods-attribute set to "True".</li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload