Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Cultur

Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Cultur

Postby farshore » Tue 09 Jan 2007 15:18

Hiya we are getting the following error on a site we have deployed "
Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Can you pleeease tell me what is causing this
Thanks
farshore
 
Posts: 19
Joined: Tue 07 Nov 2006 12:19

Postby Alexey » Wed 10 Jan 2007 07:41

Please describe when exactly this error occurs.
As I remember, your vevida_net-2.0.config file differs a bit from default web_mediumtrust.config file (particularly in EnvironmentPermission section). So maybe this is the problem.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Cultur

Postby farshore » Wed 10 Jan 2007 10:32

It happens when processing a request to return data to the DB
this works but it generates the error message I posted.
I know that the hosting party are running their own config file but does this mean that corelab can only ever be deployed on a dedicated server and never in a shared hosting enviroment.
Is that point clear in the documention so other developers are aware that they should never try to run corelab on a normal hosted enviroment?

We are also trying to resolve a MySqlserver has gone away issue have you got any clues for me on that error too
Thanks
farshore
 
Posts: 19
Joined: Tue 07 Nov 2006 12:19

Postby Alexey » Wed 10 Jan 2007 11:43

Web sites written with MySQLDirect .NET can be deployed in a shared hosting enviroment as well, provided that trust level is at least medium.
As for "MySQL Server has gone away" problem, this error could happen if there was connection break or you were more then eight hours on one connection. For more information about this problem take a look here
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Cultur

Postby farshore » Wed 10 Jan 2007 14:53

Hi Alexey
I saw this documentation but is it usual for a hosting party to leave an open DB connection for eight hours per session.
Thanks
farshore
 
Posts: 19
Joined: Tue 07 Nov 2006 12:19

Postby Alexey » Thu 11 Jan 2007 07:13

This is a hypothetical question. There are not only one reason why that error could happen.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for MySQL