Question

IIS 7: 404 Error on Single Directory Loading ASP Pages

Asked by: jkdarkfire

This problem is driving me crazy. I am running IIS 7 to power our corporate web page. These pages are .asp pages. The web site works fine and all pages display properly except for the files in a single directory. These files all return a "404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable." error. The files are present on the server. I have checked permissions and the NTFS permissions are correct. They are exactly the same as on all the other directories which work in this site. I have deleted the files and uploaded them again. No difference.

If I attempt to load the pages directly from the web server, I get a different error. This returns a "No input file specified." error. I have seen this error dealing with php when the php handler is not working properly but I've never seen it with ASP, particularly when all the other .asp files on the web site work fine.

On top of that, the pages that won't load have loaded fine in the past. We tested the entire site before we launched it. Launched the site and then months later find that customers are reporting that the files in this one directory aren't loading.

I am completely at a loss here. Does anyone have any ideas?

Thanks!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-27 at 11:50:57ID24603948
Tags

IIS

,

404

,

IIS 7

,

ASP

,

No input file specified

Topic

Microsoft IIS Web Server

Participating Experts
4
Points
0
Comments
28

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. IIS/NTFS Logon Security Using ASP
    Question: How I see it.... Ok there is NTFS Security on the Web folders, say I want only Domain Users to logon to this site, I put NTFS rights on that folder manualy. User goes to the site and a logon box pops up and ask the user to log in. They log in and get access. Is ...
  2. Is there a way to force IIS to return an image if the image re…
    Hello, I have an ecommerce website that Im putting together, and not all products have images. Is there a way to force IIS (windows 2000 server) to return a standard "not available" image when the image requested is unavailable? Answer is worth 500 points. THanks,...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: bvflorinPosted on 2009-07-27 at 12:00:12ID: 24954750

You have special characters in the file name? Try to rename the file!

 

by: jkdarkfirePosted on 2009-07-27 at 12:03:17ID: 24954787

Hey bvflorin,

Nope, no special characters in the file name. In this case, the folder name is news and the file name is news.asp. Each and every file in this directory fails to load. If I go to a different folder like support and load support.asp which is another folder in the same site, the page loads fine. Very strange.

 

by: bvflorinPosted on 2009-07-27 at 12:04:52ID: 24954804

Try to move\remove the news folder and recreate it, after recreate the news.asp with notepad and add the content from the old file there.

 

by: jkdarkfirePosted on 2009-07-27 at 12:23:32ID: 24954954

Hey bvflorin,

Went ahead and gave that a try. No difference. I moved the old news folder to the desktop of the machine, created a new news folder, created a new news.asp with Notepad, copy and pasted the content into the new file, saved it and tried to load the site in my browser. Same error.

Thanks!

 

by: bvflorinPosted on 2009-07-27 at 12:26:56ID: 24954990

Please check also the the IIS logs and give me the results! DOWNLOAD this tool also, install it, run it, and provide me the results!

 

by: jkdarkfirePosted on 2009-07-27 at 13:39:35ID: 24955774

Hey bvflorin,

Can you tell me the exact steps and command line syntax you want me to use for the Authdiag command?

Thanks!

 

by: bvflorinPosted on 2009-07-27 at 13:45:56ID: 24955836

Install it and go to Programs -> IIS Diagnostics -> AuthDiag, select task Check Authentication

 

by: jkdarkfirePosted on 2009-07-27 at 14:01:35ID: 24955983

Hey bvflorin,

When I run the program, all I get is the attached screenshot. No UI loads. Thanks!

 

by: bvflorinPosted on 2009-07-27 at 14:13:50ID: 24956078

Please try <font id="linkPlaceHolder">THIS </font>to trace the auth issue, i forgot that you are using IIS7, not 6... :(

 

by: bvflorinPosted on 2009-07-27 at 14:14:16ID: 24956084

forgot the LINK

 

by: wolfman007Posted on 2009-07-28 at 04:38:17ID: 24959622

Do Classic ASP pages work in other folders on the website?

Have you tried copying your news.asp file to another folder, and seeing if it works there?

Try creating a folder called test under wwwroot and copying the news.asp there and see if it works.

If it does then it might be a problem with the hanlder mapping for Classic ASP on your news directory.

Use the instructions below to verify that there is a handler mapping for ASP on your news directory.

Configuring Handler Mappings in IIS 7
http://technet.microsoft.com/en-us/library/cc771240(WS.10).aspx

Edit a Handler Mapping
http://technet.microsoft.com/en-us/library/cc770990(WS.10).aspx

1) Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager. For information about navigating to locations in the UI, see Navigation in IIS Manager.

2) In Features View, on the server, site, or applicationHome page, double-click Handler Mappings.

3) In the grid, select a handler mapping.

4) In the Actions pane, click Edit.

5) Edit the mapping as needed and click OK.

 

by: jkdarkfirePosted on 2009-07-28 at 09:16:29ID: 24962242

Hey wolfman007,

Yes, all other folders in the same site display classic ASP pages without any problem. Only the news subfolder is having issues. I dropped the news.asp file into another subdirectory and it works fine.

I looked at the Handler Mappings for the subfolder in question and it has Classic ASP enabled through inheritance like the other folders that work do. I checked the NTFS security on the folder that works and the one that doesn't. The permissions are exactly the same.

It clearly has something to do with the news subfolder but I have absolutely no idea what it could be.

I've attached a screenshot of my Handler Mappings.

I am also working on gathering the logs requested by bvflorin.

Thanks!

 

by: bvflorinPosted on 2009-07-28 at 09:22:34ID: 24962294

One more thing please. Change the news folder name also the news.asp to something else.

 

by: jkdarkfirePosted on 2009-07-28 at 10:56:15ID: 24963159

Hey everyone,

Renaming the news folder to news1 allows the news.asp file to load. If I rename it back from news1 to news, it no longer loads in the news/news.asp location.

Is there somewhere in the IIS configuration files where something could be stored about the news folder that I need to flush out?

 

by: bvflorinPosted on 2009-07-28 at 10:59:24ID: 24963186

;) IIS7 bug... :D looollll. glad to see that we resolved! ;) and glad to see that we discover it! ;)

 

by: jkdarkfirePosted on 2009-07-28 at 11:00:33ID: 24963198

Hey bvflorin,

Unfortunately, this isn't resolved yet. When I rename news1 back to news the file wont load out of the news location. I need to get it back to having news\news.asp loading. I know it has something to do with the news folder but I don't know where IIS could possibly be messing this up.

 

by: bvflorinPosted on 2009-07-28 at 11:01:03ID: 24963202

I don't know nothing regarding news folder. Now i see this for the first time!

 

by: bvflorinPosted on 2009-07-28 at 11:02:01ID: 24963212

you can change the folder path in the application! ;)

 

by: jkdarkfirePosted on 2009-07-28 at 14:01:32ID: 24965149

Wolfmann07,

Do you have any idea on this issue? I would like to resolve the issue instead of trying to setup a way to forward people off to a new location. There must be something in a .config file or something which is leading to this. I have a bunch of people that upload web changes to the news folder and I really don't want to have to go through telling them to upload to a new folder. Habits are hard to break.

Thanks!

 

by: wolfman007Posted on 2009-07-29 at 02:42:23ID: 24968490

Hi

Try having a look inside the applicationHost.config file for your server and web.config files for your website and check if you have any rogue entries in the requestFiltering section that might be blocking access to the news folder.

Have a look at the following website.

IIS7 blocks viewing access to files in bin and other asp.net folders
http://weblogs.asp.net/owscott/archive/2008/03/05/iis7-blocks-viewing-access-to-files-in-bin-and-other-asp-net-folders.aspx

<system.webServer>
<security>
<requestFiltering>
<hiddenSegments>
<remove segment="bin" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:

Select allOpen in new window

 

by: jkdarkfirePosted on 2009-08-13 at 07:38:22ID: 25088752

Hey everyone,

Still haven't got anywhere with this. I checked the applicationHost.config file and there are no rouge entries that I can find.

I'm reaching the point where I might just have to rebuild the entire site in IIS and see if that resolves it. Does anyone have any additional ideas before I take that route?

Thanks!

 

by: WWFTECHPosted on 2009-08-19 at 13:38:10ID: 25137071

Check to see if you have any other web sites that are using the same name within the same application pool. I have been having the same problem in IIS6 with a folder named meridian today. I had one virtual directory named meridian, which was installed by an application, and one real directory named meridian. The virtual directory existed first. Whenever I try to access anything from the real meridian directory, I get 404. If I rename it to anthing other than meridian it works fine. I just tried removing the virtual directory that the application created but that did not resolve it. The application may have setup other settings in IIS6 that may be causing a name conflict in some way... Shrug...

 

by: jkdarkfirePosted on 2009-08-19 at 13:52:29ID: 25137214

Thanks for the comment WWFTECH. I went ahead and created a new application pool and assigned it to the site. I cycled the site off and on. Same problem. I'm completely stumped and I have this funny feeling deleting the entire site and adding it back isn't going to change anything.

 

by: WWFTECHPosted on 2009-08-19 at 14:07:06ID: 25137362

I also tried the suggestion on the following page but it did not work for me. Perhaps you will have better luck?
http://patricknielsen.net/2009/01/iis-virtual-directory-404-for-all-files.html

summary:
Rename the folder and then create a new folder with the original name, which will be empty. Then go to that folder in IIS manager and delete it. Rename the original back to its original name or recreate the original virtual directory.

 

by: jkdarkfirePosted on 2009-08-19 at 14:17:00ID: 25137469

Hello WWFTECH,

Gave that a go and no difference. I even deleted the entire site and added it back. No difference.

I'm guessing this is going to be an issue for Microsoft.

 

by: jkdarkfirePosted on 2009-08-20 at 08:40:55ID: 25143913

This is a complete and utter disaster. I went ahead and took the folder and renamed it to a different name. The intention was to forward requests from the old /news folder to a new folder. The redirect won't work either resulting in a 404.

I don't understand this at all, this is just a plain vanilla folder with a few .asp pages on it. It used to work in the /news folder and then suddenly stopped with as far as I can tell no changes being made to the box (only two people have access).

i don't understand how deleting the entire site from IIS and recreating it wouldn't resolve this weirdness. This got me thinking that it has to be some kind of a global block. I went into one of my other sites and created the same news directory with the same files. I loaded that page through the different domain name and site. Boom, same failure.

Is there somewhere global in IIS that folder blocks can be created? It appears any site on the machine that I create a news folder in, the .asp pages in that news folder won't load.

Thanks!

 

by: jkdarkfirePosted on 2009-08-20 at 09:12:24ID: 25144271

Hey everyone,

Problem solved. Turned out to be caused by a third party application. We were using a product called ISAPI Rewrite to work with our PHP based Knowledge Base to rewrite some URLs to be "search engine friendly". There are two versions of this product. A lite version which is free and a paid version. We had the lite version which turns out to apply the rules to all web sites. There was a rewrite rule for /news/ buried away in the rule set. I removed that product and the problem is resolved.

If anyone else encounters this issue with ASP pages on a single directory. Check for that product on the machine. The simple solution is spend the $99 bucks to get the full version and avoid the headaches. Then you can apply the rules to just the site that needs it.

Thank you everyone for your suggestions!

 

by: amkbaileyPosted on 2009-12-28 at 16:39:57ID: 26135089

"404 - File or directory not found" asp.net IIS subdirectory

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...