Article ID 2461
Article Title ERROR: Error 5120 Unhandled Program Error on the client Received
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2461
KBase Category _DAW INTERNAL INFO
Date Created 08/28/2012
Last Edit Date 06/13/2017


Article Text
ERROR: Error 5120 Unhandled Program Error on the client Received

This error can be followed by numerous other HTTP error codes, including 404.2 and 500, but one thing they have in common is "ISAPI and CGI Restriction list settings" and that the error handler reporting the error is "ExtensionlessUrlHandler-ISAPI-4.0_32bit".

For example:

HTTP Error 404.2 - Not Found
The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.
Detailed Error Information
Module IsapiModule
Notification ExecuteRequestHandler
Handler ExtensionlessUrlHandler-ISAPI-4.0_32bit
Error Code 0x800704ec
Requested URL http://localhost:80/Order_Entry_17_1/TestService.wso/SayHello

Physical Path C:\VDF17.1\Order Entry\AppHTML\TestService.wso\SayHello



SOLUTION:

This error is caused by ISAPI and CGI Restrictions being set to 'Not Allowed' for the application pool used by the web application.

When Visual DataFlex web application server creates a web application, the virtual directory is created as a child of the 'Default Web Site'.

If you view the 'Default Web Site' in Windows' 'Internet Information Services (IIS) Manager', you can click on the 'Basic Settings' button and see which application pool the 'Default Web Site' is using. By default, this should be 'DefaultAppPool'. Any virtual directory created as a child of 'Default Web Site' will use the same application pool. You can view the application pool for any web site by selecting the web site in IIS Manager and clicking the 'Basic Settings' button.

Click on the 'Application Pools' node in the IIS Manager's sites tree view. This is the node right below the top node. This lists all available application pools in IIS. Double-click on the application pool that your web application (by default 'DefaultAppPool' uses. This will show you the .NET Framework version this application pool is running (for DefaultAppPool, on Windows 7 x64, this should be something like '.NET Framework v2.0.50727'.

Now click on the main server node in the IIS Manager's sites tree view. This is the top node and have the same name as your server/PC. Double-click on the 'ISAPI and CGI Restrictions' icon. You will now see a list of extensions, ASP.NET versions, and the ISAPI and CGI restrictions for them. Find the ASP.Net version on this list that matches the ASP.NET Framework version running (e.g. 'ASP.NET v2.0.50727' for DefaultAppPool. There should be 2 listings for each of these if you are running a 64 bit operating system.

The cause of the error is the ISAPI and CGI Restrictions for the 32-bit version of the ASP.NET Framework running the application pool that is used by the web application being set to 'Not Allowed'. Changing this to 'Allowed' should solve this issue.


This error can also be caused by a missing or incorrect WSO handler mapping, particularly if you are using an Ajax web application. See KBase article 2082 for more information.


Also check for an errant web.config in the AppHtml folder.


DataFlex 19.0 and higher support running DataFlex WebApp Server in 64-bit mode. These changes remove the need to install the IIS 6 Metabase Compatibility or enable 32-bit support in the Application Pool (assuming that you are able to solely use 64-bit).



Links Related to this Article
DAW Knowledge Base article 2469: ERROR: 5120 - HTTP Error 500.21 - Internal Server Error
DAW Knowledge Base article 2082: INFO: No WSDL information returned when using the ?WSDL parameter
DAW Knowledge Base article 2413: HOWTO: Enabling 32 bit web applications on 64 bit operating systems

Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2024 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.