Ask a Question related to ASP.NET Web Services, Design and Development.
-
amar #1
Error: content type of 'text/html; but expected 'text/xml'.
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
amar Guest
-
Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
Hi I'm trying to setup a webservice on a Windows 2003 server, however each time I call it I get the error: Client found response content type... -
found content type of 'text/html; but expected 'text/xml'
Hi, i get the error "Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml' when i invoke a webservice... -
Client found response content type of '', but expected 'text/xml'. with Wse 2.0
I created a very simple application which calls a ws which in turns call another ws and return true. In my Windows application, I have the... -
Client found response content type of '', but expected 'text/xml'
I am trying to run a web service project with multiple web services. The problem is that this works sometimes, and sometimes it does not work. I've... -
error ...response text/html;charset=utf-8 expected 'text/xml'
I have the same problem - anyone figure out an answer? Thanks! "Georgia Powel" <gpowel@isnsecurity.com> wrote in news:0d1201c37d21... -
roger #2
Re: Error: content type of 'text/html; but expected 'text/xml'.
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
"amar" <ramarnath@gmail.com> wrote in message
news:1122292906.760931.199600@o13g2000cwo.googlegr oups.com...> 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 Guest
-
Heribert Coumans #3
Re: Error: content type of 'text/html; but expected 'text/xml'.
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();
"amar" <ramarnath@gmail.com> wrote in message
news:1122292906.760931.199600@o13g2000cwo.googlegr oups.com...> 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
>
Heribert Coumans Guest
-
marwa #4
Re: Error: content type of 'text/html; but expected 'text/xml'.
i have the same error .
marwa Guest



Reply With Quote

