Upgrading to Silverlight Tools Beta 2 and Visual Studio 2008 SP1 Beta

Published Monday, June 9, 2008 8:38 AM

Silverlight 2 Beta 2 has just been released!

Checkout http://silverlight.net/GetStarted/ 

Silverlight Tools Beta 2 for Visual Studio 2008 now includes support for both:

Upgrading "the Easy way"

[update]  Please read Fixing Setup Errors Installing Silverlight Tools Beta 2

Installing Microsoft Silverlight Tools Beta 2 is quick and easy following the steps below.

Visual Studio 2008 RTM w/Silverlight Tools Beta 1 to Beta 2

If you simply want to upgrade your current Silverlight Tools Beta 1 installation:

  1. Install "Microsoft Silverlight Tools Beta 2 for Visual Studio 2008"
  2. Install "Expression Blend 2.5 Preview"

    note: if you later install Visual Studio 2008 SP1 Beta, you'll need to reinstall Silverlight Tools Beta 2
Visual Studio 2008 SP1 Beta to Silverlight Tools Beta 2

If you've already got Visual Studio 2008 SP1 Beta and now want to install Silverlight Tools Beta2:

  1. Install "Microsoft Silverlight Tools Beta 2 for Visual Studio 2008"
  2. Install "Expression Blend 2.5 Preview"
Visual Studio 2008 RTM w/ Silverlight Tools Beta 1 to
Visual Studio 2008 SP1 Beta & Silverlight Tools Beta 2

The recommended way to upgrade to both Silverlight Tools Beta 2 and Visual Studio 2008 SP1 Beta is:

  1. Uninstall "Microsoft Silverlight Tools Beta 1 for Visual Studio 2008"
  2. Uninstall KB949325 (in Add/Remove Programs select "view installed updates")
  3. Install "Microsoft Visual Studio 2008 Service Pack 1 Beta"
  4. Install "Microsoft Silverlight Tools Beta 2 for Visual Studio 2008"
  5. Install "Expression Blend 2.5 Preview"

Following the above steps will ensure a smooth upgrade to both Visual Studio 2008 SP1 Beta and Silverlight Tools Beta 2.

Start Building Awesome Silverlight 2 Applications.

That's it, you're ready to start building incredible applications.

Installation Errors?

The rest of the post is dedicated to the variety of errors and workarounds when not following the above sequences.   The length of this post should be incentive enough to stick to the script above.

If you've already run into problems, fear not.  The rest of this post is dedicated to getting you up and running with Silverlight 2 Beta 2 and Visual Studio 2008 SP1 Beta.

Installer Contents

The "Microsoft Silverlight Tools Beta 2 for Visual Studio 2008" installer "silverlight_chainer.exe" contains the following installers:

Silverlight.2.0_Developer.exe Silverlight 2 Beta 2
silverlight_sdk.msi Silverlight 2 Beta 2 SDK
VS90-KB950630.msp KB950630 for Visual Studio 2008 RTM
VS90SP1-KB950632.msp KB950632 for Visual Studio 2008 SP1 Beta
VS_SilverlightTools_Beta2_Setup.exe Silverlight Tools Beta 2 for Visual Studio 2008

You can extract the individual components using this command:

silverlight_chainer.exe /extract

The first thing you'll notice is that there are two KBs, KB950630 and KB950632. 

  • KB950630 is a patch for Visual Studio 2008 RTM
  • KB950632 is a patch for Visual Studio 2008 SP1 Beta

The installer will apply the patch matching the installation of Visual Studio that you have.  This is why you need to rerun the Silverlight Tools Beta 2 installer if installing Visual Studio 2008 SP1 Beta after installing Silverlight Tools Beta 2.

note: These KBs are ENU specific.  The localized release of Silverlight Tools Beta 2 will have unique KB #.

The installation sequence used by "silverlight_chainer.exe" is:

  1. Uninstall Silverlight Tools Beta 1
  2. Uninstall KB949325
  3. Uninstall "Microsoft Blend for Silverlight Beta 1"
  4. Uninstall the Silverlight 2 Beta 1 SDK
  5. Install Silverlight.2.0_Developer.exe (Silverlight 2 Beta 2 Developer Runtime)
  6. Install either KB950630 or KB950632 depending on version of VS
  7. Install silverlight_sdk.msi (Silverlight 2 Beta 2 SDK)
  8. Install VS_SilverlightTools_Beta2_Setup.exe

Notice that the installer also uninstall's "Microsoft Blend for Silverlight Beta 1".  You can get the updated version of Blend for Silverlight Beta 2 here.

SP1 Beta Installation Errors

Installing out of the recommended sequence above can result in installation errors or design time errors when using Visual Studio.

SP1 (Beta) Does not Apply

One of the more common error messages while installing VS SP1 is:

Microsoft Visual Studio 2008 SP1 (Beta) does not apply, or is blocked by another condition on your system. Please click the link below for more details.

This happens when installing "Microsoft Visual Studio 2008 Service Pack 1 Beta" before uninstalling "Microsoft Silverlight Tools Beta 1 for Visual Studio 2008"

Check out this post for more information: Error installing Visual Studio 2008 SP1 Beta and Silverlight Tools Beta 1

The solution is to uninstall Silverlight Tools Beta 1. 

Important: You also need to manually uninstall KB949325 prior to installing Visual Studio 2008 SP1 Beta.

Failure to uninstall KB949325 is the source of most of the other errors and problems listed below.

Fatal Error during installation

During the installation of VS SP1 you may also come across an error such as:

The installation failed with the following message:
Fatal error during installation.
Click the Finish button to exit.

Check out this post for more information: KB944899 Should be Removed before Installing Visual Studio 2008 SP1

Error from silverlight_uninstallrtmpatches.exe

[6/6/2008, 19:2:12] (IronSpigot::ExeInstallerBase::PerformAction) c:\036de815481bb1774fbe5acf\silverlight_uninstallrtmpatches.exe - Exe installer does not provide a log file name
[6/6/2008, 19:2:12] (IronSpigot::ExeInstallerBase::PerformAction) Exe (c:\036de815481bb1774fbe5acf\silverlight_uninstallrtmpatches.exe) failed with 0x80070643 - Fatal error during installation. :
[6/6/2008, 19:2:12] (IronSpigot::ExeInstallerBase::PerformAction) PerformOperation on exe returned exit code 1603 (translates to HRESULT = 0x80070643)

The above error has been reported and maybe related to installing on 64 bit Vista machines.  This is the command that the silverlight_chainer.exe runs to remove KB949325.  To get around this problem manually uninstall KB949325.   The next time you run the the silverlight_chainer it will skip this step.

How to Validate SP1 is Installed Correctly

WARNING: Visual Studio 2008 SP1 Beta will report installation success even if KB949325 was not removed first.  Unfortunately, failure to remove KB949325 will prevent some SP1 files from being updated.

This is why it's critically important to remove KB949325 before installing VS SP1. 

One way to determine if KB949325 prevented SP1 from updating correctly is to check the version of Microsoft.VisualStudio.Web.Application.dll

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Microsoft.VisualStudio.Web.Application.dll

VS08 SP1 Version should be:

Version 9.0.30428.1
Date modified 4/29/2008
Size 468 KB

If you have the following version it's from the Silverlight Tools Beta 1 release:

Version 9.0.21116.48
Date modified 2/23/2008
Size 492 KB

This means that KB949325 was not removed and thus prevented SP1 from updating numerous files including Microsoft.VisualStudio.Web.Application.dll.

If you're in this state, read on carefully and see the "How to Recover" section.

Installing Silverlight Tools Beta 2

Unfortunately, unless you check files versions there is no obvious indicator that SP1 did not install all of it's files. 

If you then installed "Microsoft Silverlight Tools Beta 2 for Visual Studio 2008" while Visual Studio is in this state with missed matched binaries you will get the following errors when running Visual Studio:

Creating new Silverlight projects:

Method 'SelectSilverlightProject' in type 'Microsoft.VisualStudio.Silverlight.SLPackage' from assembly 'Microsoft.VisualStudio.Silverlight, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.

 SLB2_SP1Bx_NewProject

Opening existing Silverlight projects:

Package Load Failure
Package 'Microsoft.VisualStudio.Silverlight.SLPackage, Microsoft.VisualStudio.Silverlight, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has failed to load properly (GUID =
{CB22EEOE-4072-4AE7-96E2-90FCCF879544}). ...

SLB2_SP1Bx_OpenProject

Note that if you dismiss this dialog by selecting the "Yes" button then you'll need to run the following command later on after the installation has been fixed.

devenv /resetskippkgs

You'll also notice that in this scenario the version of Microsoft.VisualStudio.Web.Application.dll is still 9.0.21116.48.

Basically once KB949325 is installed it prevent subsequent patches from applying.  This is why its critically important to uninstall the KB949325 before installing VS08 SP1 Beta.

As an aside if you install Silverlight Tools Beta 2 before SP1, it will remove KB949325.  you'll just need to reinstall Silverlight Tools Beta 2.

How to Recover

Fortunately, all is not lost.  If you do get into this state w/ miss matched binaries here is how you can recover.

The first thing you'll need to do is to uninstall the KBs installed by Silverlight Tools.  To see these updates you'll need to run "Add/Remove Programs"

For Vista or newer:

  1. Open Uninstall a Program from the Control Panel
  2. Click 'View installed updates' in the task bar on the left
  3. Remove KB949325 (it will be listed under your version of VS2008)
  4. Remove KB950632 (it will be listed under your version of VS2008)

image

 

image

For pre-Vista systems:

  1. Open the Add/Remove Programs dialog from the Control Panel
  2. Click 'Show updates' at the top of the window
  3. Remove KB949325 (it will be listed under your version of VS)
  4. Remove KB950632 (it will be listed under your version of VS2008)

You may get this error "The patch is not applied to this product." when uninstalling KB949325.

Patch Not Applied 

Go ahead and disregard this error, we'll take care of it with the steps below.

Even after uninstalling both KB949325 and KB950632 you'll notice that the version of Microsoft.VisualStudio.Web.Application.dll is still 9.0.21116.48.

The next step will be to create a batch file containing the following commands:

rem Repair features Visual Studio SP1
rem ENU VSTS
msiexec /passive /i {80C06CCD-7D07-3DB6-86CD-B57B3F0614D8} ADDLOCAL=VWD_for_VS_Ent_5902_x86_enu /L*vx %TEMP%\dd_repair_VSTS.log

rem ENU VSTD
msiexec /passive /i {6721AC10-3743-38F1-B178-C0EC6C9A4108} ADDLOCAL=VWD_for_VS_Ent_5902_x86_enu /L*vx %TEMP%\dd_repair_VSTD.log

rem ENU PRO
msiexec /passive /i {D7DAD1E4-45F4-3B2B-899A-EA728167EC4F} ADDLOCAL=VWD_for_VS_Ent_5902_x86_enu /L*vx %TEMP%\dd_repair_PRO.log

rem ENU VSTA
msiexec /passive /i {8F10429A-DFF5-3B55-9306-0ADEB337CFD3} ADDLOCAL=VWD_for_VS_Ent_5902_x86_enu /L*vx %TEMP%\dd_repair_VSTA.log

rem ENU VSTT
msiexec /passive /i {23D0117E-F9A5-364E-A379-70EC2DE02B9F} ADDLOCAL=VWD_for_VS_Ent_5902_x86_enu /L*vx %TEMP%\dd_repair_VSTT.log

rem ENU VSDB
msiexec /passive /i {4298C783-524F-3C3E-9B11-36FA64604B2B} ADDLOCAL=VWD_for_VS_Ent_5902_x86_enu /L*vx %TEMP%\dd_repair_VSDB.log

rem ENU STD
msiexec /passive /i {F434F50E-7614-3EA8-9008-2FB866B697DA} ADDLOCAL=VWD_for_VS_Ent_5902_x86_enu /L*vx %TEMP%\dd_repair_STD.log

Run the batch file you created with the above commands.  This will put VS back into a recoverable state.  Note that the KB949325 will still be listed in Add & Remove Programs.  Unfortunately it'll continue to show up even though it's been uninstalled.

Now re-install "Microsoft Silverlight Tools Beta 2 for Visual Studio 2008".   You can also do this by running Silverlight_chainer.exe again.

Confirm that KB950632 is shown when viewing installed updates in Add/Remove Programs.

Confirm that the new Beta 2 version of Microsoft.VisualStudio.Web.Application.dll is:

Version 9.0.30428.9
Date modified 6/3/2008
Size 512 KB

Other Errors:

“Object reference not set to an instance of an object” when adding a WCF service" - Crash on Exit

Tim Anderson has found a work around for the following problem and posted a solution here

  1. Error “Object reference not set to an instance of an object” when adding a WCF service
  2. Silverlight app cannot see WCF services in same solution
  3. Error “Unable to find ‘DynamicTypeService’” when clicking the Advanced button in the Add Service Reference dialog.
  4. Visual Studio crashing on exit

We're almost done!

If you now get an error creating or opening Silverlight projects:

The project type is not supported by this installation

CantOpen

You'll need to run the following command:

devenv /resetskippkgs

Finally, if no controls are showing up on the toolbox when editing Silverlight XAML pages then you'll need to:

delete %LOCALAPPDATA%\Microsoft\VisualStudio\9.0\toolbox*.*

At this point you should be up and running with Visual Studio 2008 SP1 Beta and Silverlight Tools Beta 2.

Where to go for Installation Help?

Be sure to check out the Silverlight 2 Beta 2 readme for known issues.

If you run into installation issues not covered here please post your question in the "Installation and Setup" forum here: http://silverlight.net/forums/13.aspx

Comments

# Kaja said on Sunday, June 8, 2008 9:20 AM

I have followed the steps to remove KB950632 and reinstalled SL2 B2, but still I am getting the same problem. The version of Microsoft.VisualStudio.Web.Application.dll is 9.0.21116.48. Please help in resolving this.

# BradleyB said on Sunday, June 8, 2008 10:16 AM

Kaja, are you working on the ENU or JPN version of VS and SLTools?

# jordan said on Monday, June 9, 2008 3:54 AM

Installed Beta2, of course it didn't work. (MS - please buy a Mac to see how installs should work).  Following the process to uninstall from the "All is not lost section", however to uninstall 949325 I must uninstall 944899.  This prompts for the insertion of the VS 2008 Pro DVD.  Currently misplaced from my MSDN folder, so please can to post the command prompt command to bypass this screen..

# Karine Bosch said on Monday, June 9, 2008 7:41 AM

Hi Bradley,

Thanks for your post! I try to get Visual Studio 2008 up and running for Silverlight 2 beta 2. Can you please tell me where I have to perform the "delete" statement that you mention at the end of your post? If I try this in a Command Prompt for VS or a normal command prompt I get the message that the delete action is not known.

Thanks for your help!

Karine

# yaip said on Monday, June 9, 2008 3:17 PM

I get:

This software update affects the following products:

Verify Microsoft Silverlight 2 VS 2008 RTM Patches

Microsoft Silverlight 2 Beta 2 Developer Runtime

Microsoft Visual Studio 2008 Professional Edition - ENU

Microsoft Silverlight 2 Beta 2 SDK

Microsoft Silverlight Tools Beta 2 for Visual Studio 2008

and if I try to uninstall KB949325, I get an error. I can send you the screenshot if you email me at yaip(dot)net(at)gmail(dot)com

# jamie.cooper said on Monday, June 9, 2008 6:20 PM

Hey Brad-

I tried installing but I received the...

"Method 'SelectSilverlightProject' in type 'Microsoft.VisualStudio.Silverlight.SLPackage' from assembly 'Microsoft.VisualStudio.Silverlight, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation."

...error.  Following your instructions, I went to delete KB949325, but its not there, though I was able to find KB950632.  I tried doing everything else you mentioned in that section except deleting KB949325, but to no avail...I keep getting the same error.

Suggestions?

# yaip said on Monday, June 9, 2008 9:49 PM

Now when I try to create a new Silverlight project, I get:

Could not load type 'Microsoft.VisualStudio.Web.Silverlight.IVsSilverlightService' from assembly 'Microsoft.VisualStudio.Web.Application, Version=9.0.0.0, Culture=meutral, PublicKeyToken=b03f5f7f11d50a3a'

# Sujath said on Tuesday, June 10, 2008 1:40 AM

This helped me install smoothly

# Tom said on Tuesday, June 10, 2008 3:43 AM

Open Source Silverlight Chart Visifire is now compatible with Silverlight 2 Beta 2

# tomH said on Tuesday, June 10, 2008 9:37 AM

I had as situation where I had vs2008 standard installed, I did not have the silverlight tools beta 1 installed, I ended up with the problem which gives the following,

"Method 'SelectSilverlightProject' in type 'Microsoft.VisualStudio.Silverlight.SLPackage' from assembly 'Microsoft.VisualStudio.Silverlight, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation."

I tried your 'how to recover' I had no success.

I ended up uninstalling vs2005, and all the beta 2 stuff.  Reinstalled vs2008 and the beta 2, everything seems to be OK.  

Seems to me the quickest way to get it up and running.

# wahy said on Tuesday, June 10, 2008 10:56 AM

follow the instruction for recover the state, etc. the version of dll is still the old one. the installation is just a chain of chaos. I gave up and deinstall everything and will try to reinstall all over again. wish me luck.

# Tiago said on Wednesday, June 11, 2008 8:09 AM

PROBLEM SOLVED!

The solution for:"Method 'SelectSilverlightProject' in type 'Microsoft.VisualStudio.Silverlight.SLPackage' from assembly 'Microsoft.VisualStudio.Silverlight, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation."

IS

1 - Remove all: VS2008, TOOLS, SILVERLIGHT, etc..

2 - Reboot pc

3 - Install the VS2008

4 - Install the SP1 of VS2008

5 - Install the Silverlight_Chainer (This install sl, tools, etc..)

6 - Start, Execute: devenv /resetskippkgs

7 - Delete: %LOCALAPPDATA%\Microsoft\VisualStudio\9.0\toolbox*.*

Done, now the vs works fine!

# mike kidder said on Friday, June 13, 2008 1:32 AM

I've finally got everything to install, but now get an error when I attempt to close a Silverlight solution (simply created new Silverlight app, no changes to project).. it crashes Visual Studio.

Error signature...

EventType : clr20r3     P1 : devenv.exe     P2 : 9.0.30428.1     P3 : 4815597f

P4 : microsoft.visualstudio.silverlight     P5 : 9.0.0.0     P6 : 48479adc    

P7 : 390     P8 : 8     P9 : exception    

It doesn't matter if I have a XAML page open or closed in VS...

# Olivier said on Friday, June 13, 2008 10:48 AM

It took me hours to install the Silverlight Tools beta 2 on the french version of Visual Studio. I believe that this might even help people using other localized versions of VS.

The installer was displaying this message every time I tried to launch it :

An Error Has Occurred:

Silverlight Tools cannot be installed because one or more of the following conditions is true:

1. Visual Studio 2008 RTM is not installed.

2. The Web Authoring feature of Visual Studio is not installed.

(...)

The reason was that the installer was looking for this key in the registry to check that VS was installed :

HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\Setup\VS\BuildNumber\1033

...and this key was missing in my registry. Or more precisely the registry entry was '1036' and not '1033'.

The workaround was just to create this registry entry with the value : "9.0.21022".

# BradleyB said on Thursday, June 19, 2008 10:25 AM

The French version of silverlight Tools can be downlloaded here:

download.microsoft.com/.../silverlight_chainer.exe

# Alan C Cosin said on Monday, July 14, 2008 3:25 PM

Staff have already tried all tips for the silverlight 2 beta 2 work in windows vista 64bit ... And until now had no success. Although this appears the error message "Unable to find service 'DynamicTypeService'. Ensure that the application is installed corectly "when I" add service references "in the project. Can anyone help me?

# jdanforth said on Wednesday, July 16, 2008 9:51 AM

Brad, you're a star for writing this blog post. I can see that some people didn't have much luck, but your section on how to recover certainly helped me.

Yeez, I have way too many features installed in my VS 2008 for sure...

# busrider said on Monday, January 12, 2009 10:05 PM

eFront-Интернет магазин Бытовой и компьютерной техники www.e-front.com.ua

# ... said on Thursday, March 12, 2009 10:09 AM

Sehr wertvolle Informationen! Empfehlen!

# Aloe Vera Distributor - myflp.org said on Tuesday, September 29, 2009 6:34 PM

Hello there.

I have something to say, about aloevera, something about which you wrote above, about health and weight loss... For a long time, I and my fine friend use the products of the Forever Living Products. We always see the fine results and also we earn money for our families and we are happy. My friend works with Aloe in the company of Forever Living Products has more than 5 years (My friend works ONLY in the Forever Living Company and has a wife and three children). I know aloe Vera products for weight management for a long time, but a year ago, began working as a distributor in the Forever Living Products Company.

Of course, this job is so hard, but in no other case, You can earn so much much money with so much fun and   smiling faces around.

So if you want to discuss something about your article, and about my experience with aloe vera products for health, I'll always be glad to talk.

Best regards from Washington and have a nice day!

Andrew - Aloe Vera Distributor

# Rengenx said on Monday, February 15, 2010 4:37 PM

Мое ИМХО, что не стоит писать такие посты вообще. Никогда

# Trunkelj said on Thursday, April 7, 2011 3:39 AM

Mizarstvo Trunkelj -Izdelujemo pohištvo po meri, kuhinje in jedilnice, spalnice, otroške sobe, kopalniško pohištvo, vrtno pohištvo ... Mizarstvo Trunkelj je družinsko podjetje z več kot stoletno mizarsko tradicijo.

# crank handle said on Monday, April 18, 2011 10:16 AM

rquzvu awnings oah

# weblogs.asp.net said on Wednesday, June 1, 2011 5:25 AM

Upgrading to silverlight beta 2 and visual studio 2008 sp1 beta.. Neat :)

# Theodora Bendix said on Thursday, July 7, 2011 7:14 AM

I need to alter one-way links together together with your online web page is this probable?

# Marcos Schelling said on Sunday, July 10, 2011 3:42 AM

An individual built quite a few advantageous facts presently there. I did searching with regard to inside the challenge and also noticed a great deal of men and girls could agree in your internet page.

# transitaire thailande said on Saturday, August 6, 2011 5:52 PM

un transitaire en asie ? un agent en douane ? envoyer de la marchandise à l'international ? ok !

# actos said on Tuesday, August 9, 2011 4:56 PM

I just added your website on my blogroll.  Really enjoyed reading through. Excellent information!

# plan b online said on Sunday, August 28, 2011 1:06 PM

I’m really loving the contents of your blog. Hopefully you keep posting regularly. Thanks.

# order prednisone said on Sunday, August 28, 2011 11:51 PM

I’m really loving the contents of your blog. Hopefully you keep posting regularly. Thanks.

# buy seroquel said on Saturday, September 3, 2011 10:19 PM

Thanks for tris interesting information! I found it very useful =)

# seroquel said on Sunday, September 4, 2011 4:21 AM

Thanks for tris interesting information! I found it very useful =)

# buy seroquel online said on Sunday, September 4, 2011 9:13 PM

Thanks for tris interesting information! I found it very useful =)