IBM Support

"An error occurred...500.19 - Internal Server Error ... 0x800700b7 ... There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined" when launching Controller (10.2.1 or earlier) caused by using .NET 4.0

Troubleshooting


Problem

User launches Controller. User receives an error message.
To try to troubleshoot this, administrator launches ASP.NET diagnostic website (http://servername/ibmcognos/controllerserver/ccrws.asmx). Administrator sees root cause error message.

Symptom

  • When launching client:

An error occurred while trying to access the server.

Controller 10.2.0 example:
Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<http>://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="<http>://www.w3.org/1999/xhtml">
<head>
<title>IIS 8.5 Detailed Error - 500.19 - Internal Server Error</title>
<style type="text/css">
<!--

<....>

-->
</style>

</head>
<body>
<div id="content">
<div class="content-container">
<h3>HTTP Error 500.19 - Internal Server Error</h3>
<h4>The requested page cannot be accessed because the related configuration data for the page is invalid.</h4>
</div>

<....>

<tr class="alt"><th>Handler</th><td>   Not yet determined</td></tr>
<tr><th>Error Code</th><td>   0x800700b7</td></tr>
<tr class="alt"><th>Config Error</th><td>   There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
</td></tr>
<tr><th>Config File</th><td>   \\?\C:\Program Files (x86)\ibm\cognos\c10\ControllerProxyServer\web.config</td></tr>
</table>
</div>
<div id="details-right">
<table border="0" cellpadding="0" cellspacing="0">
<tr class="alt"><th>Requested URL</th><td>   <http>://vmcont102:80/ibmcognos/controllerserver/CCRWS.asmx</td></tr>
<tr><th>Physical Path</th><td>   C:\Program Files (x86)\ibm\cognos\c10\ControllerProxyServer\ccrws.asmx</td></tr>
<tr class="alt"><th>Logon Method</th><td>   Not yet determined</td></tr>
<tr><th>Logon User</th><td>   Not yet determined</td></tr>

</table>
<div class="clear"></div>
</div>
</fieldset>
</div>
<div class="config_source content-container">
<fieldset>
<h4>Config Source:</h4>
<pre><code> 8: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<span class="highlight-code"> 9: <section allowDefinition="MachineToApplication" name="scriptResourceHandler" requirePermission="false" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></span>
10: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
</code></pre>
</fieldset>
</div>

<div class="content-container">
<fieldset><h4>More Information:</h4>
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
<p><a href="http://go.microsoft.com/fwlink/?LinkID=62293&IIS70Error=500,19,0x800700b7,9600">View more information »</a></p>

Controller 10.2.1 example:

~~~~~~~~~~~~~~~~~~~~~
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
<....>
Config Error    There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
<....>
Config File  C:\...\ControllerProxyServer\web.config
Requested URL http://servername/ibmcognos/controllerserver/CCRWS.asmx
Physical Path C:\...\ControllerProxyServer\CCRWS.asmx
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
~~~~~~~~~~~~~~~~~~~~~

  • When launching diagnostic website:


HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x800700b7
Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
Config File \\?\C:\Program Files (x86)\ibm\cognos\c10\ControllerProxyServer\web.config
Requested URL <http>://vmcont102:80/ibmcognos/controllerserver/ccrws.asmx
Physical Path C:\Program Files (x86)\ibm\cognos\c10\ControllerProxyServer\ccrws.asmx
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
8: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
9: <section allowDefinition="MachineToApplication" name="scriptResourceHandler" requirePermission="false" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
10: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

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 Controller application server's IIS settings are incorrect.
  • Specifically, the Controller web application is configured to use the wrong .NET Framework version (4.0 or later).
  • This is the wrong version for Controller 10.2.1 (and earlier), which requires .NET 2.0

Example:
In one real-life example, the server was configured to use 'DefaultAppPool' but that application pool was configured to use .NET version 4.0:

Environment

This Technote only relates to Controller version 10.2.1 (or earlier).
  • NOTE: Controller 10.3.0 (and later) use .NET Framework 4.0 (or later).

Diagnosing The Problem

Read the on-screen error message carefully. Look for the following sections:
  • Error Code
  • Config Error

Resolving The Problem

Reconfigure the IIS Application Pool configuration on the Controller application server, so that the virtual application 'controllerserver' uses .NET 2.0.

Steps:
The following steps are based on Windows 2012. They may need to be adjusted slightly for other versions of Windows.
1. Logon to the Controller application server as a Windows administrator
2. Launch Internet Information Services (IIS) Manager
3. Locate the virtual application 'controllerserver'
4. Right-click on controllerserver and choose 'Advanced Settings'
5. Make a note of the current setting for 'Application Pool' (for example 'DefaultAppPool'):


Assuming that the current setting is 'DefaultAppPool' then the author's preferred solution is to move this application to the standard .NET 2.0 application pool.
  • Alternatively the customer may choose to use the 'alternative method' (see end of this Technote).

6. Open the section 'Application Pools'
7. Right-click on the relevant entry (for example 'DefaultAppPool') and choose "View Applications":


8. Right-click on the 'controllerserver' entry and choose 'Change Application Pool':


9. Choose ".NET 2.0" and click OK:


10. Test.

===============================================
Alternative method:
If desired, you can (instead) modify the default application pool to be .NET 2.0.
  • To do this, replace the above instructions (from step 6 onwards) with the following:

6. Open the section 'Application Pools' and locate the relevant application pool (for example 'DefaultAppPool')
7. Double-click on this application pool
8. Modify the setting ".NET CLR Version" to ".NET CLR Version v2.0.50727"

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS9S6B","label":"IBM Cognos Controller"},"Component":"Controller","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.2.0;10.2.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 November 2019

UID

swg21661800