To create odata service using WCF with Visual Studio 2015 on Windows 10 IIS, the first steps is following the instruction of
https://www.codeproject.com/articles/1087982/create-a-wcf-dataservice-in-visual-studio
to create a oData WCF service. But the above link does not have a good description about how to publish the oData service to local IIS.
To do that, following the instruction of
https://debugmode.net/2014/06/18/publish-wcf-service-in-local-iis-on-visual-studio-2013/
The same steps also works on Visual Studio 2015.
Then for Windows 10 IIS, you will need to using the Turn Windows Feature on or off tool to turn on the below items:
1. Under Internet Information Services/World Wide Web Services\Application Development Features, turn on all items exception CGI
2.Undre .Net Framework 4.6 Advanced Services\WCF Services, turn on Http Activation item.
Then run the WCF project with the service url as below sample will get the service description
http://localhost/wcfodata/WcfDataService.svc/
No comments:
Post a Comment