publishing wcf service

2 posts, 0 answers
  1. Robert Smit
    Robert Smit avatar
    13 posts
    Member since:
    Aug 2009

    Posted 28 Mar 2010 Link to this post

    Dear Telerik,

    I have created a wcf service for a combobox based on the example http://demos.telerik.com/aspnet-ajax/combobox/examples/loadondemand/wcf/defaultcs.aspx

    It works fine on my local machine. However when I try to publish it, it fails and shows the message:
    "The server method 'GetProjects' failed."

    Could you help me out?

    Best wishes,

    Robert.

    P.S. I hosting on a Windows Server 2008 with IIS7.
    P.P.S. The error is "500 System.ServiceModel.ServiceActivationException"
  2. Robert Smit
    Robert Smit avatar
    13 posts
    Member since:
    Aug 2009

    Posted 29 Mar 2010 Link to this post

    Solved it!

    Needed to add to web.config
     <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
     <baseAddressPrefixFilters>
     <add prefix="http://yourdomainname/servicesdirectory" />
     </baseAddressPrefixFilters>
    </serviceHostingEnvironment>



  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top