I want to display PDF files in my View, the PDF files are stored in my App Data folder.
If i pass the directPath in the model like this: C:\Projekt\x\App_Data\Guides\Information.pdf i get PDF error in my view.
<div class="embed-responsive embed-responsive-16by9">
<object class="embed-responsive-item" data="@Model.directPath" type="application/pdf">
<p>PDF error</p>
</object>
</div>
However if i add a Content folder to my c# project and put the file there, and change the path to data="Content/Information.pdf" then the PDF will display.
How can i access the pdf files in App Data?