generic list sorting - order by

If you mean an in-place sort (i.e. the list is updated):

people.Sort((x, y) => string.Compare(x.LastName, y.LastName));
If you mean a new list:

var newList = people.OrderBy(x=>x.LastName).ToList(); // ToList optional

http://stackoverflow.com/questions/188141/c-list-orderby-alphabetical-order

Unable to make the session state request to the session state server

Error:
Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.

Resolution:
ASP.Net State Service maybe doesn't work, or isn't enabled.
To start it go to Administrative Tools --> Services --> ASP.Net State Service...

To enable it go to Administrative Tools --> ... --> IIS ...
On Windows 7 go to --> Programs and Features --> ... --> ASP.Net ...

search this blog (most likely not here)