Click here to Skip to main content
15,914,222 members
Home / Discussions / C#
   

C#

 
AnswerRe: Update command..plz urgnt Pin
da vinci coder23-May-06 8:59
da vinci coder23-May-06 8:59 
GeneralRe: Update command..plz urgnt Pin
r_e_h_a_n24-May-06 6:39
r_e_h_a_n24-May-06 6:39 
AnswerRe: Update command..plz urgnt Pin
StevenS_Dev23-May-06 11:25
StevenS_Dev23-May-06 11:25 
GeneralRe: Update command..plz urgnt Pin
r_e_h_a_n24-May-06 6:38
r_e_h_a_n24-May-06 6:38 
AnswerRe: Update command..plz urgnt Pin
StevenS_Dev24-May-06 13:23
StevenS_Dev24-May-06 13:23 
QuestionHELP - Embedded null in a string from FoxPro using ADO.Net Pin
Martiankeeper23-May-06 4:48
Martiankeeper23-May-06 4:48 
QuestionAdding a language to the Vis05 IDE [modified] Pin
Ista23-May-06 4:43
Ista23-May-06 4:43 
QuestionConfigurationManager Pin
Chris Losinger23-May-06 4:37
professionalChris Losinger23-May-06 4:37 
we have a web app which uses a class library. and that class library holds all the DB calls. in each DB call in the class library, there's a little section that grabs the DB connection string, like this:
<br />
string connString = ConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString;<br />
SqlConnection conn = new SqlConnection(connString);<br />


works fine.

i now need to make a console app which uses some of the DB stuff from the class library. so, i make a console app project, add a reference to the class lib, and etc.. it builds fine. but when i run it, when it gets to the lines above, it dies because ConfigurationManager is null. so, i guess it's not initialized.

my questions:
1. where is ConfigurationManager initialized in a web app?
2. how does the class library know about it?
3. why doesn't that happen in a console app?


Cleek | Image Toolkits | Thumbnail maker

AnswerRe: ConfigurationManager Pin
Ista23-May-06 4:40
Ista23-May-06 4:40 
GeneralRe: ConfigurationManager Pin
Chris Losinger23-May-06 4:55
professionalChris Losinger23-May-06 4:55 
GeneralRe: ConfigurationManager Pin
Ista23-May-06 4:56
Ista23-May-06 4:56 
GeneralRe: ConfigurationManager Pin
Chris Losinger23-May-06 5:28
professionalChris Losinger23-May-06 5:28 
AnswerNevermind... Pin
Chris Losinger23-May-06 5:52
professionalChris Losinger23-May-06 5:52 
AnswerRe: ConfigurationManager Pin
Dustin Metzgar23-May-06 5:56
Dustin Metzgar23-May-06 5:56 
GeneralRe: ConfigurationManager Pin
Chris Losinger23-May-06 6:27
professionalChris Losinger23-May-06 6:27 
GeneralRe: ConfigurationManager Pin
S. Senthil Kumar23-May-06 22:40
S. Senthil Kumar23-May-06 22:40 
QuestionNeed to Embed Build Date and Time [modified] Pin
Jethro6323-May-06 3:50
Jethro6323-May-06 3:50 
AnswerRe: Need to Embed Build Date and Time [modified] Pin
stancrm23-May-06 4:05
stancrm23-May-06 4:05 
AnswerRe: Need to Embed Build Date and Time [modified] Pin
drc_no123-May-06 4:06
drc_no123-May-06 4:06 
GeneralRe: Need to Embed Build Date and Time [modified] Pin
Jethro6323-May-06 4:18
Jethro6323-May-06 4:18 
AnswerRe: Need to Embed Build Date and Time [modified] Pin
Josh Smith23-May-06 4:21
Josh Smith23-May-06 4:21 
AnswerRe: Need to Embed Build Date and Time [modified] Pin
Dustin Metzgar23-May-06 4:42
Dustin Metzgar23-May-06 4:42 
AnswerRe: Need to Embed Build Date and Time [modified] Pin
Judah Gabriel Himango23-May-06 10:22
sponsorJudah Gabriel Himango23-May-06 10:22 
QuestionTransparant picturebox Pin
timbo@timbo.nl23-May-06 3:40
timbo@timbo.nl23-May-06 3:40 
AnswerRe: Transparant picturebox Pin
Sasuko24-May-06 0:05
Sasuko24-May-06 0:05 

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.