Setting ASP.NET State Service on Remote Machine

ASP.NET does allow to set the ASP.NET State Service on a separate machine. This is done through the appropriate setting on the web.config file.

But this is not the only change that we need to do we have set the registry settings on the machine where ASP.NET State Service is running.

We need to do change the the following key

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\aspnet_state\Parameters

and change the value of AllowRemoteConnection to 1 instead of 0.

MFC Tips

For last two month I’m really busy in the world of virtualization,so unable to write any meaningful here. But lately  one of my student had some issues in MFC, so sharing those tips with you all


1. Deleting Columns in List Control

One of the things that sound simple but when you use the conventional way of removing the columns from the list it doesn’t work. The answer is provided by

Microsoft KB Article


2. Clicking on the Tree Control

When you click on the Tree Control and select item, the GetSelectedItem method return the previously selected item handle.

The solution was to use the following line in the message map

ON_NOTIFY(TVN_SELCHANGED, <Tree Control Id>, <methodName>)

instead of

ON_NOTIFY(NM_CLICK, <Tree Control Id>, <methodName>)

Microsoft Releases SQL Server 2008 RTM

Microsoft releases the SQL Server 2008 RTM. The below is the link to the press release

http://www.microsoft.com/Presspass/press/2008/aug08/08-06SQLServer2008PR.mspx