+ Start a Discussion
KunlunKunlun 

Login exception Client found response content type of 'text/html;charset=UTF-8', but expected 'text/xml'.

I use .net api to login with portal user, the user name and password are correct, but threw exception as below,

Anyone can help me? Thanks very much.

Client found response content type of 'text/html;charset=UTF-8', but expected 'text/xml'.
The request failed with the error message:
--


<!-- ...................................................................................................
       ...................................................................................................
       ...................................................................................................
       ................................................................................................... -->

<div style="display:none;" id="errorTitle">Unable to Access Page</div>
<div style="display:none;" id="errorDesc">The value of the "id" parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information.</div>
<table cellspacing="10">
<tr><td><span style="font-weight: bold; font-size: 12pt;">Unable to Access Page</span></td></tr>
<tr><td>
The value of the "id" parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information.
<br><br>

<a href="javascript:history.back()" class="back">Back</a>
</td></tr>
</table>
</td></tr>
</table>




<!-- Body events -->
<script type="text/javascript">function bodyOnLoad(){if(window.PreferenceBits){window.PreferenceBits.prototype.csrfToken="null";};}function bodyOnBeforeUnload(){}function bodyOnFocus(){}function bodyOnUnload(){}</script>
  
</body>
</html>


<!--
...................................................................................................
...................................................................................................
...................................................................................................
...................................................................................................
-->

--.
Wade WegnerWade Wegner
Can you please share the code you used?