This blog has, IMO, some great resources. Unfortunately, some of those resources are becoming less relevant. I'm still blogging, learning tech and helping others...please find me at my new home on http://www.jameschambers.com/.

Thursday, July 16, 2009

Backstory on Backstage

There’s a great post here on some of the design features of the Ribbon in Office and how the Backstage View came into play over the last six years.

(http://blogs.technet.com/office2010/archive/2009/07/15/microsoft-office-backstage-part-1-backstory.aspx)

I am one of the early naysayers of the Ribbon, but also a convert.  I’'ve grown to like the more standardized approach to grouping features of the applications and it has become quite intuitive.

Most people I’ve talked to who say they don’t like the Office Ribbon can provide very little reason why, other than it’s not the same.  If you show them a couple of the features they are usually quick to re-evaluate their stance, and if they use it for a while they usually start to like it (at least enough to use it without complaining!).

I’m still working on one lady at my office…she’s a Mac user and a Ribbon hater!  ;o)

Tuesday, July 14, 2009

Frustrating Upgrade Process (and Resolution)

One of my development environments recently expired.  Yes, pretty much the whole machine. Almost all the tools hit the 90 day trial period wall over the same few days. 

We have purchased full licences for all machines, so this didn’t seem to be too big a problem for me.  Visual Studio Team System – the trial version – turned out to be the biggest nightmare.

Here’s what you see when Team System 2008 times out:

image

The text here is misleading, as it was in the nag screens that came up for the last couple of weeks (which, by the way, is why I put it off so long). 

The text reads:

Click Upgrade to find out how you can continue to use the application by purchasing a full edition.

Well…that would be great but that’s not what happens.  Besides, I already have purchased the lot and don’t need any more cash dispensed at this point.  The ‘Upgrade’ button simply opens a browser and takes you to a web page with reasons to buy, feature comparisons and – ironically – links to the trial version.

At this point I pulled down the pre-PID’d version from MSDN Subscriber Downloads and re-installed.  Unfortunately, this ended up being a different SKU than my trial, so I was still getting bounced out of the IDE (even though the installation worked clean and reported no errors).

I figured I’d have to bite the bullet and uninstall Visual Studio, thus losing all my settings.  This is where I realized the err in my dual-SKU approach.  I found two product uninstalls in Control Panel –> Programs (one was the developer edition I just installed, the other was the Team System that was part of the trial). 

Either way I figured I would end up losing all my plug-ins, my config (I highly customize my dev env) and recent items list (which, weirdly, I rely on quite heavily).

Instead, the uninstall gave me this:

image

Aha! An upgrade path.  Too bad the ‘Upgrade’ button above didn’t take me to a page to tell me about that one!

Dang.  Now where do I get my key?  I can’t get into VS.Net and MSDN downloads says the product is pre-PID’d, so how do I find it?  You have to use the installer (it’s listed in one of the first steps, greyed out), except the problem with that approach is that you don’t get the screen that reveals the key unless it’s a clean install.

Luckily, I have a whole bunch of VMs around :oD

I fired up VPC, went into a clean OS and mounted the ISO.  Two minutes later I had my key:

image

Next, I plugged the key into the upgrade box I showed above and the ‘Upgrade’ button lit up…so I clicked it…and was pleasantly rewarded with the following:

image

Fire up Visual Studio, and you’re good to go, all settings in tact.

So, in a nutshell, if your Visual Studio Team System trial expires and you want to continue working using your existing development configuration, do the following:

  1. Download your purchased copy from the MSDN subscribers download site.
  2. Fire up a clean VPC (or a PC without Visual Studio installed) and run setup from the ISO you downloaded.  VPC is easy because you can mount the ISO as a CD in the virtualized hardware.
  3. Run the first few steps of the install to get your key.
  4. On your development machine, go to Control Panel –> Programs and select your Visual Studio trial.
  5. In the maintenance application it prompts you for the key; use the key from the pre-PID’d copy you’ve purchased.
  6. Push upgrade!

It took about three hours longer than I would have liked because I went and downloaded the other copy and did a full install.  I really should have had it downloaded anyways, but I didn’t need to bake in another install. 

Hope this helps if you get stuck with a timed-out version of Visual Studio.

Monday, July 13, 2009

Windows 7 Blue Screen of Death – Virtual PC

If you want to see quick evidence of the BSOD (blue screen of death) still kicking around in Windows, you have but to install it on a virtual machine. 

Actually, a specific type of virtual machine, with certain hardware and a certain OS.  I have a 64 bit install of Vista running and my virtualization software (for this vm, anyways…I really should standardize…) is Microsoft Virtual PC 2007.  When you install the 32bit version of Win7 everything runs a treat until you try to install Virtual Machine Additions.

After the install, you get a BSOD loop.  You’ll need to restore to the point prior to the VMA installation in order to get Windows 7 back up and running.

The fix is quite simple: upgrade to SP1 for Virtual PC.  There isn’t a workaround otherwise, and there’s no point in hanging on to the old bits.

Make sure all your machines are out of a ‘saved state’ and properly shut down before you upgrade.

After the upgrade, you can easily (and safely) install VMA and you won’t be blue-screening.

Friday, July 10, 2009

Docking a WPF Window to the Desktop

Philip Rieck posted a great solution (using a previous user’s code as a starting point) to allow a WPF window to be docked to the desktop.

I have a queue monitoring application that doesn’t need nearly a full screen to operate and this works excellent to allow users to full-screen other apps while yours stays on top.

The question and answer (from StackOverflow) is here.

Refactoring Woes

I just ran into a problem that was very hard to source related to refactoring class names in Visual Studio 2008.  The error I started getting was as follows:

The name 'InitializeComponent' does not exist in the current context.

I didn’t start to get this error until after I restarted Visual Studio. Also of note is that I run Blend and Visual Studio side-by-side, so it added some extra “what happened?” to the situation.

I was working in a WPF application and moving some classes around into various namespaces.  I had both VS and Blend 2 open at the time and after a build (which compiled and ran just fine) I switched over to Blend, which prompted me to reload the project (which I did).  At that point, I started getting three or more errors for each user control and view in my project.

I quit Blend without saving, thinking that it just crapped out hard for some unknown reason.

Visual Studio then prompted me to reload the project, which I did – reluctantly – and everything still compiled okay.  I thought that fixed the previous (non-descript) errors, but a clean & rebuild killed the project (80+ errors again).

The problem ended up being a problem with the refactoring.  Some of the classes were renamed/moved to the new namespaces, but only some, and all the Xaml partial classes were left in half-baked states. 

If you run into this, I suggest a manual approach rather than a find-and-replace as quick action in that regard might lead to further complications (I have on occasion gotten into trouble with a quick finger on the rename trigger).

After finding the 6 or so classes that were only halfway renamed the project healed itself fairly quickly.

Friday, July 3, 2009

Great Gains in End-to-End Project

Whirlwind week for me here.  I had a couple days off to ponder the benefits of life rolling into version 32.0, and I’m prepping to attend a conference dealing with 2,000 of media history and how it affects the way we communicate.

I also quarterbacked four servers into test and production environments, got a new client build out and began testing of the new intake process for CSR’s.

The last one is where I made my ‘cool’ this week.

The new intake process is an end-to-end solution using the following technologies:

  1. ASP.Net 3.5 with Ajax Toolkit
  2. WCF services
  3. SQL Server 2008
  4. Linq-to-SQL
  5. WPF (using my new bits for polling and MVVM, CodePlex article coming in July)
  6. Windows Services

This was started on Monday and delivered in three working days.

The intake process deals with 30-60 new clients a month.  The volume is low enough that I don’t have to worry about having high-performing components right through, but leveraging these technologies I was able to get this off the ground with very little effort.

I also ran 40,000 test-cycles in an hour to test for load, and the above technologies held up very well.

I should mention that the web app sits outside our network and the WPF app runs inside the network.  There are several network devices between the various application components and performance is still great.  Traffic is forwarded to internal servers on obscure ports (not that it would affect performance) and the DB server is isolated via various security methods, not the least of which is the fact that the only copper going into the SQL box is plugged directly into the server hosting the WCF Windows Services.

The ASP.Net pages collect and validate data from prospective clients and fires that data from the DMZ through the firewall and into the internal mix.  WCF services receive and store the data in the SQL instance private to its own network.  Internally, a custom manager service polls the DB for changes and maintains a list of clients.  CSRs use the WPF application (connected to the manager service) to wait for new prospects.  As the client information comes in, clients are automatically notified and can ‘claim’ and ‘process’ the profiles.

The new process drastically improves the sign-up process for customers and helps to answer the ‘hey, have you got that one?’ questions that are inherit in the old system, where multiple CSRs could end up working on the same client profile.

Thursday, July 2, 2009

*Sigh*

You take a couple of days off for your birthday and you’re left with 446 unread emails in your inbox.

I will try to get back to everyone as quickly as possible; thanks again, all for your interest in this blog, WPF and my messings with SQL Server (particularly the posts on splitting strings and converting IP Addresses).

I am attending a conference in Michigan for about four days starting Saturday…I fear the state of my inbox when I return!