Difference between web.config and app.config?
Answers were Sorted based on User's Feedback
Answer / k kranti kumar
web.config file is for asp.net web applications
app.config file is for .net windows applications
| Is This Answer Correct ? | 44 Yes | 7 No |
Answer / pravinkumar
app.config file is for .net windows applications
web.config file is for asp.net web applications
| Is This Answer Correct ? | 18 Yes | 7 No |
Answer / reva ram sahu
web.config is used with web applications. web.config will by
default have several configurations required for the web
application. You can have a web.config for each folder under
your web application.
app.config is used for windows applications. When you build
the application in vs.net, it will be automatically renamed
to <appname>.exe.config and this file has to be delivered
along with your application.
You can use the same method to call the appsettings values
from both config files :
System.Configuration.COnfigurationSettings.AppSettings["Key"]
| Is This Answer Correct ? | 6 Yes | 2 No |
What is session tracking & methods?
Suppose you want a certain ASP.NET function executed on MouseOver over a certain button. Where do you add an event handler?
How to remove cache object in asp.net?
Explain server control extensibility with reference to asp.net 2.0 ?
What is difference between user control and custom control?
What is state management in asp.net and define Client-side state management and Server-side state management?
Which template must you provide, in order to display data in a Repeater control?
To which side ( server ? client) does the user input data validation occur? Explain the reasons for it?
How do you define authentication in Web.Config?
2 Answers Accenture, BirlaSoft, IBM,
What are the validation controls ?
Why do we need Web Services?
What is difference between mvc and asp.net? : Asp.Net MVC
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)