About/Contact

Steve Trefethen

Steve Trefethen is CTO at Wanderful Media.
Contact me

View my LinkedIn profile



Calendar

<<  May 2013  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



System.Runtime.InteropServices.COMException loading a project into VS.NET 2008

June 12 2008 6:14PM

Recently, based on comments to this post I decided to turn $g(Vistas UAC) back on in "silent mode" using TweakUAC. Doing so allows me to run $g(Windows Live Mesh) to support folder synchronization which I’m now using to backup my blog content. The downside is that after making this change I started getting System.Runtime.InteropServices.COMException errors when loading a large application into VS.NET 2008.

System.Runtime.InteropServices.COMException
After a bit of head scratching I thought to change my VS.NET shortcut to launch with "Run as Administrator" enabled which resolved the error. Now, back to work!

FacebookDel.icio.usDigg It!

Tags:

Logoff Remote Desktop Session Remotely

February 15 2008 6:00AM

I’ve been working for a client where I’m connected to their VPN much of the day working remotely on machines located at the clients site. Occasionally, I’ll run into a Remote Desktop connection limit where I can’t login and infrequently, one of the logged on sessions will be my own. At that point, I’ll occasionally try using mstsc.exe with a /console switch to try and disconnect an inactive or unused session but in this instance I was getting this error:

This computer can’t connect to the remote computer.

The next thing is to try and logoff the session remotely using two Windows utilities, quser.exe and logoff.exe. With quser you can find out the session names of the logged on users and use that information in a subsequent call to logoff.exe to close the session.

Console output of quser.exe and logoff.exe

At this point, I can successfully log back in using Remote Desktop or my current favorite remote client Terminals.

FacebookDel.icio.usDigg It!

Tags: , ,

Microsoft SysInternals presentation by Mark Russinovich

February 14 2008 6:50PM

A quick mention that Microsoft has posted a video presentation by Mark Russinovich demonstrating usage of various SysInternals utilities. Definitely worth watching.

FacebookDel.icio.usDigg It!

Tags: ,

Mozilla Prism and composing new GMail messages

February 11 2008 6:24AM
Gmail Plain Text link

Awhile ago, I mentioned Mozilla’s Prism  which allows you to run websites in a manner which more closely resembles a desktop application within a standalone window. When using $g(GMail) the default Rich text editor for the message body doesn’t work and the editor appears read only. The key is to click the "Plain Text" link and switch the editor style which will allow you to type your message.

Since Prism was initially released I haven’t heard/read anything else about it’s development so hopefully we’ll see improvements/fixes. If you haven’t at least played with Prism I highly recommend.

FacebookDel.icio.usDigg It!

Tags:

Copy, move and delete files using TortoiseSVN NOT Windows Explorer

February 01 2008 8:55AM
Recently, I’ve been helping, or at least trying to help, a few people who are new to version control and SVN who’ve been having trouble. The problems range from folders not sync’ing with the server to files missing or having been deleted among others. Now, it’s not the fault of TortoiseSVN nor are these things specific to TortoiseSVN but I think it’s related to how well it integrates with Windows Explorer that leads to these issues.

If you’re a command line junkie this isn’t going to be of much use so continue right on browsing. But, if you do all your file manipulations, cut, copy, paste move etc. from within Windows Explorer then this is for you.

DO NOT...

  • Copy files using Explorer
  • Move files using Explorer
  • Delete files using Explorer
  • Drag/drop files using Explorer
image
If you have files checked into SVN then you need to use SVN commands to manipulate those files. One overlooked capability of TortoiseSVN is right click copy/move where you can right like folders in Explorer and drag them to a new location which will display this context menu (to the right) allowing you to select the operation of your choice. Whatever you do me sure that you’re using the TortoiseSVN commands and not messing around with files using the standard Explorer copy/move/delete otherwise you’ll be in for a world of hurt.
FacebookDel.icio.usDigg It!

Tags:

Organizing your build process

November 19 2007 6:42AM

In this, my second post in a series on automated testing, I’m going to talk about a few steps you’ll need to take after your team has committed to automation. Diving into the deep end and immediately writing a bunch of tests isn’t the place to start. Organizing your project, preparing your code base and planning for automation are the first priorities. Of course, the assumption here is that you’re adding automation after the fact.

Organizing your build

If your project isn’t easy to build you’ve identified the first thing that needs fixing. Having a repeatable automated build is key to a successful test automation strategy. Essentially, getting your build organized means the following two things:

  • Version control
  • Continuous Integration

Version Control

Subversion
The first step to organizing your build and preparing it for continuous integration is to make sure it’s under version control. There are lots of ways to implement version control but it’s the first step to repeatability which is what test automation is all about. Personally, I really like SubVersion otherwise known as SVN, and would highly recommend it particularly if you’re just starting out. There’s been plenty written about the benefits of version control so I won’t go into that here just make your choice and get your code checked in.

Build Automation

The next step is automating your build process. Jeff Atwood wrote The F5 Key Is Not a Build Process discussing the benefits of moving your build process beyond your IDE of choice and I couldn’t agree more. Build automation is really going to be the key to successful test automation. When changes are committed to your repository a build gets kicked off and subsequently launches your test automation. With this setup you’re automation is guaranteed to run against every change to your repository immediately notifying you when a change has "broken" the build.

Note: Make sure your team understands that a break in test automation that’s kicked off as part your continuous integration process is as bad as checking in a syntax error. Yeah, read that again. Even if the code builds, if the smoke test fails as a result of the check-in it should be treated as though a syntax error were checked in.
cruisecontrol.net
For continuous integration I’m a fan of CruiseControl.NET but as with source control you have a lot of choices. CruiseControl.NET is open source and includes a web dashboard that’s easy to modify and supports writing plugins making it easy to extend the build system. Its rather light on documentation so if you don’t want get your hands a little dirty I’d recommend something like Automated Build Studio from AutomatedQA.

 

Putting it all Together

If you find this to be a bit daunting, have no fear I’ve put together a 10 minute video that demonstrates this entire process from beginning to end for a simple project. Of course, your project will be more complex but you’ll get a feel for how easy it is to get going. Note, I made this video in April '07 while still employed at Borland which is no longer the case nonetheless the video is still relevant.

Previous entries in this series:

Other related posts I’ve written:

FacebookDel.icio.usDigg It!

Did you know... series from Sara Ford

August 30 2007 7:29AM

Sara Ford, an SDET at Microsoft who I’ve been subscribed to for a long time, has lately been writing a bunch of posts all starting "Did you know..." like this one. Each posts touches on a single VS.NET feature that is likely overlooked by many. Over the years I blogged about similar features in Delphi and although I’m not currently using Delphi I’m sure a series of posts like would be well received.

So, Nick there you go, a near endless stream of potential blog posts. Have at it man!

Btw, I’ve been following my own advice and trying to learn things I didn’t know about VS.NET particularly related to code editor features. Many years ago I added the Visual Studio key binding to Delphi which made transitioning to VS.NET more or less pain free at least regarding the most common IDE/debugger shortcuts. 

Sara, if you happen to read this thanks for your posts on Katrina and I hope in the near future you find both physical and mental healing. Keep those posts coming!

FacebookDel.icio.usDigg It!

Tags: