Groups | Blog | Home
all groups > dotnet web services enhancements > july 2004 >

dotnet web services enhancements : Dynamically load web.config and policyCache.xml


pocketpcbook NO[at]SPAM yahoo.com
7/15/2004 1:43:39 PM
is there anyway to dynamically load web.config and policyCache.xml?

We have an application where these two files need to be encrypted, so
we'll be loading the encrypted version and decrypting it to a stream.
We need to then load them into the runtime.

Can this be done???

Tim Bassett

p.s. a email copy of your answer to pocketpcbook@yahoo.com would be
SA
7/15/2004 4:17:23 PM
There might be a way to do this, but generally, what you would be looking
for is to encrypt the contents of specific app settings (such as a
connection string). You can write a wrapper function for your application
that would handle loading the values and decrypting them.

I wouldn't see a reason why you would encrypt debug='false' or WSE settings.
If you are looking to make the app settings tamperproof, I would start by
setting tight NTFS security on the web.config and policyCache.config files.

I am not sure how you can control the ASP.NET environment by using code, but
I feel that's the direction you should be looking for if you really need to
encrypt the entire web.config (in other words, find out how you can change
the settings in web.config using code).

--

Sven
http://www.adduxis.com


[quoted text, click to view]

Dave Bettin
7/21/2004 7:24:24 PM
The policyCache.xml is reloaded by the WSE runtime when it has changed.

Dave Bettin

Blog: http://www.davebettin.com/me/

nntp://news.microsoft.com/microsoft.public.dotnet.framework.webservices.enhancements/<9c529885.0407151243.37858113@posting.google.com>

is there anyway to dynamically load web.config and policyCache.xml?

We have an application where these two files need to be encrypted, so
we'll be loading the encrypted version and decrypting it to a stream.
We need to then load them into the runtime.

Can this be done???

Tim Bassett

p.s. a email copy of your answer to pocketpcbook@yahoo.com would be
appreciated.


[microsoft.public.dotnet.framework.webservices.enhancements]

AddThis Social Bookmark Button