1. Renata Leal
  2. PowerBuilder
  3. Tuesday, 22 June 2021 12:27 PM UTC

Need: To implement a method in a Powerbuilder web service to save a file in a network directory receiving the file (blob) and the full path as parameters.

Issues
Scenario 1: Method implemented with Powerbuilder file functions.
Problem: It works when using debug and doesn't work with the published webservice. Powerbuilder does not recognise the directories for file writing, even though the IIS_IUSRS user has full access permission.

Scenario 2: As an alternative to replace scenario 1, the Powerbuilder web service started to consume another web service implemented in .Net with the functionality described above.
Problem: The alternative works well when the Integration Powerbuilder web service is installed on a server with Windows Server 2008. When it is installed on a server with an operating system Windows Server 2016, even after replicating all settings, an error occurs with the following message: "Exception has been thrown by the target of an invocation. ---> Attempted to read or write protected memory. This is often an indication that other memory is corrupt.".
After analysing the messages provided by Windows event viewer, it is believed that the problem occurs when creating the Soap connection and instantiating the service.

Please I request support to find out a solution that works whatever the server is.

I use PB 2017 yet.

Thank you.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 June 2021 14:08 PM UTC
  2. PowerBuilder
  3. # 1

Hi Renata;

   Option #1 should work OK ... especially, if it works in DEV via the IDE debugger - it should work in production as long as the proper IIS permissions have been setup OK. The other consideration is that the Application Pool has been created properly in the production IIS for 32bit execution and run privileges.

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.