Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6476467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:49:45+00:00 2026-05-25T06:49:45+00:00

I have an ASP.NET MVC 1.0 application running on Windows Server 2003 IIS 6.0.

  • 0

I have an ASP.NET MVC 1.0 application running on Windows Server 2003 IIS 6.0.

I just added a new feature that lets users upload files to the server. I also added a page that displays a list of the files uploaded by that user.

The problem is when someone clicks to view the file, I get the following error:
The system cannot find the file specified.

I have verified everything is correct and I can’t figure this out for the life of me.

I added this code to the routing section thinking that may have something to do with it but it hasn’t helped.

routes.RouteExistingFiles = false;
routes.IgnoreRoute("App_Data/Uploads/{*pathInfo}");

Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:49:46+00:00Added an answer on May 25, 2026 at 6:49 am

    Files stored in App_Data folder cannot be directly accessed by clients. ASP.NET blocks acces to it. So no need to add any ignore routes for this special folder, you cannot use an url like this /App_Data/Uploads/foo.txt. If you want serving files from this folder you need to write a controller action will read the file from the physical location and return it to the client:

    public ActionResult Download(string id)
    {
        // use the id and read the corresponding file from it's physical location
        // and then return it: 
        return File(physicalLocation, mimeType);
    }
    

    and then use:

    <%= Html.ActionLink("download report", "download", new { id = 123 }) %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application running on iis(7) ( asp.net mvc if that matters )
I have an Asp.Net MVC application that works in the vs.net development web server.
I have a ASP.NET MVC application that runs in both IIS 6 and 7.
I have an ASP.NET MVC application running on IIS 7.5. Somehow, on my machine,
I have a production server (Windows Server 2003 SP2), running several ASP.NET 2 apps
We have an internal ASP.NET Webforms application running on a Windows 2008/IIS7 server which
I have an Asp.net MVC application running on AppHarbor. It has the everyday email
I have an ASP.Net MVC application and I'm using Forms authentication in SQL Server.
I have an ASP.NET MVC application that has a jQuery Treeview and a jQuery
I've been running an ASP.NET MVC application on my IIS 7.5 localhost (on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.