ASP.NET: The data protection operation was unsuccessful

the data protection operation was unsuccessful. this may have been caused by not having the user profile loaded for the current thread’s user context, which may be the case when the thread is impersonating. If you receive this error from one of your application, you resolve the problem in this way: Open IIS Manager Select Applications Pools, and go ahead and select the App Pool used by your app Right-click on it, and select Advanced Settings, Go to the Process Model Section and Find the “Load User Profile” Option and…

Read More

Microsoft’s Windows 95 is 20-years-old today

When Microsoft kicked off work on Windows 95 way back at the beginning of the 90s, the company wasn’t to know how much of an impact it would have on our lives two decades on. In one fell swoop the new version of Microsoft’s OS brought a swish graphical user interface (GUI) to desktops for the first time and the much vaunted Start menu began life inside the mid-1995 edition of the OS. You only need look at the disquiet that surrounded its removal from Windows 8 and subsequent return…

Read More

Visual Studio 2015: upgrade all NuGet packages at one time

Open the Package Manager Console and use the Update-Package cmd-let to update all packages. If this doesn’t work, you have other two solution. Always in Package Manager Console you type one of those: First solution $list = Get-package -project {Add project name here} for($i=0; $i -lt $list.Length;$i ++ ) { Update-Package -project {Add project name here} $list[$i].Id } Replace {Add project name here} with your project name without braket Second solution foreach ($p in get-project -all) { update-package -ProjectName $p.ProjectName }   Happy coding!

Read More

How to truncate log file in SQL Server

In SQL Server data is stored using two physical files: (.mdf) extension which contains the data. (.ldf) extension which contains log. Log file size increases very rapidly and depend on the operation performed on the data. After a long time period this file becomes too large. When log file is too large it takes time to perform some operations like (attach, de-attach, backup, restore… etc ). Step 1. Copy/type the below given SQL. Step 2. Change @DBName to <Database Name>, @DBName_log to <Log File Name> Step 3. Execute the SQL.…

Read More

UWA: This application can only run in the context of an AppContainer

C# .NET language

Run it from VS (with or without debugging). This will actually install unpackaged version of your app, so you will see it in the start screen. Create a package to use locally. You can do this in VS by going to Store → Create App Package → Build a package to use only locally. This will create a bunch of files, including a command-line script that will actually install the app. You probably could use this method to distribute the app, but it would work only on developer-enabled computers. Publish…

Read More

Microsoft now has six million Windows Insiders

In a video posted earlier (see it below), Microsoft CEO Satya Nadella once again accepted the challenge of former NFL player Steve Gleason, who suffers from ALS, and poured a bucket of ice cold water over his head along with Terry Myerson and members of the Windows 10 team. At the same time, Myerson, head of the Windows and Devices division, confirmed that six million have signed up to the Windows Insider program that sees users able to test preview releases of Windows 10 and Windows 10 Mobile, according to Windows…

Read More

Universal Windows app samples

windows store universal windows platform

On GitHub Microsoft have published a lot of examples for Universal Apps: the link is https://github.com/Microsoft/Windows-universal-samples This repo contains the samples that demonstrate the API usage patterns for the Universal Windows Platform (UWP) in the Windows Software Development Kit (SDK) for Windows 10. These code samples were created with the Universal Windows templates available in Visual Studio, and are designed to run on desktop, mobile, and future devices that support the Universal Windows Platform. Universal Windows Platform development These samples require Visual Studio 2015 and the Windows Software Development Kit…

Read More

Windows 10: Changing Paradigms

Windows 10 is the main discussion topic in the online development communities. This new operating system that is currently in the technical preview (and available through the Microsoft insider program) is a milestone in the platform unification journey that Microsoft embarked upon with starting with Windows Phone and Windows 8 operating systems. With Windows 10, developers and users are introduced to one development kit, one store, one application and one binary distribution package. Introducing Windows Core With Windows 10, developers are introduced to the new Windows Core concept. Windows Core…

Read More

Windows 10 uses peer-to-peer networking to distribute updates by default

Now that Windows is a service (WaaS), which means it will constantly be updated rather than have big regular updates, Microsoft has put some features in to Windrows 10 to speed up the delivery of those updates. One feature that may have escaped your notice is called Windows Update Delivery Optimization (WUDO). This feature isn’t mentioned in the "Get Started" app but needs to be searched for in the documentation. This new Windows 10 feature works in a similar way to torrent technology which uses a peer to peer network…

Read More