Attempt by security transparent method \'PayPal.UserAgentHeader.get_OperatingSystemFriendlyName()\' to access security critical method \'System.Management.Management
In my case it was an issue when I managed a NuGet packages in the solution some package overrides System.Web.Mvc assembly version binding in main web site project. Set back to 4.0.0.0 (I had 5.0 installed). I didn't change notice the change because Mvc v4.0 was installed and accessible via GAC. Set back