Tooltip: Adding a package to your Visual Studio project with PMC

Package Management Console is an easy way to insert a package to your project, in my case I wanted to convert my simple console app to an entity framework app with a database connection.

Here’s a simple walk through:

Go into Tools -> Library package manager -> Package manager console. The PMC opens up in the lower section of VS.

The following options are availablePMC1

Now type “Install-Package EntityFramework” and The EF package will be installed within your project.

Entity Framework has the following Cmdlets available.7

Now we just need to implement EF in our project

and add the references System.Data.Entity and Microsoft.Data.Entity.

Solution Explorer

Vista Hack “Requested registry access is not allowed” in Visual Studio projects.

How to hack Vista to get your Visual Studio installation to work on Windows Vista.

As we all know Vista can sometimes be a pain in the ass when it comes to permissions, on my journey for the installation of Visual studio I encountered the problem:”Requested registry access is not allowed”. Visual Studio can’t create any new projects because of restrictions in the registry.

How can we beat Vista security? well, once you have figured it out, it’s quite easy, although it took me 2 days and 3 system restores, the power is in the order of altering.

First you need to alter the authorization settings in your registry, make sure you are comfortable working in your registry, since you can cause a lot of damage to your pc if you do not know what you are doing.
select HKEY_CLASSES_ROOT right click ‘permissions’, this part of the registry doesn’t have any assigned users, so we will add ‘Administrators’ and ‘Users’ and assign them the privilege ‘ full control’ and click Ok. Now sit back, for this can take a while.

NOTE: make sure you have a back up of your registry and a system restore available, just to be safe!


After this you can close the registry.

The second step will be to download a program called SubInAcl.exe and install this little program to your computer.

next we’ll need to make a script to be able to hack our registry to alter the security settings:

open a notepad and insert the following lines:

save the textfile as fix_registry_permissions.cmd

You can run the file by double clicking it, this is the part where you can leave the house and do some groceries shopping and start making dinner. Don’t worry, just sit it out.


When the modifications are done, the cmd screen will disappear and you can restart your computer.

Now you will be able to successfully start Visual Studio. Good Luck!