Skip to Content
author's profile photo Former Member
Former Member

PB 12.0 .Net Webservice PDF file open


Hi,

I am using PB 12. to develop a .NET web service.

It needs to read a PDF file stored on another server in a shared directory and returns it to the Web page for download purpose.

The problem is that the functions Fileexists() or Fileopen() always fail to find the file.

It seems that the WebService only knows the subdirectories underneath it's own virtual directory.

eg: C:\Program Files (x86)\webform\webservice_name\webservice_name_root\file\common\c\temp for c:\temp directory

Is there a way to acces other directories or is it mandatory to copy all files in subdirectories web service ?

Best Regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2014 at 01:21 PM

    Hi Thierry;

    I perform these type of external file manipulations all the time in my Web Services *. Here are some observations though for you to consider ....

    1) Your WS should be deployed to "C:\InetPub\wwwroot\xxxxxxxxx" and not "c:program files"!!!

    2) Folders you need access to from your WS should have IIs_User read priviledges

    3) You can always use the MS-Windows PowerShell from your WS to assist with external file manipulation.

    HTH

    * - I only use PB Classic built .Net Web Services

    Regards .,.. Chris

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.