Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Here is the scenario:

I am using a asp.net web application with ASPX pages. In one of the Web Page I have written couple of Web Methods and are calling them from AJAX. Now this works fine when the worker process of the application pool is set to 1 but as soon as a Web Garden is created it throws the dreaded '500' exception. Any help will be really appreciated.

What I have tried:

My Web Methods Looks something like this:

[System.Web.Services.WebMethod(EnableSession =true)]
public static ListDisbursementStatus FindResult(string userId ,string disbursementDate, string currentPageNo = "1")
{
.....
}

From Ajax I am calling this method:

$.ajax({
url: "<pagename>.aspx/FindResult",
type: "POST",
........
});
Posted
Updated 21-Jul-18 3:16am
Comments
Richard Deeming 20-Jul-18 11:06am    
Have you configured your session state to be stored out-of-process?
Meg_Lives 20-Jul-18 11:16am    
My Session State from the web.config looks like this:
<sessionState mode="SQLServer" sqlConnectionString="---" cookieless="false" timeout="20" />
Richard Deeming 20-Jul-18 11:57am    
OK, then you're going to have to get the details of the error. Check the application event log on the server, or used failed request tracing[^] to get the details.

1 solution

please check for impersonation
 
Share this answer
 
Comments
Meg_Lives 25-Jul-18 6:00am    
No issues with impersonation

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900