Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please see the webconfig below

C#
<webServices>
        <protocols>
          <add name="HttpPost"/>
          <add name=""/>
        </protocols>
      </webServices>


I need to add HttpPut in the protocols, but it does not allow
Posted
Comments
Nathan Minier 21-Nov-14 6:58am    
Be more specific: what is failing, are there any error messages?
Vignan Galla 21-Nov-14 7:20am    
Please see the below details.

Parser Error Message: The value of the property 'name' cannot be parsed. The error is: The enumeration value must be one of the following: Unknown, HttpSoap, HttpGet, HttpPost, Documentation, HttpPostLocalhost, HttpSoap12, AnyHttpSoap.

Source Error:


Line 25:
Line 26:
Line 27: <add name="HttpPut">
Line 28: </protocols>
Line 29:

Source File: D:\Applications\MDM\web.config Line: 27
Vignan Galla 21-Nov-14 7:22am    
It puts an exception near this in web.config.
Also when I tried to add HttpPut in the protocols, it was not shown in the intellisense,I added it manually
Line 27: 'add name="HttpPut"
ZurdoDev 21-Nov-14 7:57am    
There are many examples online of how to enable httpput in iis. I suggest looking at those.
Vignan Galla 27-Nov-14 6:26am    
Hi Ryan Dev, I have enabled httpput in IIS, but still not able to add the protocol in web.config.
It shows the same exception

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900