Archive for June, 2009

Visual Studio 2008 Error: “The application data folder for Visual Studio could not be created”

Sunday, June 21st, 2009

I recently got a strange error in Visual Studio 2008 which prevents Visual Studio 2008 from starting: "The application data folder for Visual Studio could not be created.", with only a Close button on the message box. What makes this weird is that it happens only when I use my Administrator account, and not my regular user account -- counterintuitive, because at first it appears to be a permissions problem.

After searching the net for a solution I've found a plethora of blog posts encountering the same problem, with various solutions, but Quantboy's "Visual Studio 2.0 startup error" pointed me at the right direction:

I googled the message- and found that the key to this problem is by changing the following registry key entry (like some everyday user’s going to be able to find this)

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

I checked the value for this entry in my Admin account and this is what I found:

 RegistryForJonjonAdmin

I compared this with my user account, and this is the correct value, which I applied to the Admin account. I was then able to run Visual Studio 2008 normally:

RegistryValueforAppData

Consequently I found out that it also prevents Firefox from starting up; during the time I was having these errors I can't open FF either, but after the fix FF starts normally. I don't know what hotfix or what not causes this error, however.

Slides and code for MSDN Session: An Introduction to IronRuby and the Dynamic Language Runtime

Wednesday, June 3rd, 2009

I'd like to thank the nice people who came over and saw last Thursday's MSDN Session!

The slides used for the presentation is provided below, via Scribd, downloadable in PPT format:

An Introduction to IronRuby and the Dynamic Language

An Introduction to IronRuby and the Dynamic Language LaTtEX Presentation given during the MSDN Session of the same title, last May 27, 2009, at the Microsoft Philippines Offices. These slides discuss about the merits of learning a dynamic language, a brief history of Ruby, and its main language features

Publish at Scribd or explore others: Internet & Technolog Research ruby dlr

The Ruby sample code is provided here: RubySampleCode.zip

The sample code for Ruby integration with C# (taken from cruizer here) is here: IronRubyTest.zip

Do check out Andre Cruz's IronRuby presentation slides and demo code -- which was my source for several key points in my presentation. While Andre lamented that he had an audience of 10, I shared his ideas to my audience of 100, as my way of thanking him. Salamat bushing! :)

During the presentation, Philip Laureano asked a rather difficult question regarding the DLR's integration with C# 4.0's "dynamic" keyword. He came up with the answer himself: click here for the sample code on how C# 4.0's dynamic keyword demonstrate the capabilities of the DLR. You the man, Philip!

I'm cooking up a follow up session on ASP.NET MVC working with IronRuby, but don't hold your breath just yet; will keep you posted. Thanks again to everyone who was there!