For a PowerBuilder .NET Web Forms application, use PowerBuilder system functions instead of external functions whenever possible. Some system functions, such as the functions for file operations, are implemented differently for Windows Forms and Web Forms. If you always use PowerBuilder system functions, you do not need to worry about these differences.
Use GetCurrentDirectory Some applications use external DLL functions to get the current directory. For PowerBuilder Web Forms applications, you must use the GetCurrentDirectory standard system function instead.
PowerBuilder Web Forms use a virtual file system to emulate a file system on the server for each client. The virtual file system is actually a folder on the server computer to which the ASPNET user (IIS 5), the IIS_WPG user group (IIS 6), or the IIS_IUSRS user group (IIS 7 and 7.5) has write permission. Calling an external function to get the current directory from the virtual file system fails.