Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Security Exception since upgrading Connector/NET (1 reply)

$
0
0
Hello,

I have set up a basic test site which just displays one piece of data from a MySql 5 database. Using ASP.NET 4.0 and MySql Connector/NET 6.0.4 it works fine. However, on replacing the MySql.Data.dll with version 6.3.4 I get the error:

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
MySql.Data.MySqlClient.MySqlTrace..cctor() +0

My site uses shared hosting. Does anyone know what's causing this, and a workaround? It seems a shame to have to stick to an old version of the Connector.

UPDATE: My hostring provider has just replied with the question:

"The error indicates that something in the constructor of the MySqlTrace class (or something that the constructor calls) is attempting to perform an action not supported in a secure shared web hosting environment, such as ours. It isn't specific enough to say what it is that it is attempting to do. MySqlTrace would normally be used for debugging, what in the code is attempting to instantiate it?"

Cheers,

James

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>