473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Error from web service - charset=utf-8

Using VB.NET 2005, I created a Web Service that returns a dataset from a SQL
Server database.

In the same solution I created a test GUI with a Windows form to display the
results.

It worked fine on my development PC but when I moved the Web Service to a
server on our network I get the following error:

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

Can anyone explain?

Thanks
Aug 8 '06 #1
3 68704
Hello John,

As for the following exception message:

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

it is usually caused by the server-side ASP.NET webservice has encountered
some error and throw out exceptions(not in webservice code, maybe at
initialize time). For such scenario, I suggest you perform the following
tests:

1. Use IE browser to visit the asmx service endpoint directly to see
whether you can view the default webservice description page and the test
page correct. If there is any error at compilation or initializtion time,
it will report error in browser.

2. When use webservice proxy to call the webservice, we can use some trace
tool to capture the SOAP message (request and response) transfered between
the client and server, you may get some useful information in it. The
"Trace Utility" in SOAP toolkit 3.0 is a useful trace tool you can use:

#SOAP Toolkit 3.0
http://www.microsoft.com/downloads/d...0DD-CEEC-4088-
9753-86F052EC8450&displaylang=en

BTW, have you sufficient permission to access the deployment server? If so,
you can check the event log on the server machine to see whether there is
any useful error entry specific to the webservice application.

Please let me know if the above things helps or if you have any new finding.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 9 '06 #2
Steve,

I went on the server and used IE as suggested.

The error then was totally different and a quick search showed that the
ASP.NET version was wrong on the properties in IIS.

I thought I'd changed it already, but...

Any way, it now works

Many thanks
Aug 9 '06 #3
Thank's fine.

Glad that you've got it working.

Good luck!

Steven Cheng

Microsoft MSDN Online Support Lead
Aug 9 '06 #4

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

Similar topics

3
by: Lakshmi Narayanan | last post by:
Hi experts, My problem is, for password <input name="password" type="password"> element the size given is 20. For another one <input name="username"> is also 20. But in browser the size differs...
1
by: magnolio | last post by:
THE PROBLEM ************************************************************** i need to send a xml content in a web service, but i use latin american charset. HOW TO CHANGE THE CHARSET?? MY CODE:...
1
by: Simon_E | last post by:
We are experiencing problems with calling a Web Service that runs on Oracle HTTP Server powered by Apache. The Web Service returns 400 Bad Request. The explanation I got from the developer of...
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: 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...
1
by: Mark P | last post by:
I've written a .Net 1.1 Web Service that receives a file and forwards the file to another Web Service (this one written in Java). The Web Service generally works, but intermittently gets the...
0
by: Mark P | last post by:
I've written a .Net 1.1 Web Service that receives a file and forwards the file to another Web Service (this one written in Java). The Web Service generally works, but intermittently gets the...
1
by: Eric | last post by:
Hello, I have the following xml: <?xml-stylesheet type="text/xsl" href="C:\mypath\myxsl.xsl"?> <page> <appl> <datedisplay>mm/dd/yy</datedisplay> </appl> <forms>
2
by: doubts85 | last post by:
i have problem when i try build this application and the error is below. Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...

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.