Mysql Error

Discussion in 'Databases' started by Geraldo Benedito, Dec 4, 2014.

  1. 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
     
  2. ComputerMan

    ComputerMan Winhost Staff

    Last edited by a moderator: Oct 14, 2015
    Michael likes this.

Share This Page