I am using the .NET Framework 4.0 and MySQL. My service providers allow me to run my site in trust mode. When I host my site, the following error is generated:
Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
To overcome this, I went through these links to start MySQL in trust mode.
However, when I use the code from these links, my code works fine with SELECT queries, but when I use the INSERT query, the following error is generated:
Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
How can I solve this problem?
source share