I have added a new Web API project. I install Cors
PM> Install-Package Microsoft.AspNet.WebApi.Cors -Pre
Then when I run my project, I get this error:
The type initializer for 'System.Web.Http.GlobalConfiguration' threw an exception.
This is my inner exception:
{"Attempt by method 'System.Web.Http.GlobalConfiguration..cctor()' to access field 'System.Web.Http.GlobalConfiguration.CS$<>9__CachedAnonymousMethodDelegate2' failed."}