"Attempt by method 'System.Web.Http.GlobalConfiguration..cctor()' to access field
'System.Web.Http.GlobalConfiguration.CS$<>9__CachedAnonymousMethodDelegate2' failed."
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 you should have to install one of the possible insatalltion using NuGet Package Manager console.
Go to NuGet Package Manager console and select Default Project in which you would like to get this feature enabled and run the following command as shown below.
Install-Package Microsoft.AspNet.WebApi –IncludePrerelease


chandresh sekherPosted Feb 11, 2018, 10:19 PM EST
Thanks buddy .. it's works for me..
gowtham ksPosted Nov 6, 2017, 8:01 PM EST
Thanks you so much. Saved my day.
Uma Shankar PatelPosted Feb 23, 2017, 9:02 PM EST
Good catch.............
Prasanna MuraliPosted May 20, 2016, 5:54 AM EDT
Nice one