Why Procmon is a great tool!

Procmon is created by sysinternals and should be deployed to any server in your enterprise (and desktop) it allows you to see what file, registry, network and processed & thread activity is happening on your system. I just used to to work out why VS 2010 was not installing, it turns out it iterates through all the drives on your system including your mapped drives. As I had just been playing with WebDav I had a mapped WebDav drive which was very slow to access. Looking at proc mon I could see straight away what the issue was and I disconnected the drive. Problem sovled!

Continue Reading »

A hunting we will go!

Had a great day today, went for a walk up the mountain with the family and gave geocaching a spin. The kids enjoyed it. We did GC14179 and then tried to find GC18JGE but were not able to. Anja was not amused… On the way back down the mountain we found GC2498 and a great view. The kids bugged me to find another one so we did GC13C0A. This was better as I got the geocache app for my HD2 up and working this time. Much easier.

Continue Reading »

Getting a Outlook MailItem from a Ribbon Event

You may find this code block handy: [csharp] /// /// Gets the mail item selected in the explorer view if one is selected or instance if that is the view active. /// /// The instance containing the event data. /// A Outlook.MailItem for the mail being viewed. private Outlook.MailItem GetMailItem(RibbonControlEventArgs e) { // Check to see if a item is select in explorer or we are in inspector. if (e.Control.Context is Outlook.Inspector) { Outlook.Inspector inspector = (Outlook.Inspector)e.Control.Context; if (inspector.CurrentItem is Outlook.MailItem) { return inspector.CurrentItem as Outlook.MailItem; } } if (e.Control.Context is Outlook.Explorer) { Outlook.Explorer explorer = (Outlook.Explorer)e.Control.Context; Outlook.Selection selectedItems = explorer.Selection; if (selectedItems.Count != 1) { return null; } if (selectedItems[1] is Outlook.MailItem) { return selectedItems[1] as Outlook.MailItem; } } return null; } [/csharp]

Continue Reading »

Great example of tracing a leak in SharePoint.

Just read this article, it is a great example of how the memory dumps can be used to trace issues and also points out a workaround to solve this problem prior to a patch being released. http://www.todd-carter.com/post/2010/02/08/SharePointe28099s-Sasquatch-Memory-Leak.aspx

Visual Studio 2010 and .NET Framework 4 Training Kit - January Release

If you are looking at catching up with the VS2010 Beta 2 and Framework 4.0 world there is a free training kit avaiable at: http://www.microsoft.com/downloads/details.aspx?FamilyID=752CB725-969B-4732-A383-ED5740F02E93&displaylang=en In additiona Channel 9 is also running some courses. http://channel9.msdn.com/learn/courses/vs2010/

Visual Command Prompt Here

If you want to have the Visual Studio command prompt on the right-click on the folder place the below into a text file with a .reg extension and then add it to the registry.

Windows Registry Editor Version 5.00

 

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere]

@=“Cmd&Here”

 

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere\command]

@=“c:\\WINNT\\system32\\cmd.exe /k \”\“C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\”\" x86"

Bing search cache for the win.

I managed to find a old sql backup of my site so the articles are back, still have to upload the code stuff. Bing was a nice help in being able to re-create recent articles using its cached copy. Will hit google later to see if there are any others I want.

Solidinternet is dead... along with my content

They are not responding and the servers are down, I have a continual ping setup in the vain hope the server may come up long enough to backup my files. Very Very Annoying.

Looking for Objects in the SharePoint Deployment failed log.

SharePoint Content Deployment can be a fun beast at times, this article will walk you through a approach for resolving issues. While working with a client we had the following error in a incremental job:

The object has been updated by another user since it was last fetched

Since the client was not on the latest patch level and unable to patch at this point in time I want to see if I could resolve it out manually. The problem was I dod not know which site they had edited and replaced the default page on. Running the job it was failing at object 1829, being the lovely SharePoint that it is I have no way to workout what object is at 1829… or do I? If you have the system setup to leave the failed cabs on the destination server you can open them up and look for the Manifest.xml files. Once you have these copy them to a place on the system. The following powershell commands will allow you to find the object that it stopped on so you can resolve it, delete it or recreate it.

Continue Reading »

Paper Folding: How to Make a Paper Chatterbox

One for the kids big and small http://www.ehow.com/how_4460565_make-paper-chatterbox.html