Recompilation requires "Increase Assembly Trust"

  • Thread starter Thread starter NonDeterministic
  • Start date Start date
N

NonDeterministic

Hello!

Everytime I recompile a program with csc, I have to go to
".NET Framework 2.0 Configuration" / Runtime Security Policy
and increase the assembly trust to make it run properly.
How can I automate this process, or even disable the security
restrictions for, let's say
- a whole directory,
- the user 'administrator',
- or even completely?

Why other software, that uses .NET, don't need any security
tweaks?

Thanks in advance!
 
I am not sure what is causing your issue, but it likely deals with GACed
components or coding against portions of the Windows API (via the BCL, of
course) that hit security portions of windows.

You CAN break down security by editing the .NET security policy. You can
even edit the different trust levels and open it up wide. This will help you
solve the compile problem, but will open a potential security hole on the
computer. If it is a shielded dev computer, this MIGHT be acceptable, but it
would be better to figure out what in this app is causing the issue, as
decreasing security is rarely the best solution.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

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

Back
Top