在WCF Uri中使用特殊字符

当我们在iis中部署wcf时,我们会因为各种原因遇到无法在url的schema中使用一些特殊字符:%,&,*,:,<,>,+,#, /, ?,\ 即使通过uri encode, 这些特殊字符仍无法被当作普通的string,如果我们想通过url传递这些特殊字符,需要在web.config中进行如下配置: 12<httpRuntime requestPathInvalidCh