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

The Server Method " " Failed

1 Answer 128 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
ibraheem abulubbad
Top achievements
Rank 1
ibraheem abulubbad asked on 08 Mar 2011, 12:47 AM
Dear Expert,

Please i used ComboBox with services ,in my local machine its work fine also when i publish it to IIS7 .

now when i put the site one the server and access it the services not working and give me The Server Method " " Failed.

Please Help

Best Regards 
Ab Abulubbad
My code IS :
<tel:RadComboBox ID="rcbFileNo" runat="server" Skin="Web20" Width="80px" AutoPostBack="True"
                        AllowCustomText="True" MarkFirstMatch="True" EnableLoadOnDemand="True" EnableItemCaching="True"
                        ShowMoreResultsBox="True" OnClientItemsRequesting="OnClientItemsRequesting" EmptyMessage="رقم الملف"
                        OnSelectedIndexChanged="rcbFileNo_SelectedIndexChanged" meta:resourcekey="rcbFileNoResource1">
                        <WebServiceSettings Method="SearchFileNo" Path="~/Services/asmx/Search.asmx" />
                    </tel:RadComboBox>
                    <asp:ObjectDataSource ID="odsGetFileNosList" runat="server" SelectMethod="GetFileNosList"
                        TypeName="SMASIP.DataAccess.DBA.SMASServicesOldDB.LookupsServices"></asp:ObjectDataSource>


using System.Collections;
using System.Web.Services;
using System.Data.SqlClient;
using SMASIP.WebApplication.Base;
using SMASIP.DataAccess.DAL;
using Telerik.Web.UI;
using System.Web.Script.Services;
 
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class WebService : System.Web.Services.WebService
{
    SqlParameterCollection par = null;
    public WebService()
    {
 
        //Uncomment the following line if using designed components
        //InitializeComponent();
    }
 
 
    [WebMethod(EnableSession = true)]
    public IEnumerable SearchFileNo(RadComboBoxContext context)
    {
        par = new SqlCommand().Parameters;
        par.AddWithValue("@SearchPar", context.Text);
        par.AddWithValue("@cmd", "GetFileNosList");
 
        return DataProcess.GetIEnumerableList(Abstract.getDataTable("p_OldSMASIPServicesProcedure", par));
    }
    [WebMethod(EnableSession = true)]
    public IEnumerable SearchClassNo(RadComboBoxContext context)
    {
        par = new SqlCommand().Parameters;
        par.AddWithValue("@SearchPar", context.Text);
        par.AddWithValue("@cmd", "SearchClassNo");
 
        return DataProcess.GetIEnumerableList(Abstract.getDataTable("p_OldSMASIPServicesProcedure", par));
    }
}

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 12 Mar 2011, 02:54 PM
Hi Ibraheem,

Since this scenario had been working before it's been deployed, it seems that this problem is not directly related to RadComboBox itself. There may be different causes for this problem, so in order to troubleshoot it, we would need some more information. In order to check what has gone wrong, my suggestion is to use event logging as described in this article here.

All the best,
Dimitar Terziev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ComboBox
Asked by
ibraheem abulubbad
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or