locked
The HTTP verb POST used to access path '/wwwroot/ESIS_SQL/CheckIP.asp' is not allowed RRS feed

  • Question

  • User32934918 posted

    I am getting the above error. Direct call to Call to CheckIP.asp in a browser (http://workshttp://servername/ESIS_SQLTST/CheckIP.asp?Action=1) works fine and returns the following response in nicely formatted xml page:

    <?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>

    -------

    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='';

    }

    }

    -------

    Monday, November 7, 2016 7:41 PM

All replies

  • User-2057865890 posted

    Hi Rdesai2859,

    Please check the Habdler Mappings. Besides, please consider posting IIS related issue to https://forums.iis.net/

    Best Regards,

    Chris

    Tuesday, November 8, 2016 1:53 PM
  • User32934918 posted

    Hi Chris Thanks for the update. I had already checked and both screens were/are exactly as you have shown. The only thing I am not sure about is the what should the choices for the "Mapping" and "Access" tabs.

    For "Mapping" - the checkbox of "Invoke handler only if request is mapped to:" and radio button of "File" is checked

    For "Access: - the radio button of "Script" is selected.

    Are they correct?

    -----------

    I wonder why it does not even allow a call to a file (CheckIP.asp) is in the same folder where the calling program is. Appreciate any help!

    I agree, I should have placed https://forums.iis.net and would do it next time..I thought it could very well be classic asp or javascript with frames issue.

    Rohit

    Tuesday, November 8, 2016 3:56 PM
  • User-2057865890 posted

    Hi Rohit,

    Could you provide details of error message? Try using Failed Request Tracing to troubleshoot Classic ASP errors.

    reference: https://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8 

    Best Regards,

    Chris

    Wednesday, November 9, 2016 7:50 AM
  • User32934918 posted

    Hello Chris

    I have solved the problem. In fact the error was not quite relevant. All settings in the http handler were exactly as you have in screen-shot of this page, including the tabs I had mentioned earlier in this thread. Call it my length of experience on debugging app in Visual Studio 2010 (as I have spent more than 11 years in Oracle), but the error occurred only when I ran the app from Visual Studio but not from the client browser! You can consider this issue solved! Thanks and apologize if I have wasted your time!

    Thursday, November 10, 2016 9:12 PM