Re: Entering new entry in Web.config produces app error
From: Ken Cox [Microsoft MVP] (BANSPAMken_cox_at_sympatico.ca)
Date: 07/19/04
- Next message: Ken Cox [Microsoft MVP]: "Re: File uploading and downloading - help"
- Previous message: Timothy V: "File uploading and downloading - help"
- In reply to: Razak: "Entering new entry in Web.config produces app error"
- Next in thread: Razak: "Re: Entering new entry in Web.config produces app error"
- Reply: Razak: "Re: Entering new entry in Web.config produces app error"
- Messages sorted by: [ date ] [ thread ]
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:
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.
>
> ----------------------------------------------------------------------------
> ---- -----------------------------------------------------------------------
> ---------
>
>
- Next message: Ken Cox [Microsoft MVP]: "Re: File uploading and downloading - help"
- Previous message: Timothy V: "File uploading and downloading - help"
- In reply to: Razak: "Entering new entry in Web.config produces app error"
- Next in thread: Razak: "Re: Entering new entry in Web.config produces app error"
- Reply: Razak: "Re: Entering new entry in Web.config produces app error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|