<configuration> <appsettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> </appsettings> <system.web> <compilation debug="true" targetframework="4.0" /> <httpruntime /> </system.web> <system.servicemodel> <services> <service name="MyRESTService.ProductRESTService" behaviorconfiguration="serviceBehavior"> <endpoint address=""> binding="webHttpBinding" contract="MyRESTService.IProductRESTService" behaviorConfiguration="web"></endpoint> <host> <baseAddresses> <add baseaddress="http://localhost:50743/MyRESTService/" /> </baseAddresses> </host> </service> </services> <behaviors> <servicebehaviors> <behavior name="serviceBehavior"> <servicemetadata httpgetenabled="true" /> <servicedebug includeexceptiondetailinfaults="false" /> </behavior> </servicebehaviors> <endpointbehaviors> <behavior name="web"> <webhttp /> </behavior> </endpointbehaviors> </behaviors> </system.servicemodel> <system.webserver> <modules runallmanagedmodulesforallrequests="true" /> <!-- To browse web app root directory during debugging, set the value below to true. Set to false before deployment to avoid disclosing web app folder information. --> <directorybrowse enabled="true" /> </system.webserver> </configuration>
<%@ ServiceHost Language="C#" Debug="true" Service="MyRESTService.ProductRESTService" CodeBehind="ProductRESTService.svc.cs" %>
The type 'MyRESTService.ProductRESTService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)