Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Rest Service Template 40 on IIS 7.5
    text
    copied!<p>I am attempting to get the WCF Rest Service Template 40 (CS) which is an online template in VS 2010 to deploy to IIS 7.5 on Win Server 2008 R2. We havn't changed the template at all and are trying to get this call to work:</p> <pre><code>public class Service1 { // TODO: Implement the collection resource that will contain the SampleItem instances [WebGet(UriTemplate = "")] public List&lt;SampleItem&gt; GetCollection() { // TODO: Replace the current implementation to return a collection of SampleItem instances return new List&lt;SampleItem&gt;() { new SampleItem() { Id = 1, StringValue = "Hello" } }; } .... </code></pre> <p>We've tried:</p> <ul> <li>manually creating an .svc file as this template doesn't have one. looks like: <code>&lt;%@ServiceHost language=c# Debug="true" Service="WcfRestService2.Service1"%&gt;</code></li> <li>publishing as a website and adding it as a website in IIS.</li> <li>we've installed .net framework 4.0 on IIS and that is working.</li> <li>adding some webconfig stuff to attempt to get the endpoints from the Global.asax.</li> <li>a bunch of other stuff...</li> </ul> <p>I am pulling my hair out over this and sorry I can't be more specific about what exactly is going on. The problem we are getting is the service calls such as <a href="http://localhost/Service1" rel="nofollow noreferrer">http://localhost/Service1</a> can't be found thru IIS but they work fine in VS.</p> <p>Here is the webservice file:</p> <p><strong>how do you insert xml?</strong> <a href="http://www.nitricburnstudios.com/Web.config" rel="nofollow noreferrer">http://www.nitricburnstudios.com/Web.config</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload