Welcome Guest Search | Active Topics | Sign In | Register

GridView security issue Options
Sanchez
Posted: Sunday, January 4, 2009 10:27:27 AM
Rank: Newbie
Groups: Member

Joined: 2/9/2008
Posts: 7
Hi,
I have some pages on my web application who don't work with gridview.
It works fine in local environment, but not in production server.
I have this message :

Quote:
Exception de sécurité
Description : L'application a essayé d'effectuer une opération qui n'est pas autorisée par la stratégie de sécurité. Pour accorder à cette application les autorisations requises, contactez votre administrateur système ou modifiez le niveau de confiance de l'application dans le fichier de configuration.

Détails de l'exception: System.Security.SecurityException: Échec de la demande d'autorisation de type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Erreur source:

Une exception non gérée s'est produite lors de l'exécution de la demande Web actuelle. Les informations relatives à l'origine et l'emplacement de l'exception peuvent être identifiées en utilisant la trace de la pile d'exception ci-dessous.

Trace de la pile:


[SecurityException: Échec de la demande d'autorisation de type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118
System.Reflection.Assembly.GetName(Boolean copiedName) +68
System.Reflection.Assembly.GetName() +6
EO.Web.Internal.cd..cctor() +105





Informations sur la version : Version Microsoft .NET Framework :2.0.50727.1434; Version ASP.NET :2.0.50727.1434


I'm in full trust level configuration.
Thanks for your help.





eo_support
Posted: Sunday, January 4, 2009 10:48:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You are definitely not in a full trust environment. You will need to contact your server administrator to grant you the denied permission.

Thanks!
Sanchez
Posted: Sunday, January 4, 2009 10:48:56 AM
Rank: Newbie
Groups: Member

Joined: 2/9/2008
Posts: 7
My host manager ask me to confirm that EO products work in shared environment...
can you confirm that point..?
thanks
eo_support
Posted: Sunday, January 4, 2009 10:57:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
It has nothing to do with shared environment. Most of our customers run our product in a shared environment. Whether you are on a shared server and what permission you have are two totally different things.

The only issue here is partial trust. Your server administrator has turned off certain permissions that are needed by our product. FileIOPermission definitely should not be turned off because otherwise we won’t even be able to read our license file. We support standard .NET Full and High trust level.

You will need to have them to fix this permission issue. Otherwise you will not be able to run our product on their server.
Caedmon
Posted: Wednesday, April 22, 2009 1:46:18 PM
Rank: Newbie
Groups: Member

Joined: 12/4/2008
Posts: 6
FYI: Rackspace's MOSSO hosting does NOT support EO.Web controls. They only support a medium trust level.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.