Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Endpoints using 'UriTemplate' cannot be used with 'System.ServiceModel.Description.WebScriptEnablingBehavior'

Tags:

wcf

I am getting "Endpoints using 'UriTemplate' cannot be used with 'System.ServiceModel.Description.WebScriptEnablingBehavior'" error while developing WCF with REST services.I am new to WCF.

like image 545
shekar Avatar asked Aug 07 '12 10:08

shekar


2 Answers

In your web.config you must replace "enableWebScript" by "webHttp"

like image 67
Ossevet Avatar answered Nov 06 '22 19:11

Ossevet


The short answer is that you cannot have both. See http://kaushikghosh12.blogspot.com.au/2012/10/a-known-error-in-wcf-restful-service.html for more information.

like image 5
TheEdge Avatar answered Nov 06 '22 19:11

TheEdge