While Debugging I have some PDF-Files in App_Data folder of my WebSite (in production the files are located somewhere else) because I want to avoid that they are getting deployed. Inside the code I can access and manipulate the files. But if I want to open them in a new browser window e.g. via JavaScript, I'm getting an Error 404.0. The URL is correct and also the displayed physical filesystem path. So I think it may be an issue of the IIS Express?! I have already removed the app_data tag in applicationhost.config from the hiddenSegments section. Is there something else I could configure to get the problem solved?
"404.0 - Not Found" when opening PDF File in App_Data folder on local IIS Express
974 Views Asked by afj At
1
There are 1 best solutions below
Related Questions in ASP.NET
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- IIS Rewrite Module exclude bots but allow GoogleBot
- Angular 16 sending null values to API
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- ASP.NET Identity, Losing Ability to Login until Application Pool Recycles
- How to unprotect ASP.NET FormAuthentication cookie
- How does it work using ASP.NET FormAuthentication
- What is the purpose of a completely standalone 'this'?
- Is there a way to read .csproj PropertyGroup variable in c#
- MSBuild trying to copy different dll with similar name into project sporadically
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Azure AD guest account in web app authentication user claims data
- Receiving 400 bad request on post when customer auth handler is used
Related Questions in PDF
- How to use custom font during html to pdf conversion?
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- PDF form checkbox/radio button ignores content stream
- Suggest python library for rendering html to pdf files
- Problems with the order in which PDF files are created
- Centering a map element on a generated PDF
- download all pdf files from website doesn't support wildcard
- How to enter external pdf into quarto book while keeping page layout+numbering
- How do I create a website that combines user input and standard text and converts it into a pdf?
- Excel VBA error 1004 on PDF export - not a path issue
- downloading pdf using requests not working
- Creating pdf on Firestore with Pdfplum: Template path "no such object"
- Export password protected PDF from QGIS
- XPS convert PDF with Ghostscript
- Download PDF in ASP.NET MVC application
Related Questions in IIS-EXPRESS
- Add Virtual Directory to IIS Express with launchsettings.json
- Blazor .NET 8 - Staging launch profile not starting website VS2022
- How do i run IIS Express-only projects via CLI?
- HTTP Error 413.1 - Request Entity Too Large issue
- HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page when running ASP.NET MVC 5 app from VS 2019 & IIS Express
- Brand new ASP .NET Core Web app gives 404 errors
- Debugging multiple web application within one IIS Express site
- .net 6.0 mvc app shows wwwroot folder directory listing instead of my application when I run the app
- Is it possible to set IIS Express service ID to an AD service Account
- Unable to start program "https://localhost:44333" There are no more files
- Can I use IIS Express using .NET Framework 4.8 using a .csproj file written in the SDK format?
- Unable to launch the IIS Express Web server in vs 2017
- Why is my BackgroundService getting cancelled?
- IIS Express Worker Process preventing Visual Studio 2022 project from building
- IIs Express, Local IIS: Web Config error: Cannot add duplicate collection entry of type add with unique key attribute Path set to '*'
Related Questions in APP-DATA
- How to get App_Data folder with .mdf file in ASP.NET MVC app? (tried to show all files)
- how to set connectionString for connect Database inside App_Data in Asp.net Core
- Using Google Drive API to edit other user's files
- Can I use App_Data folder as a normal folder in my C# ASP.NET MVC application?
- What is the future of App Data folder in google drive?
- Is appdata shared between workers in a parallel pool?
- Deploying NServiceBus sample to cloud fails due to use of App_Data?
- I have deleted app_data folder accidentally
- Entity Framework Does Not Create Database in App_Data
- Clear app data programatically doesnt work
- iOS how to sync data from inhouse app with pc?
- Does Godaddy support database connections to App_Data mdf databases?
- Deploy App_Data folder to Azure Insufficient Permissions
- Can't read Excel file from the App_Data folder after uploading using a RadUpload
- How can I write data to the App_Data folder in ASP.NET MVC?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The App_Data folder is used as a data storage for the web application. It can store files such as .mdf, .mdb, and XML. It manages all of your application's data centrally. It is accessible from anywhere in your web application.The real advantage of the App_Data folder is that, any file you place there won't be downloadable.