Recently, I came across an Interview Question which read - "When is web.config called?".
I am not very sure of the exact answer. So, I am posting it to find the correct answer. But, I think when the first page of the application is called or it could be when the App Domain is created?
-----------------------------------------------
Please click Mark as Answer if this helped.
I think every time when we make request on page. It will be called. I make an assumption because every time we make change in web config, w3wp process can identify it and thus recycle it.
I think every time when we make request on page. It will be called. I make an assumption because every time we make change in web config, w3wp process can identify it and thus recycle it.
CMIIW,
Regards,
Near
I am not convinced.
-----------------------------------------------
Please click Mark as Answer if this helped.
Asp .net stores the sessions in different ways. By default the session is stored in the asp .net process. You can always configure the application so that the session will be stored in one of the following ways.
1) Session State Service
2) SQL Server
3) InProc
Inproc is mostly used for development purposes. The biggest advantage of using this approach is the applications will run faster when compared to other Session state types. But
the disadvantage is Sessions are not stored when there is any problem that occurs with the application, when there is a small change in the files etc., Also there could be frequent loss of session data experienced..
aparnagarg
Member
279 Points
175 Posts
When is web.config called?
Mar 10, 2008 10:33 AM|LINK
Recently, I came across an Interview Question which read - "When is web.config called?".
I am not very sure of the exact answer. So, I am posting it to find the correct answer. But, I think when the first page of the application is called or it could be when the App Domain is created?
Please click Mark as Answer if this helped.
Near
Member
589 Points
172 Posts
Re: When is web.config called?
Mar 11, 2008 04:37 AM|LINK
Hum...
I think every time when we make request on page. It will be called. I make an assumption because every time we make change in web config, w3wp process can identify it and thus recycle it.
CMIIW,
Regards,
Near
aparnagarg
Member
279 Points
175 Posts
Re: When is web.config called?
Mar 11, 2008 10:01 AM|LINK
I am not convinced.
Please click Mark as Answer if this helped.
aparnagarg
Member
279 Points
175 Posts
Re: When is web.config called?
Mar 18, 2008 08:08 AM|LINK
Nobody coming up with a solutuion??
Please click Mark as Answer if this helped.
bb.geetha
Member
14 Points
2 Posts
Re: When is web.config called?
May 28, 2008 10:20 AM|LINK
Hello..
Web.config is an xml configuration file. This never gets called directly unless we need to retrieve the configuration setting.
.NET
Near
Member
589 Points
172 Posts
Re: When is web.config called?
Jun 26, 2008 02:34 AM|LINK
But, why session is restarted when you change the web config?
I think it should be a process to check whether web config is still the same or not.
Right?
bb.geetha
Member
14 Points
2 Posts
Re: When is web.config called?
Jun 26, 2008 09:32 AM|LINK
Asp .net stores the sessions in different ways. By default the session is stored in the asp .net process. You can always configure the application so that the session will be stored in one of the following ways.
1) Session State Service
2) SQL Server
3) InProc
Inproc is mostly used for development purposes. The biggest advantage of using this approach is the applications will run faster when compared to other Session state types. But the disadvantage is Sessions are not stored when there is any problem that occurs with the application, when there is a small change in the files etc., Also there could be frequent loss of session data experienced..
Near
Member
589 Points
172 Posts
Re: When is web.config called?
Jun 27, 2008 02:36 PM|LINK
I know. But It didn't answer the questions :)
jagu_rita
Member
23 Points
72 Posts
Re: When is web.config called?
Oct 27, 2008 08:54 PM|LINK
BUMP. Experts can you post answer for this question.
sureshmdb
Member
376 Points
81 Posts
When is web.config called?
Jun 18, 2009 11:03 AM|LINK
Hi
Did you get the solution of your query When is web.config file called.[8-)]?
Can you help me if your doubt clear.We are intilizing the page properties for in web.config file when these are applied.
Mark as answer if my response is useful to you.