Re: Is it possible to adjust security for a networked assembly from app.config?
From: Nicole Calinoiu (calinoiu)
Date: 11/16/05
- Next message: Jörgen Ahrens: "Impsersonation from .Net Application to access a Windows 2000 Server (SSPI)"
- Previous message: Daniel Caetano: "Decrypt error message"
- In reply to: Brad Wood: "Re: Is it possible to adjust security for a networked assembly from app.config?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 16 Nov 2005 11:58:03 -0500
Your assemblies will need to be granted OleDbPermission in order for this
code to run. In addition, if this is running on the v. 1.x .NET Framework,
at least the assembly in which your Stitch.Database.DBConnection type
resides will need to be granted unrestricted permissions (aka "full trust")
due to link demands placed on the System.Data.OleDb types. (However, that's
presumably already done since that the OleDbConnection.Open method actually
gets called.)
"Brad Wood" <bradley|.wood|@ndsu|.edu> wrote in message
news:%23LlpMRW6FHA.2524@TK2MSFTNGP10.phx.gbl...
> Sorry; was at a conference last week. Following is the stack:
>
> System.Security.SecurityException: Request failed.
> at
> System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet
> grants, PermissionSet denied, PermissionSet demands)
> at System.Security.CodeAccessSecurityEngine.CheckSet(PermissionSet
> permSet, StackCrawlMark& stackMark, Int32 checkFrames, Int32
> unrestrictedOverride)
> at System.Security.CodeAccessSecurityEngine.Check(PermissionSet
> permSet, StackCrawlMark& stackMark)
> at System.Security.PermissionSet.Demand()
> at System.Data.OleDb.OleDbConnectionString.Demand(OleDbConnectionString
> constr)
> at System.Data.OleDb.OleDbConnection.Open()
> at Stitch.Database.DBConnection..ctor(DatabaseType Type, String Path)
> at NDSU.ProgressTracker.Persister.init()
>
> Nicole Calinoiu wrote:
>> If you're using an Access application via ADO.NET, you're probably seeing
>> problems due to the permissions required by the ADO.NET provider, not the
>> file permissions. Could you please provide the full details of the
>> exception you're seeing (incl. call stack), as returned from its
>> ToString() method?
- Next message: Jörgen Ahrens: "Impsersonation from .Net Application to access a Windows 2000 Server (SSPI)"
- Previous message: Daniel Caetano: "Decrypt error message"
- In reply to: Brad Wood: "Re: Is it possible to adjust security for a networked assembly from app.config?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|