Scripting Bridge through IIS

Discussion about software products provided for the BR community and created by its members. This includes (but is not limited to): MyEdit, File IO, Screen IO, FNSnap, and Utilities written in other languages for use with Business Rules.

Moderators: Susan Smith, admin, Gabriel

Post Reply
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Scripting Bridge through IIS

Post by bluesfannoz »

I am attempting to pass some data from BR to a website using the scripting bridge. Problem is that the website requires being hosted on IIS. I have been successful at getting it to fire the BR application but it hangs.

Here is the logging for BR starting up:

Code: Select all

Setting logging to log file c:\inetpub\wwwroot\cgi-bin\logfile.log log level 13.
(8) 11/07/2022 12:20:14       IUSR Wsid: 000                  Line:     
Encountered CONFIG LOGGING UNATTENDED:  Entering unattended mode.
(6) 11/07/2022 12:20:14       IUSR Wsid: 000                  Line:     
The BRConfig.sys file is c:\inetpub\wwwroot\cgi-bin\webapi.sys
(6) 11/07/2022 12:20:14       IUSR Wsid: 000                  Line:     
Config file has been processed.
(6) 11/07/2022 12:20:14       IUSR Wsid: 000                  Line:     
Assigning WSID.
(6) 11/07/2022 12:20:14       IUSR Wsid: -10                  Line:     
The server file is c:\inetpub\wwwroot\cgi-bin\wbserver.dat
(8) 11/07/2022 12:20:14       IUSR Wsid: -10                  Line:     
Deleting server file :c:\inetpub\wwwroot\cgi-bin\wbserver.dat for first user succeeded.
(10)11/07/2022 12:20:14       IUSR Wsid: -10                  Line:     
Opening file c:\inetpub\wwwroot\cgi-bin\wbserver.dat failed during CreateFile with access c0000000, share mode 3, disposition 3, attributes 80 with BR error 4152 and system error 2
(6) 11/07/2022 12:20:14       IUSR Wsid: 011                  Line:     
WSID 1 session 1 successfully assigned to IUSR.
(6) 11/07/2022 12:20:14       IUSR Wsid: 011                  Line:     
WSID has been assigned.
(6) 11/07/2022 12:20:14       IUSR Wsid: 011                  Line:     
Splash info set.
That doesn't give me any indication as to why BR has hung. Running in unattended if it had hit an error it should have immediately exited.

My test program it should have run never fires as it immediately creates a test file and that test file never gets created.

Any ideas of where I might look? If not I will just keep trying things. I've already tried going back and running previous versions of BR to no avail. I am testing this running BR4.32k in native mode with gui off.

Here is my test config file:
drive c:,.\,.\,cgi-bin
Logging 13,c:\inetpub\wwwroot\cgi-bin\logfile.log,UNATTENDED
Execute "proc runbr.prc"
Steve Koger
Computer Specialist
SEKESC-MACS Division
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Re: Scripting Bridge through IIS

Post by bluesfannoz »

I figured out the solution. I had to change the user that the application identity pool was using to execute the shell. It was using the builtin IUSR account. I created an account specific for this purpose and set the application identity pool to use that user. Obviously I also had to set permissions for that user on the folders running BR. BR no longer hangs and returns the requested information.
Steve Koger
Computer Specialist
SEKESC-MACS Division
Post Reply