2

I wonder if you could help me with this. I have a .NET 3.5 WCF RESTful service that returns json. Service works fine on my local machine but when I deploy it on IIS6 I get this error: The server encountered an error processing the request. See server logs for more details.

The WebInvoke method is GET and when I try to access the service method in browser on the IIS6 machine I get a prompt that asks me to download a file (with the response of the GET request).

I'm really baffled by this as when I choose to download and open the file I see the json that is suppossed to be returned....Strange behavior by IIS.

Any clues on this?

Nate
  • 30,286
  • 23
  • 113
  • 184
KlsLondon
  • 1,160
  • 1
  • 9
  • 18
  • Download fiddler and look at the difference between the request that your browser is making (that works) and the request that the app makes. There must be something different between the two. – ConsultUtah Dec 20 '10 at 15:35

1 Answers1

0

The answer was rather trivial...
Because my wcf operation was returning a List of objects for some reason IIS insists in that case the BodyStyle to be WebMessageBodyStyle.Wrapped , unlike local development service where the response was returned correctly both with Bare and Wrapped formats.
Thanks for all suggestions guys.

KlsLondon
  • 1,160
  • 1
  • 9
  • 18