IBM Support

"An error occurred ... Request format is unrecognized for URL unexpectedly ending in '/ibmcognos/cgi-bin/cognos.cgi" when launching Controller client



User launches Controller client. User receives error.


An error occurred while trying to access the server.

Error Details:
Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
<title>Request format is unrecognized for URL unexpectedly ending in '/ibmcognos/cgi-bin/cognos.cgi'.</title>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

<span><H1>Server Error in '/ibmcognos/controllerserver' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i>Request format is unrecognized for URL unexpectedly ending in '/ibmcognos/cgi-bin/cognos.cgi'.</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

<b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


<b> Exception Details: </b>System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/ibmcognos/cgi-bin/cognos.cgi'.<br><br>



There are many possible causes for a similar error.

  • TIP: For more examples, see separate IBM Technote #1986254.

This Technote specifically relates to the scenario where the cause is that the administrator had forgotten to modify the "web.config" file (inside "cgi-bin") to include the following configuration:


Controller is configured to use a dedicated 'gateway' machine (for example located in the DMZ) which is separate from the 'main' Controller application server.

  • In other words, the system is configured in the way described inside separate IBM Technote #1367311.

Resolving The Problem

Modify the file "web.config" inside "cgi-bin" to contain the following...

      allowPathInfo="true" that it now looks similar to:

For more information, see seprate IBM Technote #1577559.

[{"Product":{"code":"SS9S6B","label":"Cognos Controller"},"Business Unit":{"code":"BU002","label":"Business Analytics"},"Component":"Controller","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.1.1","Edition":""}]

Document Information

Modified date:
15 June 2018