473,473 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to solve Client found response content type of 'text/html; charset=utf-8'

2 New Member
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 error message:
Expand|Select|Wrap|Line Numbers
  1. --
  2. <html>
  3.    <head>
  4.        <title>Configuration Error</title>
  5.        <style>
  6.         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
  7.         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
  8.         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
  9.         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
  10.         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
  11.         pre {font-family:"Lucida Console";font-size: .9em}
  12.         .marker {font-weight: bold; color: black;text-decoration: none;}
  13.         .version {color: gray;}
  14.         .error {margin-bottom: 10px;}
  15.         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
  16.        </style>
  17.    </head>
  18.  
  19.    <body bgcolor="white">
  20.  
  21.            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
  22.  
  23.            <h2> <i>Configuration Error</i> </h2></span>
  24.  
  25.            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
  26.  
  27.            <b> Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
  28.            <br><br>
  29.  
  30.            <b> Parser Error Message: </b>It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.<br><br>
  31.  
  32.            <b>Source Error:</b> <br><br>
  33.  
  34.            <table width=100% bgcolor="#ffffcc">
  35.               <tr>
  36.                  <td>
  37.                      <code><pre>
  38.  
  39. Line 24:             ASP.NET to identify an incoming user. 
  40. Line 25:         -->
  41. <font color=red>Line 26: <authentication mode="Windows"/>
  42. </font>Line 27: <!--
  43. Line 28:             The <customErrors> section enables configuration </pre></code>
  44.  
  45.                  </td>
  46.               </tr>
  47.            </table>
  48.  
  49.            <br>
  50.  
  51.            <b> Source File: </b> c:\inetpub\wwwroot\enterprise\web.config<b>    Line: </b> 26
  52.            <br><br>
  53.  
  54.            <hr width=100% size=1 color=silver>
  55.  
  56.            <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
  57.  
  58.            </font>
  59.  
  60.    </body>
  61. </html>
  62. <!-- 
  63. [ConfigurationErrorsException]: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\enterprise\web.config line 26)
  64.   at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
  65.   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
  66.   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
  67.   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
  68.   at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
  69.   at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
  70.   at System.Web.Configuration.RuntimeConfig.get_CustomErrors()
  71.   at System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context, Boolean canThrow)
  72.   at System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute)
  73.   at System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e)
  74. -->
  75. --.
May 26 '10 #1
2 6632
Plater
7,872 Recognized Expert Expert
Looks to me like the real error is this:
Parser Error Message:It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
May 26 '10 #2
doubts85
2 New Member
it is..anywer i already fix it..thank anywer
May 27 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Soheil | last post by:
I use webservice to connect to a server on Internet and sometimes(not always), I recieve this error on calling webserice member functions. Error: ********************************** Client found...
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...
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...
0
by: msm2601 | last post by:
Hello, I have written a Pocket PC mobile application which calls a web service method. But when code invoke web service method it raise error as Client found response content type of...
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...
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...
0
by: Abbas | last post by:
Hi, I have a web service that is failing when calling from a COM proxy (front-end is in ASP), going to the URL using the browser works, I also have an ASP.NET test page with it that also works. ...
4
by: sbettadpur | last post by:
Hi All, I am getting the following Error while connecting to the SQL reports using report viewer .I have given the path like: ...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.