Buy Questpond's video subscriptions on
huge discount
.
Online: 9018
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 ...
How many web.config files that can be there an ASP.NET application?
Posted by
Karam
under
ASP.NET
on 8/23/2011 |
Points: 10
| Views : 11659 | Status :
[Member]
| Replies : 5
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
As much as I know there can be only One web.config file in one ASP.NET application,But it is not always true,it depends on directories or folders something ........Is there anybody can clear me all this, If i am not wrong ?
Karam
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Vuyiswamb
on: 8/23/2011
[Member]
[MVP]
[Administrator]
NotApplicable
|
Points: 25
0
You can have more than one web config in one asp.net application , but it is not advisable to do such a thing, most people that do that , end up with the problem of one config overriding another config.
Thank you for posting at Dotnetfunda
[Administrator]
Karam
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Karam
on: 8/23/2011
[Member]
Starter
|
Points: 25
0
Hi Vuyiswamb ,
In what cases there is a need to use more than one web.config file in one ASP.net application?
Thanks,
Karam
Karam
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Karam
on: 8/23/2011
[Member]
Starter
|
Points: 25
0
I also want to ask mostly this question is asked in MCQ so what is the right answer means Should we say there may be more than one web.config files in one application or there is a limit of number of web.config files that the application can have?
Karam
Karam
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Vuyiswamb
on: 8/23/2011
[Member]
[MVP]
[Administrator]
NotApplicable
|
Points: 25
0
i dont think there is a limit , but one should be enough.
Thank you for posting at Dotnetfunda
[Administrator]
Karam
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Harikatakam
on: 8/24/2011
[Member]
Starter
|
Points: 25
0
Dear Karam,
Usuallay we will have more than web.config files in the cases where we need to give differend kind of authorization for different users.
Consider a scernario you have one website ,inside that you have 5 resourses(usually aspx pages) as below
1. welcome .aspx
2.usermanagement.aspx
3.home.aspx
4.courses.aspx
5.facultyDetails.aspx
in this case you would like to give the access of
usermanagement.aspx
to only admin users
courses.aspx,facultyDetails.aspx
to only registerd users
welcome .aspx,home.aspx
to all users
so inorder to acheive this ,what we will do is
we will create 2 folders like
1.Admin
2.RegisteredUSer
then we need to place
usermanagement.aspx
in admin folder as add a web.config in this folder and in that file we can authorize the only admin users.
we need palce
courses.aspx,facultyDetails.aspx
in RegisteredUSer folder as add a web.config in this folder and in that file we can authorize the only registered users.
rest of tjhe pages we can place in root folder itself.
Karam
, 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 ...