Rendering a PDF file in a sub-directory

Topics: User Forum
Feb 22, 2014 at 1:50 PM
I created a sub-directory in my website and I have a pdf in there. I placed a link on my web-page directly to the file. The anchor is pointing to the file correctly.

I expect that if I click on the link that the browser would open the file in a new window.

What happens is the new browser window is opened - good

I get this message - bad

Caught .NET exception, source: MAIN.PRG 00003tih0fg1 err#= 1 line= 78 File does not exist.1 File does not exist. .NULL. .NULL. .NULL. .NULL. .NULL. E:\tlc\insightdev\activevfp.dll message: E:\tlc\insightdev\activevfp.dll

but....

The file does exist I can browse to it in Windows Explorer and open in with Adobe Reader.


How can I open the file in the sub-directory in AVFP. It seems like it is intercepting my url-request.

Thanks,

Tom
Feb 22, 2014 at 3:01 PM
After an hour of testing and debugging it turns out that I was missing a web.config file in the directory that I wanted to allow access to. There is one in the images directory that you can copy into the new folder.

Best,

Tom