Mark,
The standard place for storing connection strings is indeed the
app/web.config file!
If you wish to use the registry, you must change the account that asp.NET is
running under to an account that has access to that registry key - either
change the ACL on the key or change the rights for the user account.
Martin.
> I'm fairly new to this Web Service game so please feel free to suggest
> something different if it looks like i'm completely off track!
[quoted text clipped - 22 lines]
> Many thanks
> Mark
mark.jerrom - 16 Jan 2006 16:02 GMT
But how do I hide those settings from prying eyes?
I've managed to encrypt (3DES) the settings into a byte array but if i
convert that to a string to write to the XML file, when i then convert
it back to a byte array to decrypt it, its complete nonsense!
Martin Robins - 16 Jan 2006 21:08 GMT
If you search MSDN, there is a method for encrypting parts of the web.config
via REGIIS.exe - alternatively you may wish to look into the DPAPI.
As for your own 3DES not working, I suspect that you may have implemented it
incorrectly?
> But how do I hide those settings from prying eyes?
>
> I've managed to encrypt (3DES) the settings into a byte array but if i
> convert that to a string to write to the XML file, when i then convert
> it back to a byte array to decrypt it, its complete nonsense!