Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Godaddy-无法在安全透明方法中执行CAS断言_C#_Mysql_Asp.net - Fatal编程技术网

C# Godaddy-无法在安全透明方法中执行CAS断言

C# Godaddy-无法在安全透明方法中执行CAS断言,c#,mysql,asp.net,C#,Mysql,Asp.net,我有一个表单,可以将数据插入位于Godaddy的mysql数据库。当我在本地进行测试时,此sql代码将起作用。但是当我把它推给Godaddy时,我得到了一个错误:不能在安全透明的方法中执行CAS断言。我已经在谷歌上搜索并查看了这个错误。虽然没有太多内容,但我确实发现了一些关于在服务器上设置CAS信任级别的内容。我确实在我的Godaddy帐户的asp.net设置中找到了它,并将其设置为full。但它并没有纠正错误。 下面是抛出错误的c/mysql代码: try { using (MySqlCo

我有一个表单,可以将数据插入位于Godaddy的mysql数据库。当我在本地进行测试时,此sql代码将起作用。但是当我把它推给Godaddy时,我得到了一个错误:不能在安全透明的方法中执行CAS断言。我已经在谷歌上搜索并查看了这个错误。虽然没有太多内容,但我确实发现了一些关于在服务器上设置CAS信任级别的内容。我确实在我的Godaddy帐户的asp.net设置中找到了它,并将其设置为full。但它并没有纠正错误。 下面是抛出错误的c/mysql代码:

try
{
  using (MySqlConnection connection = new MySqlConnection(appConfig._strMYSqlContact))
  {
    // create the sql command
    MySqlCommand myCommand = new MySqlCommand(mySQL, connection);
    // add parameters
    myCommand.Parameters.AddWithValue("?groupname", model.grName);
    myCommand.Parameters.AddWithValue("?groupsize", model.grSize);
    myCommand.Parameters.AddWithValue("?contactname", model.coName);
    myCommand.Parameters.AddWithValue("?address", model.address);
    myCommand.Parameters.AddWithValue("?city", model.city);
    myCommand.Parameters.AddWithValue("?state", model.state);
    myCommand.Parameters.AddWithValue("?zipcode", model.zip);
    myCommand.Parameters.AddWithValue("?county", model.county);
    myCommand.Parameters.AddWithValue("?email", model.email);
    myCommand.Parameters.AddWithValue("?phone", model.phone);
    myCommand.Parameters.AddWithValue("?calltime", model.bestTime);
    myCommand.Parameters.AddWithValue("?message", model.message);
    myCommand.Parameters.AddWithValue("?howheard", model.howHeard);
    myCommand.Parameters.AddWithValue("?moreaboutclubs", model.tellUsMore);
    myCommand.Parameters.AddWithValue("?dateentered",
    DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
    connection.Open();
    isSuccess = myCommand.ExecuteNonQuery();
  }
  if (isSuccess == 1)
  {
    TempData["message"] = "Thank you for contacting us.  Someone will be in contact with you within 48 hours.";
    return RedirectToAction("Success");
  }
  else
  {
    ModelState.AddModelError("", "Error inserting into database.");
  }
}
catch (Exception ex)
{
  ModelState.AddModelError("", ex.Message);
}

这是一个在戈达迪而不是在索托的候选人,他已经在电话里和戈达迪谈过了,他们没能弄清楚。看起来戈达迪已经没有票务系统了。所以我来这里是想看看是否有人能帮忙。