473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 4689
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.