Re: Passing the connection string from a web form to a business lo



inline

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:u0pU0HX5FHA.2552@xxxxxxxxxxxxxxxxxxxxxxx
> re:
>> ConfigurationSettings.AppSettings was obsolete and should be avoided in
>> favor of the new ConfigurationManager.AppSettings
>
> It is *deprecated*, not obsolete.

The warning VS gives is "obsolete".

> You can *still* read web.config values with
> ConfigurationSettings.AppSettings.
>
> At some point in the future, though, it will stop working. (.Net Framework
> 3.0 ?)
>
> re:
>> Sounds like you are saying you should ingore the warnings and continue to
>> use ConfigurationSettings.AppSettings for reading from web.config and
>> app.config files.
>
> Like I said, app.config is for Windows Forms,
> and web.config is for web applications.

Yes, of course.

> He said he was using app.config, but this is a web applications newsgroup.
>
> If he is getting warnings when he uses app.config in a web application,
> then he should, simply, only use app.config for Windows applications,
> and use web.config for web applications.

You get the warning in both Windows apps and Web apps when you use
ConfigurationSettings.AppSettings

Greg



.



Relevant Pages

  • msbuild with msbee error
    ... BCCOMStream.cs: error CS0618: Warning as Error: ... rvices.UCOMIStream' is obsolete: 'Use ... SchemaCollection' is obsolete: 'Use System.Xml.Schema.XmlSchemaSet for ... 'Use XmlReader created by XmlReader.Createmethod ...
    (microsoft.public.dotnet.general)
  • msbuild with msbee error
    ... BCCOMStream.cs: error CS0618: Warning as Error: ... rvices.UCOMIStream' is obsolete: 'Use ... SchemaCollection' is obsolete: 'Use System.Xml.Schema.XmlSchemaSet for ... 'Use XmlReader created by XmlReader.Createmethod ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Squirrelmail local file inclusion
    ... Squirrelmail even warns specifically against using register_globals = on and checks for it when installing. ... other web applications, turn it on specifically ... Yet know we're getting "security advisories" warning, hey, if you change the defaults and ignore all the warnings, you too can write insecure code! ... Adjunct Information Security Officer ...
    (Bugtraq)
  • Re: How to "test" shell script without running it?
    ... Very Good for "test" shell script. ... xall.ksh: warning: line 18: `...` obsolete, ...
    (comp.unix.shell)
  • Re: ConfigurationManager in Beta2
    ... Warning 2 'System.Configuration.ConfigurationSettings.AppSettings' is ... obsolete: 'This method is obsolete, ... >> Error 1 The type or namespace name 'ConfigurationManager' does not exist ... >> A reference to System.Configuration.dll is added to the project. ...
    (microsoft.public.dotnet.languages.csharp)