Reinstall ASP.NET 2.0

When your IIS is installed after the .NET 2.0 SDK was installed, you have to prep the IIS server configuration manually or reinstall .NET SDK. To manually configura IIS use ASP.NET IIS Registration Tool (Aspnet_regiis.exe) , Running: aspnet_regiis -i, does the trick when you get [NullReferenceException: Object reference not set …

Custom protocol opening your application

When you want to give users the ability to quickly navigate to your WinForms application by URL with custom protocol, you just have to define your protocol in a simple registry key 🙂 See http://msdn.microsoft.com/workshop/networking/pluggable/overview/appendix_a.asp, for the Notepad example shown by MS. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\note] @=”URL:Note Protocol” …