Привет, ребята, у меня глупая проблема.
Мой пользовательский обработчик работает на 100% на сервере разработки Asp.NET, но когда я публикую сайт в IIS 5.1 всякий раз, когда я пытаюсь запустить Comment / Find (который находит пользователя через вызов AJAX) (я знаю, как называется обработчик sux !!! :)
Я получаю эту ошибку:
Страница не может быть отображена
Страница, которую вы ищете, не может быть отображена, потому что адрес страницы неправильный.
Пожалуйста, попробуйте следующее:
* 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 - ресурс не разрешен
Информационные Интернет-услуги
Техническая информация (для обслуживающего персонала)
* More information:
Microsoft Support
Мой код для вызова AJAX:
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);
}
Пожалуйста, кто-нибудь может мне помочь ??