The HTTP verb POST used to access path '/wwwroot/ESIS_SQL/CheckIP.asp' is not allowed
20 hours, 14 minutes ago|rdesai2859|LINK
<div>I am getting the above error. Direct call to Call to CheckIP.asp in a browser (http://workshttp://servername/ESIS_SQL/CheckIP.asp?Action=1) works fine and returns the following response in nicely formatted xml page:
<div xmlns="http://www.w3.org/1999/xhtml"><?xml version="1.0" encoding="ISO-8859-1"?>
<esis><Area>*</Area>
<IP>x.x.x.x</IP>
<Options>0</Options>
<Status>2</Status>
<Level>1</Level>
</esis>
</div>-------
This is used to be a no problem before but the server had crashed with hard-drive failure and has been rebuilt from scratch. Wonder if it is some kinda IIS Settings or PATH alias is causing this error. Any help on the issue will be highly appreciated.
Here is the simple CheckIP function definition:
-----
function CheckIPAddress()
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("POST","CheckIP.asp?Action=1",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
CheckErrMsg(xmlDoc)
top.botw.document.forms.ESIS.InitStatus.value = xmlDoc.getElementsByTagName("Status")[0].childNodes[0].nodeValue;
top.topw.document.forms.ESIS.IPAddress.value = xmlDoc.getElementsByTagName("IP")[0].childNodes[0].nodeValue;
top.botw.document.forms.ESIS.ErrorNumber.value='0';
if (top.botw.document.forms.ESIS.InitStatus.value==2)
{
top.topw.document.forms.ESIS.Session.value=xmlDoc.getElementsByTagName("Area")[0].childNodes[0].nodeValue + xmlDoc.getElementsByTagName("IP")[0].childNodes[0].nodeValue;
SetConfig(xmlDoc.getElementsByTagName("Options")[0].childNodes[0].nodeValue)
}
else
{
top.topw.document.forms.ESIS.Session.value='';
}
}
-------
I wonder what settings or right is required?! It is not even allowing a call to a file (CheckIP.asp in this case) which exists in the same folder as the calling program (url :http://<servername>\ESIS_SQL|ESISFrame.html) . It may have to do with website root - Default web site has physical path "%SystemDrive%\inetpub\wwwroot" and my domain credentials are used for "Connect as.." and "Test Settings" returns green check-mark for both Authentication as Authorization. Handler mapping for *.asp is fine as well, i.e., *.asp is Enabled for "file" using IsapiModule with Executable "%windir%\system32\inetsrv\asp.dll".
Thanks in advance for your help!
</div>