使用Azure上部署的.net Web服务时出现MySQL错误(0x80004005)

时间:2017-04-25 21:48:40

标签: c# mysql web-services azure

我们已经使用.net框架" .asmx"创建了一个Web服务,并且在Web方法中我们有一些MySQL块,它将一些数据写入远程连接的DB。 我们的数据库是在Microsoft Azure上部署的Bitnami MySQL,当我们运行.asmx页面时,它运行时没有错误,但是当我们在Azure上运行它时,它有时会起作用,并且大多数时候它会返回此错误:

string MyConString = "user id=root;persistsecurityinfo=True;server=52.xxx.xx.xx;database=xxxxxxx;password='xxxxx';" ;
MySqlConnection connection = new MySqlConnection(MyConString);
MySqlCommand command = connection.CreateCommand();
command.CommandText = "INSERT INTO .........;";
connection.Open();
command.ExecuteReader();
connection.Close();

我们使用最新的MySQL .net连接器,这是我们的连接字符串:

border-radius: 50% 50% 0px 0px;

在我写这篇文章的时候,服务运行良好并且返回成功但是它再次失败,那么似乎是什么问题?提前谢谢你。

0 个答案:

没有答案