最匹配的重载方法具有一些无效参数
下面是黄屏
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误信息: CS1502: 与“DYGJ.User.UserMange.GetUser(System.Guid)”最匹配的重载方法具有一些无效参数
源错误:
行 46: }
行 47: string _ref = Request.Params["ref"];
行 48: User u = UserMange.DefaultManager.GetUser(loginname);
行 49: if (u != null && u.UID != Guid.Empty)
行 50: {
源文件: e:\item\FirstFeeling\DYGJ.Web\signOn.aspx.cs 行: 48
以下是:signon.aspx.cs的代码
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using DYGJ.User;
using DYGJ.Common;
public partial class signOn : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Connection String"].ToString());
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
Page.SetFocus("UserName");
UserName.Focus();
this.Page.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), Guid.NewGuid().ToString(), "<link href='css/login/css.css' rel='stylesheet' type='text/css'>");
}
protected void btnLogin_Click(object sender, ImageClickEventArgs e)
{
if (IsValid)
{
string loginname = this.UserName.Text.Trim();
string pwd = this.Password.Text.Trim();
if (UserMange.DefaultManager.Valide(loginname, pwd))
{
if (ckbJiZhu.Checked)
{
HttpCookie cookie = new HttpCookie("www.fristfeeling.cn");
cookie.Expires = DateTime.Now.AddYears(30);
cookie.Value = loginname;
Response.Cookies.Add(cookie);
}
else
{
HttpCookie cookie = new HttpCookie("www.fristfeeling.cn");
cookie.Expires = DateTime.Now.AddMonths(-1);
cookie.Value = loginname;
Response.Cookies.Add(cookie);
}
string _ref = Request.Params["ref"];
User u = UserMange.DefaultManager.GetUser(loginname);
if (u != null && u.UID != Guid.Empty)
{
Session.Add("UID", u.UID);
Session.Add("UID2", u.UID);
Session.Add("NickName", u.NickName);
Session.Add("loginname", u.LoginName);
Session.Add("userseximg", u.Img);
Session.Add("isLoginaaa", "true");
setUserGroup.setGeneral(u.UID.ToString());
}
#region 登陆积分
UserSqlProvider.LoginIntegral(u.UID);
&nb