The Server Method " " Failed

2 posts, 0 answers
  1. ibraheem abulubbad
    ibraheem abulubbad avatar
    1 posts
    Member since:
    Nov 2009

    Posted 07 Mar 2011 Link to this post

    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));
        }
    }
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 12 Mar 2011 Link to this post

    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!
Back to Top