Security issues of ntier app run from file server, no data access -
07-03-2007
, 09:46 AM
I have GUI, BizObj and Data Access projects all combined within this exe.
App runs fine from dev workstation, but from FS it throws errors. I have two
different ones below. First is just strong named.
************** Exception Text **************
System.Security.SecurityException: That assembly does not allow partially
trusted callers.
at
System.Security.CodeAccessSecurityEngine.ThrowSecu rityException(Assembly asm,
PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh,
SecurityAction action, Object demand, IPermission permThatFailed)
at AutoZone.AllData.CreditCards.RunBatch.LoadBatchDat a()
Next I added InteropServices :
Imports System.Runtime.InteropServices
'The attribute is placed at the assembly level.
'<Assembly: PermissionSetAttribute(SecurityAction.RequestMinim um,
Name:="FullTrust")>
************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly 'AllDataBase,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=f24de2bbb580fc3c' or one of
its dependencies. Failed to grant minimum permission requests. (Exception
from HRESULT: 0x80131417)
File name: 'AllDataBase, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=f24de2bbb580fc3c' ---> System.Security.Policy.PolicyException:
Required permissions cannot be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evid ence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionPermission)
Any ideas on how to provide the app with the ability to call an odbc
informix driver?
TIA
__Stephen |