Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You basically need</p> <ul> <li>a virtual directory in IIS 7</li> <li>a SVC file (service file) that instructs IIS how to instantiate your service</li> </ul> <p>You basically have three options to deploy your service implementation:</p> <ul> <li><p>you can put your service implementation into the code-behind file of the SVC file - that would be my least favourable option - basically don't do it - it gets messy and offers no benefit</p></li> <li><p>you can put your service class file (the MyService.cs file) and the interface file (IMyService.cs) into the <code>App_Code</code> directory (if you're using a Web Site project type) - again, I don't particularly like this approach</p></li> <li><p>your best option: put your service contract (the interface) and your service implementation into a separate class-library assembly for that service, and deploy that <code>MyService.dll</code> into the <code>.\bin</code> directory below the virtual directory where your SVC file lives.</p></li> </ul> <p>Then add a *.svc file (pure text file) to your virtual directory, which contains:</p> <pre><code>&lt;%@ServiceHost language="c#" Debug="true" Service="MyService" %&gt; </code></pre> <p>And of course, you need the appropriate web.config entries - but I'm sure you already have those, right?</p> <p>Your service address now is: </p> <pre><code>http://YourServer/VirtualDirectory/YourService.svc </code></pre> <p>For more info, see <a href="http://msdn.microsoft.com/en-us/library/ms733766.aspx" rel="nofollow noreferrer">How to: Host a WCF Service in IIS</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

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