.net security policy

Valued Contributor
Valued Contributor

OK, I built my shiny new application using the release mode. I moved the bin folder to a network drive, and low and behold...nothing but security exceptions.

 

The application attemted to perform and operation not allowed by the security policy. The operation required the SecurityException. To grant this application the required permission please contact your system administrator, or use the MS.net security policy administration tool.

 

This occurs when I try to pull data from an access database on the same drive. Is this a .net problem, or something to do with our network settings?

 

Thanks,

 

Bigbob

 

Posted by: Bob Reinkemeyer
Post date: 10/18/2005 7:54:39 AM

3 REPLIES

RE: .net security policy

Valued Contributor
Valued Contributor

Bob,

 

This is a FEATURE of .NET Smiley Wink. To my understanding, you'll have to modify each client's local .NET security policy. This can generally be found in Control Panel --> Administrative Tools --> Microsoft .NET Framework 1.1 Configuration.

 

Here are a few links for you. Good luck .

 

http://dotnet247.com/247reference/msgs/28/141774.aspx

 

http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx

 

Posted by: Jason Newell
Post date: 10/18/2005 8:04:08 AM

RE: .net security policy

Valued Contributor
Valued Contributor

Posted By Jason Newell on 10/18/2005 1:04:08 PM

Bob,

 

This is a FEATURE of .NET Smiley Wink. To my understanding, you'll have to modify each client's local .NET security policy. This can generally be found in Control Panel --> Administrative Tools --> Microsoft .NET Framework 1.1 Configuration.

 

Here are a few links for you. Good luck .

 

http://dotnet247.com/247reference/msgs/28/141774.aspx

 

http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx

 

 

 

Thanks Jason, the first link did the trick. looks like we have to do it on every machine that will use the application. could this not be set up from the server?

 

Posted by: Bob Reinkemeyer
Post date: 10/18/2005 8:36:00 AM

RE: .net security policy

Valued Contributor
Valued Contributor

Hi Bob,

 

There is (somewhere) an option to trust all assemblies from the same publisher (or with the same Public Key?). This is not exactly what you're looking for but it means that you can set up each of your clients to trust your programs once and all of your apps (they may have to have strong names) will be trusted from then on.

 

I did this about a year ago but can't remember exactly what I did - if you can't get this to work then post again and I will see what I can dig up...

 

Cheers

Calum

 

Posted by: Calum McLellan
Post date: 10/18/2005 7:39:23 PM