Using ASPNet_Regiis to encrypt custom configuration section - can you do it?

前端 未结 5 2041
南旧
南旧 2020-12-23 17:18

I have a web application with a custom configuration section. That section contains information I\'ld like to encrypt (was hoping to use ASPNet_RegIIS rather than do it mys

5条回答
  •  梦毁少年i
    2020-12-23 17:43

    This is a total hack, but I'm not sure that there's another way to do it without strongly naming the assembly that defines your custom section and GACifying it (although you mentioned that didn't work, either, and I'm not sure why it wouldn't). Since aspnet_regiis runs in the < drive >:\Windows\Microsoft.Net\Framework\< version > folder (in WinXP), you can copy the DLL that defines your config section into the relevant Framework\< version > folder, and then it should work.

提交回复
热议问题