DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 3 Jul 2007 06:46:18 -0700,    posted on: microsoft.public.dotnet.distributed_apps        back       

Thread Index
  1    Stephen


Security issues of ntier app run from file server, no data access   
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.ThrowSecurityException(Assembly asm, 
PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, 
SecurityAction action, Object demand, IPermission permThatFailed)
   at AutoZone.AllData.CreditCards.RunBatch.LoadBatchData()

Next I added InteropServices :

Imports System.Runtime.InteropServices
'The attribute is placed at the assembly level.
'<Assembly: PermissionSetAttribute(SecurityAction.RequestMinimum, 
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(Evidence 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
Date:Tue, 3 Jul 2007 06:46:18 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us