HighTechTalks DotNet Forums  

Security issues of ntier app run from file server, no data access

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss Security issues of ntier app run from file server, no data access in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?U3RlcGhlbg==?=
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.