Symptom
Trying to create a web service proxy from a PowerBuilder application that is on a network drive and getting the following error:
Internal Error - The file 'myws.dll' can't be loaded.
Environment
- PowerBuilder
Reproducing the Issue
1. Create a .NET web service deployed to IIS
2. Create a PowerBuilder workspace and application on a mapped network drive.
3. Using New > Project use either the Web Service Proxy or Web Service Proxy Wizard to create a web service proxy. It will result in the Internal Error.
Cause
This problem is due to permissions issues caused by code access security (CAS).
Resolution
This issue was investigated in product issue cr780803 and is scheduled to be addressed in a future Fix Pack or Service Pack.
The following is a workaround for this issue.
1. Create a pbxxx.exe.config (replace xxx with the version of PowerBuilder) file with the following information and place it in the same folder as the pbxxx.exe file:
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
</runtime>
</configuration>
NOTE: There should already be a pbxxx.exe.config file in the folder so to be safe rename the original file and replace it with the new one.