【发布时间】:2012-06-06 10:04:30
【问题描述】:
所以我有一个指向我的 wcf 服务的 URL,如下所示:
http://dev.verse-master.com/api/VerseMasterService.svc/Search/bi/isaiah 34:16/0/60
我的运营合同是这样的:
[OperationContract]
[WebGet(UriTemplate = "/Search/{translation}/{searchTerm}/{skip}/{take}", ResponseFormat = WebMessageFormat.Json)]
VerseMaster.BusinessLayer.DataObjects.ServerObjects.GetVersesSearchServerObject GetVersesBySearch(string translation, string searchTerm, string skip, string take);
我已经尝试通过在线阅读将此行添加到 web.config:
<httpRuntime requestPathInvalidCharacters="" requestValidationMode="4.0"/>
但我仍然收到此错误:
HTTP 错误 400 - 错误请求。
有什么想法吗?
【问题讨论】: