ASP.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 722 Page Views: 

Is it possible for a user browsing a website to read Web.config or Global.asax files?



Posted By: Avi Date: 5 October 2010 11:44:20 AM
 Answer:

No, he can't read these files as access to these files is not possible. This is because the section of Machine.config which hold these files is mapped to HttpForbiddenHandler , prohibit access to these files.


Posted By: avibtech


Date: 5 October 2010 11:44:20 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image kbBNDQ
Related Questions
ASP.Net : When should the @Register directive be used?

When should the @Register directive be used?

The @Register directive is used in the cases when it is required to declare custom control to the W....
Category: ASP.Net Date: 10/3/2010 10:32:19 AM
ASP.Net : What is the purpose of page class ?

What is the purpose of page class ?

Whenever an asp.net page is requested and directed towards the browser , ASP.net creates an instance....
Category: ASP.Net Date: 10/3/2010 5:46:19 AM
ASP.Net : Diffrentiate between between datareader and datagrid?

Diffrentiate between between datareader and datagrid?

Datareader:- It is an onject used to get read-only,forward only data from the database. As the quer....
Category: ASP.Net Date: 10/3/2010 1:49:19 AM
ASP.Net : What is meant by pre-compilation feature of asp.net ?

What is meant by pre-compilation feature of asp.net ?

Pre-Compilation optio allows to compile the website before its is deployed or compile it after being....
Category: ASP.Net Date: 10/2/2010 11:38:19 PM
ASP.Net : What do you mean by fragment caching ?

What do you mean by fragment caching ?

In asp.net there is a mechanism to cache the portion of pages known as page fragment caching. It is....
Category: ASP.Net Date: 10/2/2010 6:52:19 PM