I am using .NET Framework 4.0 and MySQL. My service providers allows me to run my website in medium 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 have gone through these links to run MySQL in medium trust mode.
When I use the code from those links, however, my code works fine with SELECT queries, but when I use an 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?