need to "trust" the share drive

  • Thread starter Thread starter Dave Cullen
  • Start date Start date
D

Dave Cullen

I have database applications created in VB.NET that will run on our
local machines but not on the network share drive. I get
System.Data.OleDb.Security Exception messages. I understand it has to do
with permissions.

I'm told that one method of getting these programs to work is to change
the settings on each target machine to trust the share drive to the same
level as the local drives. Can someone tell me how do to that, please.

Thanks.
 
Dave,

What you are talking about here is .NET's Code Access Security (CAS).
Basically, whenever Managed Code executes from a network location, that code
executes with partial trust - since the code isn't local to the machine, it's
possible that the code could have been subverted to some nefarious purpose.
..NET's CAS functionality prevents this code from performing possibly
malicious activity by limiting the abilities it has.

The easiest way to allow an assembly (executable or DLL) to execute with
complete access to the local computer (also known as 'Full Trust') is to run
the .NET Configuration Wizards on the client computer. This is normally found
under Control Panel -> Administrative Tools. When you execute this, one of
the options will be 'Trust an Assembly'. 'Trust an Assembly' will launch a
wizard that will walk you through trusting the assembly located on the remote
drive.

A point of order - enabling full trust execution scenarios for code housed
on a network share is a patently bad idea, thus it is disabled by default. Do
so with caution, and at your own risk!

Good luck!

Regards,
Bryan Porter
Chief Software Architect
Software Plus Ltd.

In order to enable this situ
 
Back
Top