在此代码中,catch (Exception ex) 返回“无法评估表达式,因为代码已优化或本机框架位于调用堆栈顶部”:
cmsql = cnsql.CreateCommand();
cmsql.CommandText = strsql;
cmsql.CommandType = CommandType.Text;
reader = cmsql.ExecuteReader();
if (reader.HasRows) {
while (reader.Read()) {
Session["User_Email"] = reader["User_Email"].ToString().Trim();
Session["User_Birthday"] = reader["User_birthday"].ToString().Trim(); }
Response.Redirect("Default.aspx"); }
可能是什么原因?