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

  • Home
  • SEARCH
  • 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 7178645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:57:44+00:00 2026-05-28T16:57:44+00:00

I am currently using App_data to store the dynamically created PDFs, Finding full path

  • 0

I am currently using App_data to store the dynamically created PDFs, Finding full path using:

String Location = AppDomain.CurrentDomain.GetData("DataDirectory").ToString();

However, ASP.NET MVC3 doesn’t allow me to embed from this location. with 403 problem.

<embed src="@Url.Content("~/App_Data/test.pdf")"  width="100%" height="500px" />

Researching, this is the desired of the App_data folder.

  1. So, how can I embed from this directory. or is there a better directory for this? I can access it fine from Content folder, but it seems the wrong place. (and how would I get the absolute path for the given folder)

  2. What is the App_Data folder for???

  • 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-28T16:57:45+00:00Added an answer on May 28, 2026 at 4:57 pm
    1. You can’t embed directly from this folder as you’ve found. You can either create a temp folder in your content folder that you deliver the PDFs from (open to discoverability, and therefore not what I’d recommend) or you can write a handler that streams the document from the App_Data folder (which is what we do for a similar problem, except we use the OS’s temp folder) and reference that.

    2. There are good answers in this question here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on an app that is being created using Ironspeed Designer. It's
To store a complex object to Datastore i'm currently using this approach: class PickleProperty(db.Property):
I'm building a packaged app for Chrome. I'm currently using WebSQL to store/retrieve data.
I'm currently using a singleton as a data store for my app. I essentially
I'm currently using the awesome attachment-fu plugin for a Rails app, but as a
I am currently using an MSAccess mdb file for a redistributable app. A while
I'm developing a web app and currently using sql server 2008 for it. But,
I am currently using the following algorithm to search on my iPhone app: NSRange
I am currently using the ActiveDirectoryMembershipProvider just for authentication on an internal business app
I've got an older ASP/VBScript app that I'm maintaining/upgrading and its currently using the

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.