Re: Entering new entry in Web.config produces app error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ken Cox [Microsoft MVP] (BANSPAMken_cox_at_sympatico.ca)
Date: 07/19/04


Date: Sun, 18 Jul 2004 22:39:01 -0400

You've got to use the correct keywords and syntax. You can't make up your
own hierarchy like that. You'll want something like this:

            <appSettings>
            <add key="Application1" value="MyApplication1" />
            <add key="Setting1" value="MySetting" />
            </appSettings>

See the hierarchy here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfconfigurationsectionsschema.asp

Ken

"Razak" <razak@mmsc.com.my> wrote in message
news:OrLVALTbEHA.1548@TK2MSFTNGP12.phx.gbl...
> Hello, I'm new with ASP.NET.
>
> I've seen samples which has custom 'entry' in Web.Config which works well.
> But when I enter my 'entry', it produces app error:
>
> The entry is like below:-
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <myAspApp>
> <database>
> <add key="connectionString" value="Server=sqlserver; uid=sa;
> pwd=1234; database=testDB" />
> </database>
> </myAspApp>
>
> <system.web>
> .
> .
> .
> </system.web>
> </configuration>
>
>
> Why doesn't it work for me whereas the samples implement the same method
> for
> configuring its app db connection?
>
> Please help. Thanks.
>
> ----------------------------------------------------------------------------
> ---- -----------------------------------------------------------------------
> ---------
>
>



Relevant Pages

  • Entering new entry in Web.config produces app error
    ... I've seen samples which has custom 'entry' in Web.Config which works well. ... But when I enter my 'entry', it produces app error: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VDQ : search "/" how with FC4s GUI??
    ... > entry. ... I just re-read that and I ought to have more coffee before ... the hierarchy using the right-pane. ...
    (Fedora)
  • Re: Many to Many Relationship
    ... You can get more information about many-to-many relationships from my blog ... entry at: ... the country "Germany" can belong to a Western Europe hierarchy ... geographic hierarchies that include political and economic ...
    (microsoft.public.sqlserver.olap)
  • Re: Using pygtk and glade2
    ... > gtk.Bin does not have attribute 'entry' ... Hang on, gtk.Bin isn't even in the combo hierarchy? ... Pádraig. ...
    (comp.lang.python)