473,468 Members | 4,655 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

'text/html' expected 'text/xml' WebService error

Hello,

The situation is as follows:
My server app (ASP.NET WebService) responds to the client request
(ASP.NET) by returning a text string appended with 2 int numbers,
being the X&Y coordinate values of a MouseDown event on the client
form. These numbers are supplied by the client.
Code snippet:
--------------
Client-app: myLabel.Text=srvControl.MouseCoordinates(mouseEv.X ,
mouseEv.Y);

Server-app:
[Web Method]
public string MouseCoordinates(int nX,int nY)
{
return "Your Mouse Coordinates: "+nx.ToString()+","+nY.ToString();
}
---------------
When I run this code, on a wireless SmartDevice TabletPC, a weird
thing happens: if I click my mouse down at a 'slow' pace, everything
runs OK. If I do it fast, the app crashed with the following message:
<< Error
myWebApp.exe InvalidOperationException
Server found request content to be 'text/html' but expected
'text/xml'.

Application::Run+0xf >>

Looking into the W3C-logfile: error 403 (Forbidden)
The MS-IIS logfile has more: 403.5 (SSL 128 required)

I can't believe these error messages are true for this very-very
simple request.
I tend to look into some timing parameter in the Server area, because
if I ran this code on the SmartDevice emulator, it did not break.

Any ideas please ... I'm desperate ... .

Thank you,Saya
Nov 19 '05 #1
0 1927

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: | last post by:
Hello NG! I try to call a WebService from a mobile device. The WebService should return a DataSet, so the call looks like mDataSet = mWebSrv.GetDataSet(<Params>) but instead of returning a...
1
by: ramarnath | last post by:
Hi, I've created a webservice, which is working fine in development environment and UAT environment. but i received following error often in staging environment, not all the time. ...
0
by: daryl | last post by:
I have a situation where a webservice has worked fine in a development environment, but when placed into production has stopped working (although at one time it was). Using WSE 2.0/DIME, we...
0
by: S. Berwanger | last post by:
Hallo, I have a PDA (WinCE 4.2) application which using a XML-Webservice for data exchanging. Both parts are developed with VS2003. When I'm using IIS5.1 the system runs without problems. But...
2
by: Jon | last post by:
Anyone seen a webservice return this error: Error: Client found response content type of 'text/html;charset=utf-8', but expected 'text/xml'. The request failed with the error message: --Error...
4
by: Mark | last post by:
I have written a PocketPC application that connects to a web service, and when im connected via the cable or via wireless then it pulls back the data correctly. However when connected to GPRS, i...
1
by: Jesús Bosch | last post by:
I get this error after trying to call a method in a webeservice. This webservice returns an html page (as string), but I recieve this error. Someone knows a solution for this? Thanks! Jesús...
2
by: RdS | last post by:
Hello, I use sourcesafe and vb 2003 for my dev environment. on the sourcesafe server I also have sql2005 and reporting services installed. The web app references this sql server for db. When...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.