IIS Server - Post method not working for XML files -
i new iis server , trying implement requirement need send post request xml files located on iis server. keep getting "http/1.1 405 method not allowed" error.
the method xml files working. post method doesn't work.
by looking online found need "handler-mappings" . tried looking "handler-mappings" staticfile (assuming handler xml files). see has "all verbs" enabled.
please let me know how debug further.
version: iis server 7.5 running on windows server 2008
i able fix making web.config entry below. found alternative solution renaming .xml .aspx worked.
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webserver> <handlers> <add name="xml" path="*.xml" verb="get,post" modules="isapimodule" scriptprocessor="c:\windows\system32\inetsrv\asp.dll" resourcetype="file" requireaccess="none" /> </handlers> <security> <requestfiltering> <fileextensions> <add fileextension=".xml" allowed="true" /> </fileextensions> <verbs> <add verb="post" allowed="true" /> </verbs> </requestfiltering> </security> </system.webserver> </configuration>
Comments
Post a Comment