If you want to try F# programming in Visual Studio 2017 (or 2019 for that matter), here's what you might want to do to optimize Visual Studio to run optimally on your machine. From the menu, go to Tools and select Options. Under Debugging, set the Enable script debugging to True. Under Misc, set 64-bit F# Interactive to True (if you use 64-bit Windows OS). Set F# Interactive options to the … [Read more...]
How to Fix Obsolete ConfigurationSettings.GetConfig API
When you're upgrading code from .NET Framework 1.1 to 2.0, you will get a few warnings if you use an obsolete API such as ConfigurationSettings.GetConfig, you may see something similar to this: To which you have to replace it with ConfigurationManager.GetSection(). Or the same way with ConfigurationSettings.AppSettings.Get() to ConfigurationManager.AppSettings.Get(). The problem is after … [Read more...]
Migrating ASP.NET 1.1 to Windows Server 2012
With Microsoft cutting the support for Windows 2003 by July 2015, many legacy web applications built with .NET Framework 1.1 have to be migrated to a newer Windows Server 2012 R2. The dilemma is that .NET Framework 1.1 is no longer supported (it's not even possible to manually install the .NET Framework 1.1 on these platforms) on Windows Server 2012 or Windows Server 2012 R2. The proposed … [Read more...]
How to Setup SQL Express LocalDB in ASP.NET
Microsoft SQL Server Express LocalDB should be used in place of the SQL Server Express user instance feature which is deprecated. It is more suitable for developers as it runs on-demand (instead as a service) with your Windows credential and without the need the need of complex configurations. In Visual Studio 2013, if you want to have it setup a default database using a SQL Server LocalDb in … [Read more...]
How to Fix Access Denied (401) Error in Microsoft IIS
After migrating a web application to a new server, we encountered this server error: 401 - Unauthorized: Access is denied due to invalid credentials. You do not have permision to view this directory or page using the credentials that you supplied. This happened despite the fact the user is already authenticated via Active Directory. There can be many causes to Access Denied error, … [Read more...]