Hi John - thanks for your time and comments. The Full HTML I get back is as
follows. I have no idea how to determine what is the cause of the error.
Any help in determining this would be much appreciated.
....
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<stylebody
{font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p
{font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b
{font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 {
font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 {
font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre
{font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold;
color: black;text-decoration: none;} .version {color: gray;} .error
{margin-bottom: 10px;} .expandable { text-decoration:underline;
font-weight:bold; color:navy; cursor:hand; } </style</head<body
bgcolor="white"<span><H1>Server Error in '/MosaicQe' Application.<hr
width=100% size=1 color=silver></H1<h2<i>Runtime Error</i</h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "<b>
Description: </b>An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons). It
could, however, be viewed by browsers running on the local server machine.
<br><br<b>Details:</bTo enable the details of this specific error message
to be viewable on remote machines, please create a <customErrorstag within
a "web.config" configuration file located in the root directory of the
current web application. This <customErrorstag should then have its "mode"
attribute set to "Off".<br><br<table width=100% bgcolor="#ffffcc"<tr>
<td<code><pre<!-- Web.Config Configuration File --<configuration>
<system.web<customErrors mode="Off"/</system.web>
</configuration></pre></code</td</tr</table<br<b>Notes:</bThe
current error page you are seeing can be replaced by a custom error page by
modifying the "defaultRedirect" attribute of the application's <customErrors>
configuration tag to point to a custom error page URL.<br><br<table
width=100% bgcolor="#ffffcc"<tr<td<code><pre<!-- Web.Config
Configuration File --<configuration<system.web<customErrors
mode="RemoteOnly" defaultRedirect="mycustompage.htm"/</system.web>
</configuration></pre></code</td</tr</table<br</body</html--.
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.
Exception Details: System.InvalidOperationException: 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<stylebody
{font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p
{font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b
{font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 {
font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 {
font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre
{font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold;
color: black;text-decoration: none;} .version {color: gray;} .error
{margin-bottom: 10px;} .expandable { text-decoration:underline;
font-weight:bold; color:navy; cursor:hand; } </style</head<body
bgcolor="white"<span><H1>Server Error in '/MosaicQe' Application.<hr
width=100% size=1 color=silver></H1<h2<i>Runtime Error</i</h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "<b>
Description: </b>An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons). It
could, however, be viewed by browsers running on the local server machine.
<br><br<b>Details:</bTo enable the details of this specific error message
to be viewable on remote machines, please create a <customErrorstag within
a "web.config" configuration file located in the root directory of the
current web application. This <customErrorstag should then have its "mode"
attribute set to "Off".<br><br<table width=100% bgcolor="#ffffcc"<tr>
<td<code><pre<!-- Web.Config Configuration File --<configuration>
<system.web<customErrors mode="Off"/</system.web>
</configuration></pre></code</td</tr</table<br<b>Notes:</bThe
current error page you are seeing can be replaced by a custom error page by
modifying the "defaultRedirect" attribute of the application's <customErrors>
configuration tag to point to a custom error page URL.<br><br<table
width=100% bgcolor="#ffffcc"<tr<td<code><pre<!-- Web.Config
Configuration File --<configuration<system.web<customErrors
mode="RemoteOnly" defaultRedirect="mycustompage.htm"/</system.web>
</configuration></pre></code</td</tr</table<br</body</html--.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: 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;font-size:
..7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top:
-5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top:
-5px}
H1 {
font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 {
font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold;
color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/MosaicQe' Application.<hr width=100%
size=1 color=silver></H1>
<h2<i>Runtime Error</i</h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular,
sans-serif ">
<bDescription: </b>An application error occurred on the
server. The current custom error settings for this application prevent the
details of the application error from being viewed remotely (for security
reasons). It could, however, be viewed by browsers running on the local
server machine.
<br><br>
<b>Details:</bTo enable the details of this specific error
message to be viewable on remote machines, please create a <customErrorstag
within a "web.config" configuration file located in the root directory of the
current web application. This <customErrorstag should then have its "mode"
attribute set to "Off".<br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
<b>Notes:</bThe current error page you are seeing can be
replaced by a custom error page by modifying the "defaultRedirect" attribute
of the application's <customErrorsconfiguration tag to point to a custom
error page URL.<br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
</body>
</html>
--.]
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) +1495
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters) +218
MosaicPages.MosaicQuoteManager.MosaicQuoteManager. ValidateCustomer(MosaicCustomer
typCustomer) in C:\Inetpub\wwwroot\Mosaic\Web
References\MosaicQuoteManager\Reference.vb:173
MosaicPages.QECustomer.Submit1_ServerClick(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\Mosaic\QECustomer.aspx.vb:136
System.Web.UI.HtmlControls.HtmlInputButton.OnServe rClick(EventArgs e) +108
System.Web.UI.HtmlControls.HtmlInputButton.System. Web.UI.IPostBackEventHandler.RaisePostBackEvent(St ring eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
"John Saunders" wrote:
"Kestfield" <Ke*******@discussions.microsoft.comwrote in message
news:14**********************************@microsof t.com...
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 outside of our domain, we get the
error.. ** Client found response content type of 'text/html;
charset=Windows-1252', but expected 'text/xml' **. We can discover the
web
service by typing in the url of the asmx so we know the server can 'see'
it
ok. We have trawlled all over the net looking for a solution and we
cannot
find out what is causing this. PLEASE HELP!!
When you receive HTML from a web service, it is usually an error page. You
need to look at the HTML to see what error it's trying to tell you about!
Alternatively, check the Application event log - it may tell you something.
John