Error loading project properties in Visual Studio 2008...

by Phillip H. Blanton 17. March 2009 03:17

I am working on a project in Visual Studio 2008. Whenever I right-click on a project and select "Properties", the properties page starts to load, then i get the following error...

An error occurred trying to load the page.
COM object that has been separated from its underlying RCW cannot be used.

Apparently this is caused by a MS plugin used in ReSharper. After a little Googling, I found that it is a bug in Microsoft Source Analysis for C#.

Here is a description of the problem. 

MS have released an updated version of StyleCop that has a fix in it. shut down Visual Studio, download this and when you start up VS again, the problem will be fixed.

StyleCop 4.3 release Page:
https://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=sourceanalysis&ReleaseId=1425

Microsoft Page Detailing The Problem:
http://code.msdn.microsoft.com/WorkItem/View.aspx?ProjectName=sourceanalysis&WorkItemId=9&wa=wsignin1.0

Good Luck.

Tags:
Categories:

SQLServer 2008 Management Studio's Summary Pane?

by Phillip H. Blanton 10. March 2009 00:59

Where did the summary pane go in SQL Server 2008 Management Studio? have you ever thought,

"I used the summary pane in SQL Server 2005 Management Studio all the time and really miss it. In the 2008 version, the area is blank. What a dumb move"...

I have; but recently I discovered the secret. In the 2008 version of SQL Server Management Studio, not only did they (Microsoft) change the default visibility of the summary pane, they also renamed it, making it very difficult to find the dad-gummed thing so that you can turn it back on.

It is now called the "Object Explorer Details" pane and you can enable it by pressing [F7] or clicking "View | Object Explorer Details" from the menu.

Huzzah! 

 

 

Tags:
Categories:

My Visual Studio Macros

by Phillip H. Blanton 5. March 2009 01:30

These are the visual studio macros I use on a daily basis. They are posted here for my own edification, but you are welcome to use them too.

macros.txt (7.07 kb)

There are four macros in here that I find quite useful. They are...

 

  • CollapseSolExplorerNodes
    Collapses all top-level solution explorer nodes. You know how sometimes you open up a large project and all nodes are open? This will snap the top-level nodes closed. I attach it to the "alt + \" chord.

  • ExpandSolExplorerNodes
    Expands all top-level solution explorer nodes. This is the opposite of the one above. I don't use it very often, but it was an easy one to write so I wrote it. I assign it to the "alt + /" chord.

  • MakeRegion
    This is my favorite. Select a block of code you'd like enclosed in a region. When this code executes, a dialog pops up and asks you for the region name. It is pre-populated by the method, class or property name but you can type in whatever you want.  When you press enter, the block is enclosed in a properly named region. I assign it to the "alt + R" chord.

  • AttachToAspNET
    You are all familiar with the chord "ctrl + shift + B" for building your solution. This macro works great assigned to the chord "ctrl + shift + D". When executed, it attaches your project to an existing w3wp.exe process (the running IIS web server). This saves a ton of time as compared to F5 debugging.

 

Tags:
Categories: