IBM Support

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

Technote (troubleshooting)


Problem(Abstract)

User launches Controller client. User receives error.

Symptom

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:
--
<html>
<head>
<title>Request format is unrecognized for URL unexpectedly ending in '/ibmcognos/cgi-bin/cognos.cgi'.</title>
<style>
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.

<br><br>

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

<...>


Cause

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:
allowPathInfo="true"

Environment

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"

....so that it now looks similar to:


Steps:
For more information, see seprate IBM Technote #1577559.

Related information

1367311 - How to configure Gateway server in DMZ for a
1577559 - "HTTP Error 404.3 - Not Found" ... "cannot be
1986254 - ** Troubleshooting ** "An error occured while

Document information

More support for: Cognos Controller
Controller

Software version: 10.1.1

Operating system(s): Windows

Reference #: 1653338

Modified date: 28 June 2016


Translate this page: