Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / July 2005

Tip: Looking for answers? Try searching our database.

Error: content type of 'text/html; but expected 'text/xml'.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
amar - 25 Jul 2005 13:01 GMT
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.

------------------
Client found response content type of 'text/html;
charset=Windows-1252', but expected 'text/xml'. The request failed with
the error message: -- <html> <head> <title>Runtime Error</title>
<style> body {font-family:"Verdana";font-weight:normal;............ and
so on.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
-----------------

And it says set customErrors mode should be in Off. But already its in
Off mode.

I'm not able to see any aspx page, which uses webservice.
Is it problem with IIS settings?
i'd really apreichate it if anyone could help me out.

Kind Regards,
amar
roger - 26 Jul 2005 18:08 GMT
I had almost simlar problem and i figured it out that my web.config had some
error in the xml schema, but in my case offcourse i was not able to call web
service even once.
May be there is a similar issue with you with some exception been generated

~Peace

> Hi,
>
[quoted text clipped - 23 lines]
> Kind Regards,
> amar
Heribert Coumans - 26 Jul 2005 22:32 GMT
I have the same error. I doesn't make any sense to me. I am using the new VS
2005 beta2.
The error occurs when i set the timeout to (-1).
The function I called in the webservice takes lots of time.
I call the service like
WebService ws = new WebService();

ws.Timeout = -1;

int result = ws.SimpleTest1();

> Hi,
>
[quoted text clipped - 23 lines]
> Kind Regards,
> amar

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.