Avatar of mathieu_cupryk
mathieu_cuprykFlag for Canada

asked on 

need to add something from app.config to web.config.

I have the following:

 <setting name="Groups" serializeAs="Xml">
                <value>
                    <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                        <string>GL CA Corporate Data</string>
                        <string>GL CONT Contractors</string>
                        <string>GL IT SolutionDelivery</string>
                    </ArrayOfString>
                </value>
            </setting>

It needs to be added to web.config

What should the tags be are do they need to be changed.
C#.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
mathieu_cupryk
Avatar of elimesika
elimesika
Flag of Israel image

HI

You can copy it "as is" to your web.config file
Avatar of mathieu_cupryk

ASKER


C:\SvnWork\InitialPriceReporting\DotNet\InitialPriceReportingService\Web.Config(19): Build (web): Unrecognized configuration section setting.

<?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
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->

      
      
            
   
 

 
   
     
        GL CA Corporate Data
        GL CONT Contractors
        GL IT SolutionDelivery
     
   
 
      
            <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
            
                  
                        
                        
                        
                        
                        
            <!--
            The  section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
            
   

   

    <!--
            The  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.

       
           
           
       
        -->
      

Avatar of elimesika
elimesika
Flag of Israel image

What is the version of your VS ?
Avatar of mathieu_cupryk

ASKER

vs 2005
Avatar of mathieu_cupryk

ASKER

framework 2.0
Avatar of elimesika
elimesika
Flag of Israel image

You have also to copy the  entry to web.config from your app.config
Avatar of mathieu_cupryk

ASKER

k.
Avatar of mathieu_cupryk

ASKER

elimesika, can u help me do this or what?
Please.
ASKER CERTIFIED SOLUTION
Avatar of elimesika
elimesika
Flag of Israel image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of mathieu_cupryk

ASKER

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="InitialPriceReporting.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
      <section name="InitialPrices.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <connectionStrings>
    <add name="InitialPriceReporting.Properties.Settings.ConnectionString"
      connectionString="Data Source=UCWB2.wpg.cwb.ca;Persist Security Info=True;User ID=init_price;Password=init_77day;Unicode=True"
      providerName="System.Data.OracleClient" />
  </connectionStrings>
  <applicationSettings>
    <InitialPriceReporting.Properties.Settings>
      <setting name="InitialPriceReporting_InitialPriceReportingServiceWS_InitialPriceReportingService"
        serializeAs="String">
        <value>http://wpgdnac02/InitialPriceReportingService/InitialPriceReportingService.asmx</value>
      </setting>
    </InitialPriceReporting.Properties.Settings>
<setting name="Groups" serializeAs="Xml">
      <value>
        <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <string>GL CA Corporate Data</string>
          <string>GL CONT Contractors</string>
          <string>GL IT SolutionDelivery</string>
        </ArrayOfString>
      </value>
    </setting>
  </applicationSettings>
</configuration>
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo