Malformed server response


    Sponsored Links


  • 1. ViewState, more trouble then is worth
    Is there a way to disable generation of... (for Mobile ASP.NET pages <input type="hidden" name="__EVENTTARGET" value=""><input type="hidden" name="__EVENTARGUMENT" value=""><script language=javascript><!- function __doPostBack(target, argument) var theform = document.frmSearc theform.__EVENTTARGET.value = targe theform.__EVENTARGUMENT.value = argumen theform.submit( // --></script I disabled ViewState (enableViewState="False") and Session state (enableSessionState="false"), but still I get.. page.aspx?__ufps=##### (**__ufps=####** ... inserted into the URL of pages I would like to remove all traces of ViewState from mobile pages as some mobile devices seem to have trouble handling ViewState Thank you in advanc Mik
  • 2. Css problem
    Hi all, I try to make a exemple that I find in a book MS <mobile:form id="Form1" csslocation="default.css" runat="server"> <mobile:label id="Label1" runat="server"> label with no style </mobile:label> <mobile:label id="textContent" cssclass="style1" runat="server"> label using CSS style </mobile:label> </mobile:form> I have put AllowCustomAttributes to true on the web.config Or if you have experience with css and mobile please help me. Thanks Lino
  • 3. Mobile Caller Identifier
    Hi, is there a way using ASP.NET mobile controls to identify uniquely the caller by intercepting something like its phone number or IMEI phone number ? Thanks in advance
  • 4. mscomm in smarttphone application?
    Hi, Is it possible to use a mscomm control in a smartphone application? I found solutions for but these work only in windows solution.. thanks for help! Wim

Malformed server response

Postby phoebe » Wed, 26 Apr 2006 19:28:52 GMT

hi, good day

I'm working on a ASP.NET mobile application. When i click on a button 
component with openwave, I received an error message "malformed server 

It works fine if i run it in IE.

Can anyone help. thanks in advanced.


Re: Malformed server response

Postby Tom » Fri, 28 Apr 2006 21:27:08 GMT

Hi Phoebe,

I had a similar problem. Can you post some code? Are you using Device
Specific Filters?
In my case I got this error when I was using code in a WML device
filter that wasn't supported by the browser i was viewing it on. in my
case, I was using tables to format my data but tables were not
supported by my emulator.



Similar Threads:

1."Error : MalFormed Server Response"

any luck w/ this i am having the same problem...?

2."Malformed Response" error on W2K

3."malformed response" error on win2k

4.ADO-DS malformed uri

5.Getting malformed XML from a web service interface

I am seeing a quite intermittent problem in a system where calls to a .NET 
web service throws the exception below:

System.Xml.XmlException: Data at the root level is invalid. Line 1, position 

The call is never logged anywhere on the server and the next call goes 
through without any problems. Not all of our environmenst see this, just 

I have two questions in regards to this:

1. How can I simulate this behaviour on the server side so that the web 
service returns malformed xml? So that I can on the client side take care of 
the exception i a good way and test this.

2. How can I in the client, when the exception is caught, see what the 
response is? I'd like to log it and see what is in there? I suspect it's an 
error message from a router or from the IIS.

See stack trace below:
System.InvalidOperationException: Response is not well-formed XML. ---> 
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at Microsoft.Web.Services.XmlSkipDTDReader.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean 
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at Microsoft.Web.Services.SoapEnvelope.Load(Stream stream)
   at Microsoft.Web.Services.InputStream.GetRawContent()
   at Microsoft.Web.Services.InputStream.Read(Byte[] buffer, Int32 offset, 
Int32 count)
   at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, 
Int32 desiredChars, Boolean& readToUserBuffer)
   at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReaderImpl.ReadData()
   at System.Xml.XmlTextReaderImpl.InitTextReaderInput(String baseUriStr, 
TextReader input)
   at System.Xml.XmlTextReaderImpl..ctor(String url, TextReader input, 
XmlNameTable nt)
   at System.Xml.XmlTextReader..ctor(TextReader input)
message, Int32 bufferSize)
message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
methodName, Object[] parameters)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
methodName, Object[] parameters)


6. what is malformed about this url?

7. DataSet.ReadXml() - Malformed Xml?

8. Malformed HTML from UserControl

Return to ASP.NET


Who is online

Users browsing this forum: No registered users and 46 guest