Need to put this in a web.config file. Transfer a collection from app.config to web.config.

<!--<setting name="Groups" serializeAs="Xml"> 

<ArrayOfString xmlns:xsi=""
<string>GL CA Corporate Data</string>
<string>GL CONT Contractors</string>
<string>GL IT SolutionDelivery</string>
I need to put this in the below web.config.<?xml version="1.0"?><!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
<add name="InitialPriceReporting.Properties.Settings.ConnectionString"
connectionString="Data;Persist Security Info=True;
User ID=init_price;Password=init_77day;Unicode=True" providerName="System.Data.OracleClient"/></connectionStrings>
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
<compilation debug="true">
<add assembly="Microsoft.Practices.EnterpriseLibrary.Common, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.Practices.EnterpriseLibrary.Data, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Transactions, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.DirectoryServices, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Management, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
<authentication mode="Windows"/>
<identity impersonate="true" />
<customErrors mode="Off"/>
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />

It is giving me grief.

Thank you!
7/22/2008 8:08:00 PM
📃 93655 articles.

💬 1 Replies

In a winforms app, a typed Settings object is automatically created for you which runs this pretty nicely, but in an ASP.NET app, you don't have this luxury. I believe you will have to create a custom configuration section to be able to fit this into your web.config.
Here's a great article that helped me through:
It is not easy, it is not fun. But it's great when it works :-)

If this post was useful to you, please mark it as answer. Thank you!
7/22/2008 10:23:07 PM