The type initializer for 'System.Web.Http. GlobalConfiguration' threw an exception.
Answers
|
Brian
2482
Points
14
Posts
|
Hi L Paul, I came across the same issue and research on it from different blogs and forums. Since we have installed WebApi.Cors, it will install the latest versions. When I include pre release version in installation, then this error disappeard. I think you need to do following: In the package manager console execute following command PM> Install-Package Microsoft.AspNet.WebApi -Pre
PM> Install-Package Microsoft.AspNet.WebApi.Client -Pre
PM> Install-Package Microsoft.AspNet.WebApi.Core -Pre
It will include pre release versons.
Posted On:
05-Oct-2015 02:54
I faced same problem. great thanks... - nik 25-Aug-2017 00:52
|
|
Smith
2984
Points
80
Posts
|
great!! finally found the solution. Works perfectly, thanks...
Posted On:
28-Nov-2015 05:58
|
|
Priya
1416
Points
41
Posts
|
Hi, I was facing same problem. I solved by re-installing the package. Thanks...
Posted On:
21-Dec-2015 23:21
|
Mayank
194
Points
12
Posts
|
I was facing same issues. Errors solved by including pre release option in console manager for web api: Install-Package Microsoft.AspNet.WebApi -IncludePrerelease
This worked for me.
Posted On:
01-Jan-2016 04:33
|
|
sam
378
Points
48
Posts
|
This worked for me!!! Thanks so much!!
Posted On:
09-Jan-2016 05:34
|

