The specified CGI application encountered an error and the server terminated the process.

Hi All, so i have been coming across this quite often, when making changes to the M-Files web server Example (Changing from Classic to New web)

The specified CGI application encountered an error and the server terminated the process.

This is all that displays on the new web page, a bunch of troubleshooting, i see there is a GIG feature that can be installed in roles and features on windows server.

normally when you set up a new M-files web server via M-Files it creates the applicaiton pools and defult site should you leave it as that, but when changing it i suddenly get this issue.

the route cause is that C:\Program Files\M-Files\Server\Bin\MFWA.exe   (MFWA.exe) is missing 

As i understand it the M-Files application pools need to be set as "no managed code" but its hard to belive as M-Files classic worked just fine with .net v4

If i look at my defult application pools they are all set as defult below.

So my question is really where has the MFWA.exe  gone after i tried to enable the new m-files web? I mean all the defaults point to it being there. Yes i have checked AV and all that.

I also restored to a IIS backup to a time when i made the first chance and cannot find the MFWA file.

I have tried this and dont get anywhere.

  1. CGI module missing → Install via Server Manager or Install-WindowsFeature Web-CGI.

  2. MFWA.exe missing → Reinstall or repair M-Files Web Access.

  3. Handler missing → Add it in IIS:

Request Path Module Executable Name
MFWA.exe CgiModule C:\Program Files\M-Files\Server\Bin\MFWA.exe M-Files Web Access Handler

Kind Regards 

Parents Reply Children
  • There is an article in the support portal that mentions that M-Files Web stops working on Windows Server 2012 after 25.12 upgrade. (Im testing in Windows 11) I note in that article that a exe file mf-grpc-web-server.exe doesn't spawn. When I checked the task manager I also noted that that file wasn't running. 

    In Powershell I also noted that 'netstat -ano | findstr LISTENING | findstr 7767' produced nothing. and when I tried to run PS C:\Program Files\M-Files\26.2.15718.4\Common\Web\GRPC> .\mf-grpc-web-server.exe the following error occured. 

    C:\Program Files\M-Files\26.2.15718.4\Common\Web\GRPC\mf-grpc-web-server.exe: OpenSSL configuration error:
    A0330000:error:80000005:system library:BIO_new_file:Input/output error:openssl\crypto\bio\bss_file.c:67:calling fopen(C:\Program Files\OpenSSL-Win64\bin, rb)

    Looking in the system environmental variables the OPENSSL_CONF was set to the directory and not the actual config file: openssl.cfg. So I set the variable to the opensll.cfg file

    I restarted M-Files server and IIS, then went through the web config and selected M-Files Web in the Admin again. This fixed the issue for me. 

    Before I restarted M-Files and IIS I started the process monitor and filtered mf-grpc-web-server.exe to see if it started.