Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/referencesource/System.Web.Extensions/Script/Services/RestHandler.cs')
-rw-r--r--mcs/class/referencesource/System.Web.Extensions/Script/Services/RestHandler.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/referencesource/System.Web.Extensions/Script/Services/RestHandler.cs b/mcs/class/referencesource/System.Web.Extensions/Script/Services/RestHandler.cs
index 29d3f6088b2..eee0e1f07a2 100644
--- a/mcs/class/referencesource/System.Web.Extensions/Script/Services/RestHandler.cs
+++ b/mcs/class/referencesource/System.Web.Extensions/Script/Services/RestHandler.cs
@@ -224,9 +224,9 @@ namespace System.Web.Script.Services {
context.Response.AddHeader("jsonerror", "true");
// Maintain the Charset from before. (DevDiv Bugs 158401)
context.Response.Charset = charset;
- //Devdiv
-
-
+ //Devdiv Bug: 118619:When accessed remotely, an Ajax web service that throws an error doesn't return the error string in the proper format on IIS7
+ //For IIS 7.0 integrated mode we need to set TrySkipIisCustomErrors to override IIS custom error handling. This has no functional/perf impact on
+ //IIS 7.0 classic mode or earlier versions.
context.Response.TrySkipIisCustomErrors = true;
using (StreamWriter writer = new StreamWriter(context.Response.OutputStream, new UTF8Encoding(false))) {
if (ex is TargetInvocationException) {