Cannot run .Net app from network drive (System.Security.Policy.PolicyException)

E

Edward J. Stembler

I cannot get my C# .Net application to run from a network
folder. I get a "Just-In-Time Debugging" dialog box
which states: "An
exception 'System.Security.Policy.PolicyException' has
occurred in MyApp.exe.

I'm fairly certain that this is occurring because .Net is
running my application in the LocalIntranet_Zone which
only has limited rights. I believe that I have to
configure my application using "Administrative Tools >
Microsoft .Net Framework 1.1 Configuration", however,
that's where I get lost. How exactly do I configure it?
I was able to create a new fulltrust "code group"
under "Runtime Security Policy > Machine > Code Groups >
All_Code", but I don't see where I can associate my
application with this new code group. I know you can add
your application to the "Applications" section, but I
don't see where I tell it which "code group" to use.

Anyone know how to do this? Microsoft needs a step-by-
step article for this stuff.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top