Ask a Question related to ASP.NET, Design and Development.
-
Søren M. Olesen #1
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 of 'text/html; charset=utf-8', but
expected 'text/xml'. The request failed with the error message
My directorystructure is a follows:
Inetpub
wwwroot
DPP
http
UtilityServices
Where 'http' is where my webapplication (Website, ApplicationName 'Default
Application') is located and UtilityServices is where my webservice is
located (Virtual dir, ApplicationName 'UtilityServices')
If a web.config file exists in my UtilityServices, I get the above error, if
not everything works (almost) fine. However I'd like there to be a
web.config file, since I need to setup some appSettings which are different
between the two.
Ant help would be greatly appreciated, TIA
Søren
Søren M. Olesen Guest
-
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... -
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... -
Dilip Krishnan #2
Re: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
Hello Søren,
Could you open your UtilityServices project in IE and see what the error
is in html
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
[url]http://www.geniant.com[/url]
> 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 of 'text/html; charset=utf-8', but
> expected 'text/xml'. The request failed with the error message
>
> My directorystructure is a follows:
>
> Inetpub
> wwwroot
> DPP
> http
> UtilityServices
> Where 'http' is where my webapplication (Website, ApplicationName
> 'Default Application') is located and UtilityServices is where my
> webservice is located (Virtual dir, ApplicationName 'UtilityServices')
>
> If a web.config file exists in my UtilityServices, I get the above
> error, if not everything works (almost) fine. However I'd like there
> to be a web.config file, since I need to setup some appSettings which
> are different between the two.
>
> Ant help would be greatly appreciated, TIA
>
> Søren
>
Dilip Krishnan Guest
-
Søren M. Olesen #3
Re: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
Hi
That's the strange thing, if I try to call my service using the IE
help-interface I don't seem to have the problem.
Regards,
Søren
"Dilip Krishnan" <dkrishnan@NOSPAM.geniant.com> wrote in message
news:265135632429280642707856@msnews.microsoft.com ...> Hello Søren,
> Could you open your UtilityServices project in IE and see what the error
> is in html
>
> HTH
> Regards,
> Dilip Krishnan
> MCAD, MCSD.net
> dkrishnan at geniant dot com
> [url]http://www.geniant.com[/url]
>>>> 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 of 'text/html; charset=utf-8', but
>> expected 'text/xml'. The request failed with the error message
>>
>> My directorystructure is a follows:
>>
>> Inetpub
>> wwwroot
>> DPP
>> http
>> UtilityServices
>> Where 'http' is where my webapplication (Website, ApplicationName
>> 'Default Application') is located and UtilityServices is where my
>> webservice is located (Virtual dir, ApplicationName 'UtilityServices')
>>
>> If a web.config file exists in my UtilityServices, I get the above
>> error, if not everything works (almost) fine. However I'd like there
>> to be a web.config file, since I need to setup some appSettings which
>> are different between the two.
>>
>> Ant help would be greatly appreciated, TIA
>>
>> Søren
>>
>
Søren M. Olesen Guest
-
Re: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
Hello!
| Could you open your UtilityServices project in IE and see what the error
| is in html
| > Client found response content type of 'text/html; charset=utf-8', but
| > expected 'text/xml'. The request failed with the error message
I experienced the same effect with some other errors within my
web-applications.
To me the question is, why ASP.NET sometimes tries to return errors occuring
within a WebMethod as a HTML-page instead of throwing a (SOAP-) exception?
Is there a way to avoid this behaviour?
By the way this behaviour is a tic more annoying if it happens while calling
the WebMethod from a mobile client (with the CF), then you get an error
message like "assembly of ressource not found". I wish you a lot of fun to
find the "real" error if your customer tells you that message...
Thanks,
D.Barisch
Guest
-
Dan Rogers #5
RE: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
This typically means that the config file you are using has an error in it.
WHat you are likely seeing is the error message - this can come from the
asp.net runtime (due to config error) or from IIS (e.g. invalid path, or
applicaiton exception that wasn't caught).
I'd recommend tracing the call (trace.axd) to see what's happening.
--------------------but expected 'text/xml'.>Reply-To: "Søren M. Olesen" <smolesen@hotmail.com>
>From: "Søren M. Olesen" <smolesen@hotmail.com>
>Subject: Client found response content type of 'text/html; charset=utf-8',cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGXA01.phx.gbl!cpmsftngxa0>Date: Wed, 2 Feb 2005 07:42:19 +0100
>Lines: 31
>Organization: Digital Xpress
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <#rpCiJPCFHA.3616@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>NNTP-Posting-Host: 195.41.222.129
>Path:
6.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gb lmicrosoft.public.dotnet.framework.aspnet.webservic es:27910>Xref: cpmsftngxa10.phx.gbltime>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>Hi
>
>I'm trying to setup a webservice on a Windows 2003 server, however eachif>I call it I get the error:
>
>Client found response content type of 'text/html; charset=utf-8', but
>expected 'text/xml'. The request failed with the error message
>
>My directorystructure is a follows:
>
>Inetpub
> wwwroot
> DPP
> http
> UtilityServices
>
>Where 'http' is where my webapplication (Website, ApplicationName 'Default
>Application') is located and UtilityServices is where my webservice is
>located (Virtual dir, ApplicationName 'UtilityServices')
>
>If a web.config file exists in my UtilityServices, I get the above error,different>not everything works (almost) fine. However I'd like there to be a
>web.config file, since I need to setup some appSettings which are>between the two.
>
>Ant help would be greatly appreciated, TIA
>
>
>Søren
>
>
>Dan Rogers Guest



Reply With Quote

