I
InvalidLastName
In the web.config, we have defined the followings under configuration/system.web/webServices/ to secure web services application.
<protocols>
<clear></clear>
<add name="HttpPostLocalhost"></add>
<add name="AnyHttpSoap"></add>
<add name="Documentation"></add>
<remove name="HttpPost"></remove>
<remove name="HttpGet"></remove>
<remove name="Unknown"></remove>
</protocols>
However, we use an in-house deployment process, which replaces certain values in the web.config depending on the target server. The perl XML parse it used converts <clear /> to <clear></clear> shown below:
<protocols>
<clear></clear>
<add name="HttpPostLocalhost"></add>
<add name="AnyHttpSoap"></add>
<add name="Documentation"></add>
<remove name="HttpPost"></remove>
<remove name="HttpGet"></remove>
<remove name="Unknown"></remove>
</protocols>
it seems ASP.NET doesn't like <clear></clear>, although I believe <clear/> is equivalent to <clear></clear>, and we are getting the following error when web.config contains <clear></clear> instead of <clear/>, see below:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized element 'add'.
Source Error:
Line 82: <clear></clear>
Line 83:
Line 84: <add name="HttpPostLocalhost"></add>
Line 85:
<protocols>
<clear></clear>
<add name="HttpPostLocalhost"></add>
<add name="AnyHttpSoap"></add>
<add name="Documentation"></add>
<remove name="HttpPost"></remove>
<remove name="HttpGet"></remove>
<remove name="Unknown"></remove>
</protocols>
However, we use an in-house deployment process, which replaces certain values in the web.config depending on the target server. The perl XML parse it used converts <clear /> to <clear></clear> shown below:
<protocols>
<clear></clear>
<add name="HttpPostLocalhost"></add>
<add name="AnyHttpSoap"></add>
<add name="Documentation"></add>
<remove name="HttpPost"></remove>
<remove name="HttpGet"></remove>
<remove name="Unknown"></remove>
</protocols>
it seems ASP.NET doesn't like <clear></clear>, although I believe <clear/> is equivalent to <clear></clear>, and we are getting the following error when web.config contains <clear></clear> instead of <clear/>, see below:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized element 'add'.
Source Error:
Line 82: <clear></clear>
Line 83:
Line 84: <add name="HttpPostLocalhost"></add>
Line 85: