WCF Global(.asax) Behavior
- by Theofanis Pantelides
Hi,
I want to create a global option that when a REST call contains &format=json to output the response as a JSON string.
If I enter the following String in my method it works:
WebOperationContext.Current.OutgoingResponse.Format = WebMessageFormat.Json;
However, if I add this line, anywhere in my Global.asax file, I get a nullException for…