Reputation: 1555
I have written my first REST web service in VS 2010 using .NET 4.0 and works fine on my machine.
Now I try and put it on my web server which has IIS 7.5 but I get 403.14 error. My application pool is Integrated 4.0. What all should I check to get this working? The confusing bit is that all forums talk about web.config but I have .config file.
On my machine is url is
http://localhost/Parking.Service/evals
(which works). Now on the webserver the dll is in C:\inetpub\wwwroot\RestService - should the url be (on the webserver) be
http://localhost/RestService/Parking.Service/evals
Please help.
Upvotes: 0
Views: 3946
Reputation: 182
You need to add a .svc file with WebServiceHostFactory configured like this
<% @ServiceHost Service="MyService" Factory="System.ServiceModel.Activation.WebServiceHostFactory" Language="C#" debug="true" %>
See this article for more information.
http://msdn.microsoft.com/en-us/library/aa751792(v=vs.110).aspx on MSDN
Also check out this from MSDN Magazine.
Upvotes: 1