Posts filed under 'Visual Studio'

Visual Studio 2003 Web Projects Not Loading?

Took me a while to find a solution to this problem.

I checked out a project from Visual Source Safe (using the VS2005 client) to my local drive and tried to open the solution.  The solution contained several projects, two of which were web projects.  I had previously checked out the project to this computer, and IIS had virtual directories mapped to the old location.  I changed the target of the virtual directories to my newly checked out location and figured that everything would be OK.  No dice.

The problem was that Visual Studio claimed it couldn’t find the project files.  The virtual directories were mapped correctly.  Directory permissions were OK.  Crazy.

After searching the web for a while I was able to locate something that works.  To resolve the problem do the following:

  1. Check out the project from source control (get latest).
  2. Map virtual directories to correct locations.
  3. Delete the project files for the web projects on the local computer (the .csproj and the .vspscc files for a C# web project).
  4. Delete the solution preferences files (the .suo file).  This only exists if you have previously tried to open the project locally.
  5. Launch Visual Studio and open the project.

Not exactly the most straight forward workaround.  But is seems to work.  Thankfully things seem a bit better in Visual Studio 2005.If I run into this problem again, I’ll record more specific error messages so Google will help locate the solution.  I’ll also try to get some screenshots.

Add comment April 3rd, 2008

A Back button for code navigation

If you’re using Visual Studio 2005, you’ve probably already fallen in love with its language-aware features, such as the rename feature (allowing you to rename a variable/method/etc and update all references to it) or find all references, that lists all places in the code that reference a variable/method/etc.

One of my favorite features is the “Go To Definition” option, which will take you to where a method/variable/enum/etc is defined.  It’s really useful when you’re exploring a codebase.  The problem is, oftentimes you’ll go to a definition, figure out what you need to, and then want to go back to where you were before.  What you need is a back button, much like in a web browser.  It took a little searching, but I finally found just such a feature.  Just press ctrl+- (control and the minus key).  This will navigate back in the code, just like a back button.  One thing to be aware of is that this only works when  you use the minus located to the right of the 0 (zero) key (in the main part of the keyboard).  Using the minus in the num pad won’t work.  Jumping around like this saves a bunch of time.

Add comment July 30th, 2007


Calendar

September 2008
M T W T F S S
« Aug    
1234567
891011121314
15161718192021
22232425262728
2930  

Posts by Month

Posts by Category