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

server method failed

5 Answers 161 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ekjot
Top achievements
Rank 1
Ekjot asked on 29 Oct 2012, 07:44 PM
Hi, 

I could not find my old thread about this issue so started a new one. Sorry

So I have a radcombobox that loads via a webservice on demand. Locally it works fine but when published it gives me an error saying that the server method '' failed. I did some debugging on my own and used fiddler to find out what might be happening and have narrowed down the issue to it calling the wrong url

http://screencast.com/t/epbKgzz7nFL

As you can see it is calling the url: http://www.khalsaconsulting.com/Services/WebServices.svc/GetICD9Data when it should be calling 
http://www.khalsaconsulting.com/ekjotbeta/Services/WebServices.svc/GetICD9Data because ekjotbeta is the .NET application on the website that I am running. How can I make it call the right url? Or is there some other issue? Thanks for all the help in advance

5 Answers, 1 is accepted

Sort by
0
Cat Cheshire
Top achievements
Rank 1
answered on 01 Nov 2012, 07:55 AM
You can try enable tracing - this will help you detect what fails.
Here you can see how to enable it http://msdn.microsoft.com/en-us/library/ms733025.aspx
0
Ekjot
Top achievements
Rank 1
answered on 03 Nov 2012, 06:26 PM
Thanks for the reply... I will try to follow the steps in the article that you provided but I am not all that knowledgeable about the area.

Would any of the telerik admins know or have seen this issue before? 
0
Dimitar Terziev
Telerik team
answered on 07 Nov 2012, 10:07 AM
Hello Ekjot,

Could you provide the implementation of the RadComboBox and how the path to the web service is being defined?

All the best,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ekjot
Top achievements
Rank 1
answered on 07 Nov 2012, 03:26 PM
I found the problem but for anyone else's future reference I will post how I fixed it.


This is the RadComboBox markup I originally had:

<telerik:RadComboBox ID="txtDiaDesc1" runat="server" EnableLoadOnDemand="true" ShowMoreResultsBox="true"
                           EnableVirtualScrolling="true" EmptyMessage="Enter here..." Width="200px" AutoPostBack="True"
                           OnSelectedIndexChanged="txtDiaDesc1_SelectedIndexChanged">
                           <WebServiceSettings Path="/Services/WebServices.svc" Method="GetICD9Data" />
                       </telerik:RadComboBox>

I then took out the first '/' in the path for the webservice and it started to work. The extra slash was making it go to the root folder of the website rather than the application folder where the service actually was. Silly mistake. Sorry for the trouble and thanks for all the help guys!
0
Jeffrey
Top achievements
Rank 1
answered on 22 Apr 2013, 07:52 AM
Thanks for the post. I was pulling my hair out. Your solution was spot on.
Tags
ComboBox
Asked by
Ekjot
Top achievements
Rank 1
Answers by
Cat Cheshire
Top achievements
Rank 1
Ekjot
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Jeffrey
Top achievements
Rank 1
Share this question
or