最匹配的重载方法具有一些无效参数,该怎么解决
最匹配的重载方法具有一些无效参数
错误 2 与“BinhuSafety.Global.Current.Set(GlobalUserInfo)”最匹配的重载方法具有一些无效参数 E:\BinhuSafetyWeb_风讯\BinhuSafety.Web\comment.aspx.cs 127 7 BinhuSafety.Web
看的头晕了~!
没分了。。就这么多了~!
------解决方案--------------------
BinhuSafety.Global是否有Set方法?
------解决方案--------------------
貌似这里的问题BinhuSafety.Global.Current.Set(info);
LZ看看你的set方法的参数了!
错误 2 与“BinhuSafety.Global.Current.Set(GlobalUserInfo)”最匹配的重载方法具有一些无效参数 E:\BinhuSafetyWeb_风讯\BinhuSafety.Web\comment.aspx.cs 127 7 BinhuSafety.Web
- C# code
string str_commtype = Request.QueryString["commtype"]; if (str_UserNum == "Guest") { str_UserNum = "匿名"; DataTable dt = sys.UserPram(); if (dt != null) { if (dt.Rows[0]["UnRegCommTF"].ToString() != "1") { Response.Write("ERR$$$系统不允许匿名评论!"); Response.End(); } } else { Response.Write("ERR$$$系统参数错误,!"); Response.End(); } } else { if (str_UserNum.ToLower() != "guest" || str_UserNum != "匿名") { if (Validate_Session()) { str_UserNum = BinhuSafety.Global.Current.UserName; SiteID = BinhuSafety.Global.Current.SiteID; } else { GlobalUserInfo info; EnumLoginState state = _UserLogin.PersonLogin(str_UserNum, str_UserPwd, out info); if (state == BinhuSafety.Model.EnumLoginState.Succeed) { BinhuSafety.Global.Current.Set(info); str_UserNum = BinhuSafety.Global.Current.UserName; SiteID = BinhuSafety.Global.Current.SiteID; } else { Response.Write("ERR$$$帐号或密码错误!"); Response.End(); } } }
看的头晕了~!
没分了。。就这么多了~!
------解决方案--------------------
BinhuSafety.Global是否有Set方法?
------解决方案--------------------
貌似这里的问题BinhuSafety.Global.Current.Set(info);
LZ看看你的set方法的参数了!