Solved

ASP.NET restrict folder view access

Posted on 2010-11-21
1
414 Views
Last Modified: 2012-05-10
I'm building a VS2010 ASP.NET website and have an error log folder for saving updated error messages.  I do not want users to be able to browse my "ErrorLogs" folder, which is on the top level of the site.  Here's my current web config markup, but it seems to not be working.  What is wrong with my path?

<location path="ErrorLogs">
            <system.webServer>
                  <directoryBrowse enabled="false"/>
            </system.webServer>
      </location>

Where in the web config should this be?  I cannot locate any reference for this code.

Thanks.
0
Comment
Question by:Phil5780
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
Alfred1 earned 500 total points
ID: 34184736
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question