My page method is returning whole page insted of result from the server side. In my local environment it is working fine but when I deploy it to azure I am getting this problem.
My code is:
function LoadLogsOnSucceeded(result) {
document.getElementById('divHistoryHeader').innerHTML = result.Header;
document.getElementById("divHistoryList").innerHTML = result.List;
}
function LoadLogs() {
var searchTxt = $("#txtLogsearch").val();
var maxRecords = $('select[id=drplogSearchMaxRecords]').val();
PageMethods.LoadLogs(searchTxt, maxRecords, LoadLogsOnSucceeded, OnFailed);
}
In config I have not added
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
when I add that into my config then in local also project is not working getting error like
"The page cannot be displayed because an internal server error has occurred."
Elena Glibart
16-Jan-2015I got the solutions some configurations were missing in web.config I added
and now it is working fine