This is a migrated thread and some comments may be shown as answers.

publishing wcf service

1 Answer 87 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Robert Smit
Top achievements
Rank 1
Robert Smit asked on 28 Mar 2010, 08:57 PM
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"

1 Answer, 1 is accepted

Sort by
0
Robert Smit
Top achievements
Rank 1
answered on 29 Mar 2010, 11:11 AM
Solved it!

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



Tags
ComboBox
Asked by
Robert Smit
Top achievements
Rank 1
Answers by
Robert Smit
Top achievements
Rank 1
Share this question
or