Hi Winhost team. I'm trying to conect to mysql database server at asp.net c# webservice, but the webservice is showing error message to run. WS Address: http://www.investbovespa.com.br/ws/invest.asmx Error Message (using soap ui): System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at MySql.Data.MySqlClient.MySqlConnection.AssertPermissions() at MySql.Data.MySqlClient.MySqlConnection.Open() at DB.DBConnect.Get(String code) in C:\Users\geraldo.benedito\Google Drive\VS2013\LoadDividend\GetDividend\DBConnect.cs:line 64 at GetDividend.ServiceDividend.GetDividend(String code) in C:\Users\geraldo.benedito\Google Drive\VS2013\LoadDividend\GetDividend\invest.asmx.cs:line 29 --- End of inner exception stack trace --- I've tryied to use that as page, but I got the same issue. You can see the error here: http://www.investbovespa.com.br/ws_test/default.aspx
The error means you need to set the trust level to full in your web.config file of your web application. Read our knowledge base article on how to set the trust level to full here: https://support.Winhost.com/kb/a657/changing-the-default-asp_net-trust-level.aspx