Last post Dec 29, 2011 10:10 AM by b471code3
Dec 28, 2011 04:13 PM|viperassasin|LINK
Whenever I try to encrypt a webconfig file on my server I get A configuration file cannot be created for the requested Configuration object.
When I do this C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -pe "connectionStrings" -app "/TestEncrypt" -prov "DataProtectionConfigurationProvider"
is there somethin in IIs I need to do to my site to make this work correctly?
Note same thing when use 2.0.5.... framework
Dec 29, 2011 10:10 AM|b471code3|LINK
I'm assuming you already
checked this out but what I'd pay special attention to is the -site option. If the app's web.config you are trying to encrypt is not under the DefaultWebSite or you have deleted and recreated the DefaultWebSite, the -site option will need to be specified.
For example, when IIS is installed, a Web site named "Default Web Site" is created as site 1. In pages served from that site, the INSTANCE_META_PATH server variable returns "/LM/W3SVC/1". If you do not specify a
-site option, site 1 is used.