Support Center » Knowledgebase » Programming and Scripting » How to run WCF Service

How to run WCF Service



In order to have your .svc WCF Service please make sure the following is set:
Through the control panel-> Web Options:
  • Set to ASP.NET 4.0 - choose this for 4.5.x as well
  • Set to Integrated mode
  • Optionally set the Directory Indexes through the control panel. You cannot override this inside your web.config using a defaultDocument element as it will cause an error.
Inside your web.config insert the following section:
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
         <handlers>
            <add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" />
        </handlers>
  </system.webServer>


Article Details
Article ID: 216
Created On: 24 Mar 2015 01:14 PM
 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
Please note that the login and password to the support area is NOT the same as your hosting control panel login and password
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Downloads | Control Panel User's Guide | Server Status
Language: