Tuesday, December 21, 2010

Visual Studio : Counting lines of code

Had a look at a vb application to get a feeling for how much work it would take to support it.

One of the measures of complexity is "lines of code" (LoC). Yes, I know it's a crap measure but it's better than nothing and a useful guide.

Mr. Google to the rescue and (no surprise), a good answer on Stackoverflow.

So downloaded the code from here and installed it.

Warning - I had to open and close the project a few times before I could get it to "take" but I got it working and I found that it was a really useful tool.

Hasn't been updated for ages so very much in the Visual Studio 2003 / 2005 era but luckily that was the ballpark I was in.


Wednesday, December 08, 2010

Visual Studio : Unable to make the session state request

I was running up Visual Studio for an ASP.NET project when I got this 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."

Mr. Google to the rescue and you have to start up:

Control Panel / Administrative Tools / Services.

Right click on ASP.NET State Service / Start

Refresh the browser and you're good to go.