Quantcast
Channel: Ivanti User Community : All Content - Console
Viewing all articles
Browse latest Browse all 607

Console Initialization Error: Client found response content type of 'text/html' but expected 'text/xml'

$
0
0

Error

 

When opening the Console, after entering your credentials and trying to login, you receive the error:

 

Console Initialization Error: 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 7.5 Detailed Error - 500.19 - Internal Server Error</title>

<style type="text/css">

<!--

body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;}

code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}

.config_source code{font-size:.8em;color:#000000;}

pre{margin:0;font-size:1.4em;word-wrap:break-word;}

ul,ol{margin:10px 0 10px 40px;}

ul.first,ol.first{margin-top:5px;}

fieldset{padding:0 15px 10px 15px;}

.summary-container fieldset{padding-bottom:5px;margin-top:4px;}

legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}

legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px;

border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696;

border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;font-size:1em;}

a:link,a:visited{color:#007EFF;font-weight:bold;}

a:hover{text-decoration:none;}

h1{font-size:2.4em;margin:0;color:#FFF;}

h2{font-size:1.7em;margin:0;color:#CC0000;}

h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;}

h4{font-size:1.2em;margin:10px 0 5px 0;

}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif;

color:#FFF;background-color:#5C87B2;

}#content{margin:0 0 0 2%;position:relative;}

.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}

.config_source{background:#fff5c4;}

.content-container p{margin:0 0 10px 0;

}#details-left{width:35%;float:left;margin-right:2%;

}#details-right{width:63%;float:left;overflow:hidden;

}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF;

background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal;

font-size:1em;color:#FFF;text-align:right;

}#server_version p{margin:5px 0;}

table{margin:4px 0 4px 0;width:100%;border:none;}

td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:bold;border:none;}

th{width:30%;text-align:right;padding-right:2%;font-weight:normal;}

thead th{background-color:#ebebeb;width:25%;

}#details-right th{width:20%;}

table tr.alt td,table tr.alt th{background-color:#ebebeb;}

.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;}

.clear{clear:both;}

.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;}

-->

</style>

 

</head>

<body>

<div id="header"><h1>Server Error</h1></div>

<div id="server_version"><p>Internet Information Services 7.5</p></div>

<div id="content">

<div class="content-container">

<fieldset><legend>Error Summary</legend>

<h2>HTTP Error 500.19 - Internal Server Error</h2>

<h3>The requested page cannot be accessed because the related configuration data for the page is invalid.</h3>

</fieldset>

</div>

<div class="content-container">

<fieldset><legend>Detailed Error Information</legend>

<div id="details-left">

<table border="0" cellpadding="0" cellspacing="0">

<tr class="alt"><th>Module</th><td>IIS Web Core</td></tr>

<tr><th>Notification</th><td>BeginRequest</td></tr>

<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)\LANDesk\ManagementSuite\landesk\mbsdkservice\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>https://landesk95:443/mbsdkservice/msgsdk.asmx</td></tr>

<tr><th>Physical Path</th><td>C:\Program Files (x86)\LANDesk\ManagementSuite\landesk\mbsdkservice\msgsdk.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>

<legend>Config Source</legend>

<pre><code> 5: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<span class="highlight-code"> 6: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></span>

7: <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><legend>Links and More Information</legend>

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,7601">View more information »</a></p>

 

</fieldset>

</div>

</div>

</body>

</html>

 

The same error will also show in the Console.exe.log file

 

Reason

 

Opening a Console calls several webservices which are configured by a web.config file. In this file are several .Net Framework sections defined. LANDesk uses mainly .Net Framework 2.0, so sections that aren't defined in the main .Net Framework 2.0 configuration, the machine.config, need to be defined in the web.config.

 

However, all LANDesk webservices are run in an IIS Application Pool. This pool is configured to run with a specific .Net Framework version. If the application pool is somehow re-configured to use a higher .Net Framework version, it can be that the sections in the web.config are already defined in the main machine.config file for that .Net Framework version, resulting in the config error a duplicate section is defined.

 

This can be caused by .Net Framework updates or errors in the (un-)install of LANDesk software and updates.

 

Resolution

 

Look in the complete error message for the URL and the web.config file that are being logged as containing a duplicate section. In the above error:

 

<tr><th>Config File</th><td>\\?\C:\Program Files (x86)\LANDesk\ManagementSuite\landesk\mbsdkservice\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>https://landesk95:443/mbsdkservice/msgsdk.asmx</td></tr>

 

Open the Internet Information Services Manager on your Core Server, and find the specified URL/Webservice (in the example MBSDKSERVICE). Right Click on this the Webservice - Manage Application - Advanced Settings. Note the Application Pool the webservice is running in.

 

In the same IIS Manager, open the Application Pools, find the pool noted before, righ click on it and open Basic Settings. Change the .Net Framework version to 2.0. Restart the Application Pool.


Viewing all articles
Browse latest Browse all 607

Trending Articles