Buy Questpond's video subscriptions on
huge discount
.
Online: 4107
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
Why we need web.config file ? [Resolved]
Posted by
Akiii
under
ASP.NET
on 6/9/2011 |
Points: 10
| Views : 6892 | Status :
[Member]
| Replies : 11
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi all,
Why we need
web.config
file if all the configuration details is found in
machine.config
file ?
Any help is appreciated
Thanks and Regards
Akiii
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Nithadeepak
on: 6/10/2011
[Member]
Bronze
|
Points: 50
0
Settings in Machine.config apply machine-level defaults for your server.
For those settings that can be configured on an individual application basis, it is normal for the application to provide a Web.config file.
For more details refer...
http://msdn.microsoft.com/en-us/library/ff648667.aspx
Nitha Deepak
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Nithadeepak
on: 6/10/2011
[Member]
Bronze
|
Points: 50
0
Refer this...
http://dotnetkeeda.blogspot.com/2009/04/application-security-vulnerabilities-in.html
Nitha Deepak
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Nithadeepak
on: 6/13/2011
[Member]
Bronze
|
Points: 50
0
The Web.config file for the Web site and other configuration files in ASP.NET applications automatically inherit the configuration handlers that are declared in the Machine.config file. There is no chance of machine.config to override web.config. For more details refer
http://msdn.microsoft.com/en-us/library/w7w4sb0w.aspx
http://www.dotnetfunda.com/articles/article854-a-beginners-view-webconfig-.aspx
Nitha Deepak
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Ndebata
on: 6/10/2011
[Member]
Starter
|
Points: 25
0
Hi
You need web.config to have settings that will only apply for that particular application.
in case of machine.config, it will apply to all setting (All application running) in your system.
Which in some scenario you may not want.
Some are like you want one of application to be cookieless or to use a different session or lets say different timeout periods for different sites.
Thanks,
Debata
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Akiii
on: 6/10/2011
[Member]
Bronze
|
Points: 25
0
hi narayan...
thanks for the explanation......but do machine.config file override the web.config file in any case ?
Regards
Akiii
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Akiii
on: 6/10/2011
[Member]
Bronze
|
Points: 25
0
hi nitha....
thanks for the links...
Is the web.config file vulnerable to any type of attack because it may happen that my website is hosted in a shared domain ?
Regards
Akiii
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Akiii
on: 6/13/2011
[Member]
Bronze
|
Points: 25
0
thanks nitha for the link....
its always better to store the username and password encrypted in a database......
Regards
Akiii
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Susanthampy
on: 6/13/2011
[Member]
[MVP]
Bronze
|
Points: 25
0
Hi Akiii,
Refer this link,
http://msdn.microsoft.com/en-us/library/ms460914.aspx
Regards,
Susan
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Akiii
on: 6/13/2011
[Member]
Bronze
|
Points: 25
0
hi susan.....for the explanation..
the second link is very nice...
thanks and regards
Akiii
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Susanthampy
on: 6/23/2011
[Member]
[MVP]
Bronze
|
Points: 25
0
Thank u Akiiiii
Regards,
Susan
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
harishsdhage-13224
on: 1/3/2012
[Member]
Starter
|
Points: 25
0
Hi,
If we can delete web.config file from project/website then also application runs. Then why it is so important. Please reply to my id
harish.s.dhage@gmail.com
Akiii
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...