Skip to content

MikeBevers.be

Putting it out there…

Archive

Category: Microsoft Products

The problem

Recently we’ve changed the extension of the external url of our TFS server. Strange enough Visual Studio doesn’t provide an edit feature in the TFS servers window. Maybe that’s why it’s called “Add/Remove Team Foundation Server”.

The solution

I went looking where Visual Studio stored the TFS info. After a bit of searching in the Registry I ended up in: “CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\Instances”.

In the Instances folder you’ll see all your added TFS servers. You can start by changing the name of the folder, this text is used as the name label. What is important, is to change all the Uri entries you’ll find in the subfolders. There is one per TFS server and one for each collection!

Happy coding!

Where are my regions?

When I implemented my first interface with Visual Studio 2010, I noticed that the implemented methods were not enclosed with the Region directive.

Interface without regions

Interface implementation without regions

If you want your regions back, you explicitly need to tell Visual Studio by enabling them in the options dialog.

Options - Texteditor - Advanced

Options - Texteditor - Advanced

After you’ve enabled them, all is back to normal…

Interface with regions

Interface implementation with regions

Source

I found a nice tutorial on Josip Medved’s blog. I’ve copied the article below for back-up purposes.

How to connect VS2008 with TFS 2010

Team Foundation Server 2010 works great when combined with Visual Studio 2010. However, if you wish to combine it with Visual Studio 2008, some additional setup is required.

First thing that you need to install is Team Explorer 2008. If you already used source control, you may have it. Easiest way to check is to go into Tools > Options and select Source Control. If there is “Visual Studio Team Foundation Server” in plug-in list, you can skip this download.

Another thing I installed was Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010. I do not think that this long-named update is really “must” but I decided to install it anyhow – just in case.

Once you install everything, you can try adding Team Foundation Server 2010 as destination, but you will be greeted with error “TF31002: Unable to connect to this Team Foundation Server …”. Reason behind this is that old Team Explorer 2008 does not know anything about collections.

Solution would be to add it as full path (e.g “http://server:8080/tfs/collection”). I could not do it because every time I entered full path, I also got error “TF30335: The server name cannot contain characters ‘/’ or ‘:’ …”. Since official way would not work it was time to come up with alternative.

In order to add TFS 2010 server, you will need to exit Visual Studio 2008 and go into Registry editor. Find key “HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers” and at this location just add string value. Name of this value will be what Team Explorer 2008 will use for display. It’s value is full address of your server. It should be something like “http://server:8080/tfs/collection”.

Now you can go into Visual Studio 2008 and Team Explorer will have new entry. As you work with it, you will notice that not everything is “bump-free” (e.g. tasks). However, source control it self will work perfectly and that was enough for me.

Problem

Lately I’ve been listening to some MP3 songs on my corporate laptop. Today I noticed that the library of Windows Media Player (WM Player) was getting pretty big. I don’t want my corporate laptop to contain a lot of information about my music. So I was looking for a “clear” button or menu item but didn’t find any. Because I don’t usually use WM Player as an MP3 player, I don’t really know all the features and options. Let’s go and take a look.

Quick solution

If you want to delete the entries in the library, close your WM player and navigate to “C:\Documents and Settings\YourUserNameGoesHere\Local Settings\Application Data\Microsoft\Media Player”. Found it? Close your WM Player. Now delete all the files in the folder! Restart WM Player and you’ll see that the library is empty.

continue reading…

The Problem

I generally like using the IDE’s that Microsoft provide for developers. But in this case, I had an annoying problem. When creating my database model I always use Microsoft SQL Server Management Studio. As you all know, during development your tables often change a bit. You create new columns, delete old ones, change the type of a column, define new keys, etc.

In SQL Server 2005 SSMS I don’t remember doing one of the above actions resulted in an error. Now I’m using SQL Server 2008 SSMS and I repeatedly got the error: “Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created”.

continue reading…

The Problem

The other day, I was working on update / patch / setup patterns and stuff, when I noticed in the Windows Registry that the InstallLocation of my installed application was empty. You can find info on installed applications in the Windows Registry by typing “regedit” in the Run command and browsing to: “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\”.

Apparently, it is a known bug. So, we’ll have to fix it ourselves!

continue reading…

The Problem

For starters, I love the Hibernate feature in Windows. If you are at work and it’s time to go home, but you know that when you get home, you want to resume your work. So Hibernate comes in very useful. It doesn’t consume any battery power, unlike the Sleep feature.

continue reading…

A new task

Recently I was given a little task about extracting data from a SQL Server 2005 to a Microsoft Access database. The objective was to drop an Access file on a shared filesystem location within the company.

I chose to work with the SQL Server Integration Services (SSIS), which was built for such tasks. You can find some general info about SSIS on the Microsoft SSIS homepage.

SQL Server integration Services is an available option when you’re installing SQL Server 2005 (Standard, Developer or Enterprise Edition).

continue reading…

The problem

I needed to access the outlook calendars of some colleagues, to check if they were on holiday or not. At the time, I only had access to the Outlook Web Access (OWA).

Because there is no button like in MS Outlook like “Open a Shared Calendar”, we have to be creative.

continue reading…