Web API to return JSON instead of XML Out of the box Web API generates XML as a result however if there is need for JSON as response than a little change may help you as given below: Kinly open WebApiConfig.cs file add the following code segment depicted below in red: public static void Register(HttpConfiguration config) ...
Tuesday, May 31, 2016
Wednesday, May 18, 2016
Attempt by method 'System.Web.Http.GlobalConfiguration..cctor() to access
Posted on
11:27 PM
by
Sachin Kalia

"Attempt by method 'System.Web.Http.GlobalConfiguration..cctor()' to access field 'System.Web.Http.GlobalConfiguration.CS$<>9__CachedAnonymousMethodDelegate2' failed." Hi Amigo’s Today when i was working on WebAPi and enabling CORS for WebAPI ,i confronted an error which took time to resolve and finally resolved. To mitigate such issue...
Categories:
WCF and WebAPI
Subscribe to:
Posts
(
Atom
)