Sometimes, we need to include files while publishing our web application in Visual Studio. But, those files (e.g. pdf) are not published together. In that case, make sure the file is in project. Right-click the file and if you see ‘Include in Project’, it means that file is not part of project yet. Then, right-click the file again. Select properties and set these values:
Build Action: Content
Copy to Output Directory: Do not copy (This is to copy the file to Bin folder.)