Click here to Skip to main content
15,894,291 members
Home / Discussions / C#
   

C#

 
QuestionReading JPG height and width without loading image Pin
Ach1lles4-Apr-06 5:41
Ach1lles4-Apr-06 5:41 
QuestionAssembly Directory Pin
peppepinna4-Apr-06 5:09
peppepinna4-Apr-06 5:09 
AnswerRe: Assembly Directory Pin
alexey N5-Apr-06 23:58
alexey N5-Apr-06 23:58 
Questionusing another program in your app Pin
naglbitur4-Apr-06 3:26
naglbitur4-Apr-06 3:26 
AnswerRe: using another program in your app Pin
Marc L4-Apr-06 3:58
Marc L4-Apr-06 3:58 
GeneralRe: using another program in your app Pin
naglbitur4-Apr-06 4:55
naglbitur4-Apr-06 4:55 
GeneralRe: using another program in your app Pin
Marc L4-Apr-06 7:36
Marc L4-Apr-06 7:36 
QuestionWeb.Config and App.Config issues Pin
kpkr4-Apr-06 2:46
kpkr4-Apr-06 2:46 
Hi,
I have a question about config files. I have the following in my application..

1. ASP.NET web application with a web.config
2. C# class library (BL and DAL) with an App.config
3. Two windows Console Applications with their own App.Config.

Now I try to retrieve a value in the DAL using this code.

<pre>

string str = ConfigurationSettings.AppSettings.Get("Value");

</pre>

This code works fine when the windows applications are running. But when the Webapplication is running and invokes an method in the Data Access layer, the piece of code tries to refer to the Web.Config instead of its own app.config even though it is in the DAL. Is there any code that will tell DAL to refer to its own config file?

Can anyone tell me if I can do what i trying to do and if yes what changes do I need to make to my code for it to work?.
I do need the app.config at the DAL level as there are some settings common to both the windows as well as web application and that is the best place to put it.


Help Please,
Thanks Kalyan
AnswerRe: Web.Config and App.Config issues Pin
leppie4-Apr-06 6:38
leppie4-Apr-06 6:38 
GeneralRe: Web.Config and App.Config issues Pin
kpkr4-Apr-06 9:45
kpkr4-Apr-06 9:45 
QuestionCurrent selection in AxWebBrowser Pin
Dima Filipiuk4-Apr-06 2:35
Dima Filipiuk4-Apr-06 2:35 
Questionc# image help Pin
tonydevlin4-Apr-06 2:18
tonydevlin4-Apr-06 2:18 
AnswerRe: c# image help Pin
Expert Coming4-Apr-06 12:13
Expert Coming4-Apr-06 12:13 
QuestionWeb Service Ordering Pin
si_694-Apr-06 2:16
si_694-Apr-06 2:16 
AnswerRe: Web Service Ordering Pin
Glaxalg4-Apr-06 4:24
Glaxalg4-Apr-06 4:24 
GeneralRe: Web Service Ordering Pin
si_694-Apr-06 4:52
si_694-Apr-06 4:52 
QuestionData Grid View Control Help Pin
Naveed Shoaib4-Apr-06 1:50
Naveed Shoaib4-Apr-06 1:50 
QuestionGetting router's ip address Pin
Jisha Pappachan4-Apr-06 1:14
Jisha Pappachan4-Apr-06 1:14 
AnswerRe: Getting router's ip address Pin
Antony M Kancidrowski4-Apr-06 6:24
Antony M Kancidrowski4-Apr-06 6:24 
AnswerRe: Getting router's ip address Pin
Guffa4-Apr-06 10:04
Guffa4-Apr-06 10:04 
QuestionHow to show .CHM files in C#? Pin
Abhijeet Ballal3-Apr-06 23:43
Abhijeet Ballal3-Apr-06 23:43 
AnswerRe: How to show .CHM files in C#? Pin
Tehnoon4-Apr-06 1:22
Tehnoon4-Apr-06 1:22 
GeneralRe: How to show .CHM files in C#? Pin
Abhijeet Ballal4-Apr-06 1:51
Abhijeet Ballal4-Apr-06 1:51 
Questioncompressing video files before saving Pin
prgramya3-Apr-06 23:04
prgramya3-Apr-06 23:04 
Questionproblem using Response.Flush Pin
smadan3-Apr-06 22:53
smadan3-Apr-06 22:53 

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.