|
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.
|
|
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!
|
|
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
|
|
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.
|
|
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.
|
|