472,989 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

System.security.Policy.PolicyException

When using Visual c++ in Visual Studio.net, I am receiving errors "An
unhandled exception of type 'System.Security.Policy.PolicyException" when
trying to "build withoug debugging". I only receive this error when I(or
students) save the project to the network.

I can't seem to find anything on Microsoft's website. Is there a way around
this? Or do all programs have to be compiled from the local drive?

Thanks,
Chris
Nov 16 '05 #1
2 4676
You can either relax the .Net security policy or define a code group that
includes the specific share that you want to allow code to run from.

In a normal VS 2003 install, start "Microsoft .Net Framework 1.1
Configuration" under "Administrative Tools" in the start menu or control
panel. Select "Configure Code Access Security Policy" from the tool. The
rest should be pretty self explanatory.

VS 2002 has a similar path, but I can't check that right now.

Ronald Laeremans
Visual C++ team

"Chris Maloney" <ct***@nni.com> wrote in message
news:er**************@TK2MSFTNGP11.phx.gbl...
When using Visual c++ in Visual Studio.net, I am receiving errors "An
unhandled exception of type 'System.Security.Policy.PolicyException" when
trying to "build withoug debugging". I only receive this error when I(or
students) save the project to the network.

I can't seem to find anything on Microsoft's website. Is there a way around this? Or do all programs have to be compiled from the local drive?

Thanks,
Chris

Nov 16 '05 #2
Excellent. That took care of it.

Thanks!

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You can either relax the .Net security policy or define a code group that
includes the specific share that you want to allow code to run from.

In a normal VS 2003 install, start "Microsoft .Net Framework 1.1
Configuration" under "Administrative Tools" in the start menu or control
panel. Select "Configure Code Access Security Policy" from the tool. The
rest should be pretty self explanatory.

VS 2002 has a similar path, but I can't check that right now.

Ronald Laeremans
Visual C++ team

"Chris Maloney" <ct***@nni.com> wrote in message
news:er**************@TK2MSFTNGP11.phx.gbl...
When using Visual c++ in Visual Studio.net, I am receiving errors "An
unhandled exception of type 'System.Security.Policy.PolicyException" when trying to "build withoug debugging". I only receive this error when I(or students) save the project to the network.

I can't seem to find anything on Microsoft's website. Is there a way

around
this? Or do all programs have to be compiled from the local drive?

Thanks,
Chris


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lorenzo | last post by:
hi you all, first of all apologies for having cross-posted this message but really i did not know where to post it. please let me know what ng you consider the most suitable for the described...
30
by: Sean R. Lynch | last post by:
I've been playing around with Zope's RestrictedPython, and I think I'm on the way to making the modifications necessary to create a capabilities-based restricted execution system. The idea is to...
6
by: Ken Varn | last post by:
I am trying to remote debug a C# application but the debugger is reporting the following exception: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module....
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
0
by: Michael | last post by:
Would appreciate any suggestions on how to resolve the exception I am getting when trying to run a VB.net application deployed on one computer in my home network when executed from a second...
1
by: jmurphy95 | last post by:
Hi there, I have a Windows application that I'm running from a shared drive that needs to access file/directory resources on other drives. I've done a lot of reading, but a lot of the material...
4
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
5
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.