Blog Home  Home Feed your aggregator (RSS 2.0)  
What did you learn today? - Exporting Code Access Security settings to an XML file
Phil Denoncourt's Technology Rants
 
 Friday, October 07, 2005

I've given a introductory talk on Code Access Security a few times now. As I'm showing all the pieces from an administrative point of view (Code Groups, PermissionSets), and I go to create a code group, there is an option in the wizard that allows you to import the settings from an XML file. People listening to my talk always, without fail, ask, "How can I generate that XML file". It's fustrating, because there is no clear way to do. No menu option, no command line utility. I alway mean to research how to do it, but never seem to find the time. A couple of nights ago, I looked into it. It turns out on each PermissionSet, or CodeGroup, there is a ToXml method. Since it appears the only way to get the XML is using that method, I wrote a utility that will export the XML to a file. You can download it here.

Friday, October 07, 2005 1:09:30 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]   Development | DotNet  | 
Comments are closed.
Copyright © 2010 Phil Denoncourt III. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: