在使用REST服务开发WCF时,我得到“端点使用'UriTemplate'不能与'System.ServiceModel.Description.WebScriptEnablingBehavior'”一起使用。我是WCF的新手。
在使用REST服务开发WCF时,我得到“端点使用'UriTemplate'不能与'System.ServiceModel.Description.WebScriptEnablingBehavior'”一起使用。我是WCF的新手。
在您的web.config中,您必须将“enableWebScript”替换为“webHttp”
简短的回答是你不能兼得。看到 http://kaushikghosh12.blogspot.com.au/2012/10/a-known-error-in-wcf-restful-service.html 了解更多信息。