Click here to Skip to main content
16,008,490 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: .NET Framework......... Pin
daviiie24-Apr-06 3:55
daviiie24-Apr-06 3:55 
QuestionDownload and save File from Web Server Pin
dumser124-Apr-06 2:59
dumser124-Apr-06 2:59 
AnswerRe: Download and save File from Web Server Pin
Paddy Boyd24-Apr-06 4:04
Paddy Boyd24-Apr-06 4:04 
GeneralRe: Download and save File from Web Server Pin
dumser125-Apr-06 2:26
dumser125-Apr-06 2:26 
Questionmultiple configuration files Pin
chakkara200324-Apr-06 2:56
chakkara200324-Apr-06 2:56 
AnswerRe: multiple configuration files Pin
Mike Ellison24-Apr-06 8:17
Mike Ellison24-Apr-06 8:17 
AnswerRe: multiple configuration files Pin
Mike Ellison24-Apr-06 8:23
Mike Ellison24-Apr-06 8:23 
GeneralRe: multiple configuration files Pin
chakkara200324-Apr-06 18:36
chakkara200324-Apr-06 18:36 
hello sir,

thanx,

i used the same code from code project. if i gave the file name directly, then am getting one exception. and if i gave file name in with relative path it wont give any exception but didnt get any value. the code is shown below.

settings.config


appSettings
add key="Setting1" value="This is Setting 1 from ettings.config" add key="Setting2" value="This is Setting 2 from settings.config"
add key="ConnectionString" value="ConnectString from settings.confg"
appSettings


and web.config is



appSettings file="//Settings.config"
appSettings


and in cs file

string ConfigAttributeValue = ConfigurationManager.AppSettings["ConnectionString"];
Response.Write(ConfigAttributeValue);

exception i ma getting is

The root element must match the name of the section referencing the file, 'appSettings' (c:\inetpub\wwwroot\referexternalfiles\secondtestfileext\Settings.config

am using framework2 and vs2005

can u help me to get rid off this problem


coolsweety

-- modified at 0:37 Tuesday 25th April, 2006
GeneralRe: multiple configuration files Pin
chakkara200324-Apr-06 20:07
chakkara200324-Apr-06 20:07 
QuestionMemory Management Pin
MaheshSharma24-Apr-06 2:56
MaheshSharma24-Apr-06 2:56 
AnswerRe: Memory Management Pin
Mike Ellison24-Apr-06 8:11
Mike Ellison24-Apr-06 8:11 
GeneralRe: Memory Management Pin
MaheshSharma24-Apr-06 18:32
MaheshSharma24-Apr-06 18:32 
GeneralRe: Memory Management Pin
Mike Ellison26-Apr-06 6:26
Mike Ellison26-Apr-06 6:26 
QuestionSetting width on a table Pin
Ista24-Apr-06 2:49
Ista24-Apr-06 2:49 
AnswerRe: Setting width on a table Pin
CWIZO24-Apr-06 2:51
CWIZO24-Apr-06 2:51 
GeneralRe: Setting width on a table Pin
Ista24-Apr-06 5:55
Ista24-Apr-06 5:55 
GeneralRe: Setting width on a table Pin
CWIZO24-Apr-06 8:37
CWIZO24-Apr-06 8:37 
QuestionSet focus to a textbox in a ASP.NET data repeater after autopostback. Pin
ItalianEngineer24-Apr-06 2:30
ItalianEngineer24-Apr-06 2:30 
QuestionHo to access the HTML control Pin
Sheel Gohe24-Apr-06 2:17
Sheel Gohe24-Apr-06 2:17 
AnswerRe: Ho to access the HTML control Pin
Mike Ellison24-Apr-06 2:29
Mike Ellison24-Apr-06 2:29 
GeneralRe: Ho to access the HTML control Pin
Sheel Gohe24-Apr-06 3:22
Sheel Gohe24-Apr-06 3:22 
GeneralRe: Ho to access the HTML control Pin
dansoft24-Apr-06 4:49
dansoft24-Apr-06 4:49 
GeneralRe: Ho to access the HTML control Pin
Mike Ellison24-Apr-06 5:58
Mike Ellison24-Apr-06 5:58 
AnswerRe: Ho to access the HTML control Pin
CWIZO24-Apr-06 2:49
CWIZO24-Apr-06 2:49 
QuestionSave File Dialog? Pin
MudkiSekhon24-Apr-06 1:46
MudkiSekhon24-Apr-06 1:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.