locked
Security exception using MySql in ASP.NET under local IIS RRS feed

  • Question

  • User554941381 posted

    Just beginning MySQL development.  I have a suitable database set up on localhost and am trying to do a query from ASP.NET.  When the code comes to the con.Open() to open the connection, I get the following error message:

    Request for the permission of type 'System.Data.Odbc.OdbcPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

     

    The connection string is:

    "{MySQL ODBC 3.51 Driver};uid=root;password=xxx;Server=localhost:3306;Option=3;Database=xxxxxx;"

     

    I have IIS set for a full trust environment.  I am running under Win 7 64-bit.  I have the MySql connector 5.1.8, which is the latest 64-bit version I could find.

     

    Appreciate any help.  Thanks.

    Wednesday, March 16, 2011 5:20 PM

Answers

All replies