Error 91 from AS400File OpenFile or Error 70 from AS400File Connect methods of ASP400.DLL
From Support
| | If you have a question or seek clarification, please call Technical Support. |
Problem:
Problem connecting to iSeries with ASP/400 AS400File object from an ASP web page.
User was getting an error 70 - permission denied on the AS400File.Connect Method.
User was also getting an error 91 - object variable not set on the AS400File.OpenFile Method
Initial thought was this was some sort of issue with the Microsoft MDAC controls or CA/400 being installed.
Both were installed correctly.
API calls also work fine from a VB program.
Solution:
We thought it was a security issue on the AS/400 so we did a GRTOBJAUT to all objects in QIWS since we were trying to use the QCUSTCDT table.
We thought it was an issue with security on the ASP400.RJS perm license file. That wasn't it either.
Changed permissions on ASP400.DLL and ASP400.RJS to Everyone/All for authority.
We decided to change the IIS Anonymous User to a real user instead of INET_xxxxx user in the IIS directory security tab. This resolved the issue. Must have been an authority problem with the INET_xxxxx anonymous user.
