My Custom handler is working 100% on Asp.NET Development server but when i publish the site to IIS 5.1 whenever i try to run Comment/Find (which finds a user via an AJAX call) (i know the naming of my handler sux!!! :)
The page cannot be displayed The page you are looking for cannot be displayed because the page address is incorrect.
Please try the following:
* If you typed the page address in the Address bar, check that it is entered correctly.
* Open the home page and then look for links to the information you want.
HTTP 405 - Resource not allowed Internet Information Services
Technical Information (for support personnel)
* More information:
Microsoft Support
function findUser(skip, take) {
http.open("post", 'Comment/FindUser', true);
//make a connection to the server ... specifying that you intend to make a GET request
//to the server. Specifiy the page name and the URL parameters to send
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader('Criteria', document.getElementById('SearchCriteria').value);
http.setRequestHeader("Skip", skip);
http.setRequestHeader("Take", take);
http.setRequestHeader("Connection", "close");
//display loading gif
document.getElementById('ctl00_ContentPlaceHolder1_DivUsers').innerHTML = 'Loading, Please Wait...<br /><img src="Images/loading.gif" /><br /><br />';
//assign a handler for the response
http.onreadystatechange = function() { findUserAction(); };
//actually send the request to the server
http.send(null);
}
Please can anyone help me??
Make sure you have allowed the extension on the IIS server. The development server does this automatially for you.
If you open up the properties of the web site then go to the Home Directory Tab and click the configuration button.
In there try adding the extension you are using for the handler pointing. Set the executable to the aspnet_isapi.dll (look at the standard .aspx extension to find where it is on your computer) and uncheck "Check that file exists".
I have been burned by this a couple of time and this sorted the problem
Colin G