如何解决错误[方法错误500] [英] How to solve error[Method error 500]

查看:85
本文介绍了如何解决错误[方法错误500]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在使用级联下拉菜单时解决错误[方法错误500] ..?。

我将其作为:

How to solve error[Method error 500] while using cascading dropdown..?.
I gave it as:

<ajaxToolkit:CascadingDropDown ID="ddlProjectName_CascadingDropDown"

                     runat="server" TargetControlID="ddlProjectName" ParentControlID="ddlClientName"

                     Category="clientname" ServiceMethod="GetProjectDetailsById" PromptText="select" PromptValue="" LoadingText="select">
                 </ajaxToolkit:CascadingDropDown>



实际上我们的项目包含其他几个项目,因此在顶部我们将引用称为:


Actually our project contains several other projects so in top we will call references as:

using TicketSystem.Bll;
    using TicketSystem.Bll.Interface;
    using TicketSystem.Utilities;
    using TicketSystem.Utilities.Entities;
and then give as:
 protected void ddlClientName_SelectedIndexChanged(object sender, EventArgs e)
        {

            int ClientId = Convert.ToInt32(ddlClientName.SelectedValue);
            var httpCookie = Response.Cookies["ClientId2"];
            if (httpCookie != null) httpCookie.Value = ClientId.ToString();

            ddlProjectName.DataSource = _TaskService.GetProjectDetailsById(ClientId);
            ddlProjectName.DataValueField = "ProjectId";
            ddlProjectName.DataTextField = "ProjectName";
            ddlProjectName.DataBind();
            if (ddlProjectName.Items.Count!= 0)
            {
                ddlProjectName.Items.Insert(0, new ListItem("--Select--", "0"));
            }
         
        }

推荐答案

500通常只是意味着在服务器端代码,没有处理。



你需要跟踪/登录网络服务以查看失败的原因。


您几乎肯定在寻找.Net代码错误。



更多信息@ http://forums.asp.net/t/1109698.aspx/1 [ ^ ]
A 500 normally just means that there was an exception in the server side code, which wasn''t handled.

You''ll need to trace/log through the webservice to see what is failing.

You''re almost certainly looking for a .Net code error.

more info @ http://forums.asp.net/t/1109698.aspx/1[^]


这篇关于如何解决错误[方法错误500]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆