Wrox Programmer Forums
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 26th, 2009, 11:15 PM
Registered User
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Directory Listing Denied Error


I am a newbie in ASP.NET. While running WroxUnited through IIS, I am getting following message.

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.

Any inputs on this?

Old May 27th, 2009, 02:30 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

There are typically two reasons for this error:

1. The folder the error mentions does not contain a "default document", like Default.aspx, Index.htm and so on.

2. IIS is not configured to have a Default Document that matches one you have in your root folder. This usually happens when you install IIS after you installed .NET. In that case Default.aspx is not registered with IIS and no Default.aspx default document is present.

To fix the first problem: simply create a file called Default.aspx. To fix the latter, check the Default Documents settings in IIS and then run aspnet_regiis -i from a command prompt in your .NET framework folder. Searching this board for aspnet_regiis should bring up some helpful posts.

Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing of Directory Content ram_dwivedi Javascript 3 December 9th, 2005 05:13 AM
Ch. 10 Directory listing superkooi BOOK: Beginning ASP 3.0 1 March 3rd, 2005 07:39 AM
FSO directory listing spinout Classic ASP Components 4 November 7th, 2004 03:18 AM
Directory Listing Bleetz Pro JSP 1 September 20th, 2003 06:25 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.