Modifying Security.config file

J

Juan

Hello:

I'm modifying the
c:\windows\Microsoft.Net\Framework\V1.1.X\Config\security.config file when I
install my c# application. I use the XML namespace to include some policies,
but when I start the "Microsoft .Net framework configuration tool" all the
changes I done dissapear.

Can I modify this file manually? it's legal? What am I doing wrong?

Thanks.

Juan
 
N

Nicole Calinoiu

Juan said:
Hello:

I'm modifying the
c:\windows\Microsoft.Net\Framework\V1.1.X\Config\security.config file when
I install my c# application. I use the XML namespace to include some
policies, but when I start the "Microsoft .Net framework configuration
tool" all the changes I done dissapear.

Can I modify this file manually? it's legal? What am I doing wrong?

Hard to tell without seeing your code. Might you be able to post a sample
that demonstrates the problem?
 
J

Juan

The problem isn't in the code, it is that even I modify security.config XML,
the Framework doesn't catch those changes, it deletes when I start the
policies administration console.

Thanks
 
N

Nicole Calinoiu

Are you sure that you're modifying the right security.config file? Each
version of the .NET Framework (incl. 32- vs 64-bit releases) maintains its
own security policy. Are you viewing the same policy in the UI that you're
attempting to manipulate via the config file?
 

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