Nuget install / update error: Failed to initialize the PowerShell host

While using NuGet for installing, updating and maintaing libraries into your projects, you would have encountered following error: Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first. Following error was encounted when I…

Secure your data with ProtectedData and ProtectedMemory using C#

Microsoft OS (XP or later) and .NET provides finest way to secure your data for storage and in-memory. This can be accomplished using following classes from Data Protectection API * ProtectedData * ProtectedMemory Above mentioned classes can be found in System.Security.Cryptography namespace. Also known as part of DPAPI, they are…

MIME types to host ClickOnce deployment on any Web Server

You would have used ClickOnce deployment / publishing technique for your projects at some point. If not then I would recommend it as it serves as web based installer / setup with minimal configuration and very easy to learn / maintain and push updates. You can publish your project and host the deployment…

How to change the Google Drive default folder

I guest most of us are using cloud storage for taking backup of our precious data. No you say? Then my friend you will be in big trouble soon and you will repent for this act. I have lost few of my precious data in past because of this mistake…

How to change time sync - time interval in windows

The date time of your PC (specific for windows) sync with one of the listed NTP server. This time sync happens every 7 days and with time.windows.com by default. You can also manually sync or update your time. To do that: Click on your system time > "…