Hello All,
I have question as below. I have one web application and 1 WCF service. I am consuming WCF service using JQuery ajax call from my WebApplication.
Currently i have below setting done :
1. In inetpub folder i have WCF Service.
2. In inetpub >> wwwroot I have web application.
My Problem is as below
I am calling service (POST Method), in that i am getting my response. If i check in browser/firebug I am getting response as my JSON object and html runtime error page appended with JSON.
as below (Below bold portion is what i am expecting, but with this below html also gets appended.)
{"ReturnValue":"> id = 'tr_2'>> | Col1<\/th> | class='width-68'>Col2<\/th><\/tr><\/thead> |
---|
<input type='checkbox' id='chkselectall'
class='clschkselectall'\/><\/td> | <input type='text' id='txtCol1' class='form-control
input-small txtfiltermultigrid' value='' \/><\/td> | <input type='text' id='txtCol2'
class='form-control txtfiltermultigrid' value='' \/><\/td><\/tr> |
<input id='chkddl1' type='checkbox' class='chkmultiselect' data-lable
='TestP' value='1'\/><\/td> | 654<\/td> | TestP<\/td> <\/tr> |
<input id='chkddl2'
type='checkbox' class='chkmultiselect' data-lable='TestPractice' value='2'
\/><\/td> | 000001<\/td> | Test3<\/td> <\/tr> |
<input id='chkddl3' type='checkbox' class='chkmultiselect' data-lable
='Demo' value='3'\/><\/td> | 1001<\/td> | Web
<\/td> <\/tr><\/tbody><\/table>"} |
<!DOCTYPE html>
<html>
<head>
<title>Runtime Error</title>
<meta name="viewport" content="width=device-width" />
<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:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em
;line-height:14pt}
.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; }
@media screen and (max-width: 639px) {
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
}
@media screen and (max-width: 479px) {
pre { width: 280px; }
}
</style>
</head>
<body bgcolor="white">
<span><h1>Server Error in '/DemoDashboardServices' Application.<hr width="100%" size="1" mode="hold" />=silver></h1>
<h2> Runtime Error </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
Description: 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>
Details: To enable the details of this specific error message to be viewable on remote
machines, please create a <customErrors> tag within a "web.config" configuration file
located in the root directory of the current web application. This <customErrors> tag should then
have its "mode" attribute set to "Off".<br><br>
<table width="100%" bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
<!--
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
Notes: The 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>
<!--
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
;
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
</body>
</html>
Please do let me know if anyone knows this from where that html gets appended in my service response.