Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a developer trying to encrypt part of my web.config file in an ASP.NET site (first time I've tried this...).

Having repeated failures with all types of syntax changes, so perhaps better to post here. Here is one example of a failure (I copied web.config into c:\temp) from cmd prompt hung off Visual Studio 2010 program tree:

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\Program Files\Microsoft Visual Studio 10.0\VC>aspnet_regiis -pef "applicationSettings/Webclient.Properties.Settings" "c:\temp" Encrypting configuration section... The configuration section 'applicationSettings/Webclient.Properties.Settings' was not found. Failed!

C:\Program Files\Microsoft Visual Studio 10.0\VC>

  • Originally, I posed the question in SO here (no real help after 3 days):

  • Then I posted question here for help:

  • Latest forum where I've sought help:

  • Here is the web.config: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <section name="WebClient.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <section name="FileServiceProxy.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> </sectionGroup> </configSections> <applicationSettings> <WebClient.Properties.Settings> <setting name="GROUPERpassword" serializeAs="String"> <value>12345abcde</value> </setting> <setting name="MARLINpassword" serializeAs="String"> <value>abcdef12345</value> </setting> </WebClient.Properties.Settings> <FileServiceProxy.Properties.Settings> <setting name="FileServiceProxy_ASMXproxy_FileService" serializeAs="String"> <value>http://MDWDATA/sdkTrimFileServiceASMX/FileService.asmx</value> </setting> </FileServiceProxy.Properties.Settings> </applicationSettings> <connectionStrings/> <system.web> <trace enabled="false" pageOutput="true" requestLimit="40" localOnly="false"/> <compilation debug="false" targetFramework="4.0"> </compilation> <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm"/> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/> <httpRuntime maxRequestLength="65536" /> </system.web> <system.webServer> <defaultDocument> <files> <remove value="default.aspx" /> <remove value="index.cfm" /> <remove value="iisstart.htm" /> <remove value="index.html" /> <remove value="index.htm" /> <remove value="Default.asp" /> <remove value="Default.htm" /> <remove value="FileService.asmx" /> <add value="ColdFusionFormPOSTtoGROUPER.htm" /> </files> </defaultDocument> <security> <requestFiltering> <requestLimits maxAllowedContentLength="67108864" /> </requestFiltering> </security> <tracing> <traceFailedRequests> <add path="*"> <traceAreas> <add provider="ASP" verbosity="Verbose" /> <add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" /> <add provider="ISAPI Extension" verbosity="Verbose" /> <add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI" verbosity="Verbose" /> </traceAreas> <failureDefinitions statusCodes="401.3,500" /> </add> </traceFailedRequests> </tracing> </system.webServer> </configuration>
share|improve this question
Formatting issue: I have tried everything I know about how to show the XML of the web.config file but all I get is the little mal-formed snippet. Proper look at web.config content is at other links above if you care to help. – DaniellaMercuryFan Dec 16 '11 at 19:31
I read for a minute and was really having a hard time putting the different threads together - I think it'd be a great help to those trying to answer if you could possibly summarize some of the outside resources here? – Shane Madden Dec 16 '11 at 23:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.