updated to .NET 4.5.1 and removed obsolete methods