BradleyB's WebLog

Installation Tips for Silverlight Tools Beta 1 for Visual Studio 2008

 

As many of you know Silverlight 2 Beta 1 was release today at MIX08.  What an awesome day.  The new applications under development based on Silverlight 2 are truly incredible!  Check out http://www.microsoft.com/silverlight/

To get started with Silverlight 2 you can download "Silverlight Tools Beta 1 for Visual Studio 2008" here.

The Silverlight Tools installer will install everything needed to start working with Silverlight 2 in Visual Studio 2008.

It installs the following:

  • Silverlight 2 Beta 1
  • Silverlight 2 SDK Beta 1
  • KB949325 for Visual Studio 2008
  • Silverlight Tools Beta 1 for Visual Studio 2008

Even if you've previously installed Silverlight 1.0 or Silverlight 2 Beta 1 the installer will proceed and install the additional components.

That's it!  You're now ready to start creating rich Internet applications with Silverlight 2 and Visual Studio 2008.

While the installation is that simple in most cases, there have been some installation issues reported.  I've listed below the issues and solutions I've run into so far.  I'll update this post if new issues are reported.

Installation Error

If you do run into an installation error, it's most like due to a previous installation of Silverlight 1.1 Alpha or any of the Silverlight SDKs, including the Silverlight 2 Beta 1 SDK.  You must uninstall all these components before installing Silverlight Tools Beta1 for VS08.  If you don't uninstall these products first you'll get this error dialog from the installer.

InstallError

If you see this dialog, be sure to uninstall all the dependent components and restart the installer.

Can't Find KB949325 to Uninstall?

If you ever need to uninstall KB949325, you can do this through Add and Remove Programs.  However it does not show up by default in Add and Remove Programs. 

Instead you need to select "View Installed Updates"

ARP1.

Now you'll see all the updates and patches installed to applications on your computers.  Scroll down and you'll find KB949325.  It will be listed as:

ARP2

It should not come as a surprise that if you uninstall KB949325, you will not be able to use Silverlight projects in Visual Studio.  Only uninstall KB949325 if you're planning on returning VS08 to its RTM condition or if you're attempting to reinstall Silverlight Tools.

Prompt for installation source media

In some cases you may get a prompted for the installation CD-ROM for Visual Studio 2008.

MediaPrompt

Heath Stewart has an excellent blog post on some of the issues users are encountering when installing patches for Visual Studio 2008. You can read his entire post here.  Heath has a new post specific to this prompt when installing Silverlight Tools here.

One of the scenarios causing this to happen with the Silverlight Tools installer is when Visual C++ is not installed.   The other component that will cause this to happen is if you don't have the "Microsoft Visual Studio Web Authoring Component".

You can manually get around this.  First you'll need to extract the individual installers from the Silverlight Tools Beta 1 for VS08 chained installer.  To do this download and save the Silverlight Tools chained installer from here and save it locally.

To extract the individual installers run this command:  silverlight_chainer.exe /extract

This will extract the following installers, along with other support files.

    1. Silverlight.2.0.exe
    2. VS90-KB949325.msp
    3. silverlight_sdk.msi
    4. VS_SilverlightTools_Beta1_Setup.exe

It critical that you install these components in the order listed above.  (Silverlight 2, KB949325, SDK, Tools)  To install KB949325 w/o being prompted for media run this command:

msiexec /p VS90-KB949325.msp /L*vx VS90-KB949325.log REINSTALL=ALL

Note: this command will require administrative rights and it does not add the KB to Add/Remove Programs.

To list these Silverlight tools in Visual Studio's Help->About dialog and to be able to uninstall these tools from Add/Remove Programs (ARP), install the patch again using the following command:

msiexec /p VS90-KB949325.msp /L*vx VS90-KB949325-2.log ADDLOCAL=KB947520,KB949325

Finally run the VS_SilverlightTools_Beta1_Setup.exe installer to complete the Silverlight Tools installation.

The project type is not supported by this installation

Even when installed successfully, some users have seen this error:

CantOpen

This is happening for users who have installed previous builds of Silverlight Tools and for one reason or another the Silverlight package for Visual Studio has been disabled.  You can re-enable the Silverlight package by running the following command.

devenv.exe /resetskippkgs

The ASP.NET Silverlight controls show appear in the Toolbox for .aspx pages

This happens if the Silverlight SDK is installed before KB949325.  As listed above the install order is important.  To fix this uninstall the Silverlight SDK and re-install it.

Help Files don't show up in Visual Studio

To integrate the VS help files included in the Silverlight 2 SDK follow the instructions in this readme.txt installed with the SDK.

[Program Files]\Microsoft SDKs\Silverlight\v2.0\Documentation\VS-Help\Readme.txt

The installer is hung?

At the end of the installation process the installer appears to be hung.

almost_done

The installer can take up to 10 minutes at the end of the installation process.  What's going on?  The last thing the installer does is merge the help dictionaries.  If you've installed the help files for VS locally this can take some time.  Don't kill the process, it's not hung.

Where to go for Installation Help?

Be sure to check out the Silverlight 2 Beta 1 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

Your Websites, Our Passion! said:

BradleyB has posed a blog entry with some installation tips for Silverlight Tools Beta 1 for Visual Studio

# March 6, 2008 2:10 AM

Brad Abrams said:

Walking around Mix08 today I had a chance to help a few people with some install issues.  In some

# March 6, 2008 2:20 AM

MSDN Blog Postings » Installation Tips for Silverlight Tools Beta 1 for Visual Studio 2008 said:

Pingback from  MSDN Blog Postings  » Installation Tips for Silverlight Tools Beta 1 for Visual Studio 2008

# March 6, 2008 2:50 AM

Programming said:

Walking around Mix08 today I had a chance to help a few people with some install issues.  In some

# March 6, 2008 5:55 AM

vikram said:

Thanks for this Long Post helping in the installation. But I think the installation could have been made easier. Why does a develope need to do so many stuff to install a SDK of silverlight

# March 6, 2008 6:22 AM

csalap said:

Ma mindenki SL 2.0 lázban ég, de mi van akkor, ha még feltelepíteni sem sikerül, mert már a telepítő

# March 6, 2008 7:57 AM

Achurchill said:

The C++ requirement was a bear. I had to uninstall VS2008 Pro because i did not have an ISO image and, suprise, the Ventian bandwidth was terrible  so no chance getting it from MSDN. I then installed VS2008 from the disk at the conference and installed SL 2.0 on top of that. I love SL but this should have been avoided. Now I need to get back home and fix the laptop. Minor glitch guys, minor glitch but I was bitching yesterday afternoon...

# March 6, 2008 9:47 AM

George Sheehy said:

I continue to get the installation error about can't install previouly installed... I;ve checked and re-checked for the items listed and I don't have any of the installed (at least by the name given). I checked for KB949325 and it is not installed.

What else could it be?

# March 6, 2008 10:40 AM

BradleyB said:

Hey George, You'll get this error if you have any previous build of Silverlight 2 other than build 30226.02.

I'd recommend un-installing all Silverlight entries from Add and Remove Programs.

Another thing to look for is KB947520.  This KB was from one of the internal builds of Beta 1.  It was never released publically, but some of our partners are running into KB947520 being already installed.

Hope this helps,

Brad

# March 6, 2008 10:56 AM

Ameen Mirza said:

Nice job I was looking for this damn thing from two days......

# March 6, 2008 10:56 AM

Swiss MSDN Team Blog said:

Mix08 is rolling and one of the hot announcements certainly is the availability of Silverlight 2 Beta

# March 6, 2008 11:36 AM

Noticias externas said:

Mix08 is rolling and one of the hot announcements certainly is the availability of Silverlight 2 Beta

# March 6, 2008 11:53 AM

MSDN Blog Postings » Getting started with Silverlight 2 Beta 1! said:

Pingback from  MSDN Blog Postings  » Getting started with Silverlight 2 Beta 1!

# March 6, 2008 11:59 AM

Pla.NET Southeast! said:

As expected, there were a lot of great announcements regarding Silverlight 2 during yesterday's keynote

# March 6, 2008 12:46 PM

Noticias externas said:

As expected, there were a lot of great announcements regarding Silverlight 2 during yesterday's keynote

# March 6, 2008 12:55 PM

Mike Ormond's Blog said:

My Silverlight 2 (plug-in and tools) installation was trouble free (I did worry the install had hung

# March 6, 2008 4:47 PM

Michael Schwarz said:

Hi,

I think that we have to start the "msiexec /p VS90-KB949325.msp /l*vx VS90-KB949325.log REINSTALL=ALL" with administrative rights using Windows Vista UAC. I got a message that "c:\program files\microsoft visual studio 9.0\common7\tools\vsvars32.bat" could not be opened for write.

Michael

# March 6, 2008 4:56 PM

MSDN Blog Postings » Installation Tips for Silverlight Tools Beta 1 for Visual Studio 2008 said:

Pingback from  MSDN Blog Postings  » Installation Tips for Silverlight Tools Beta 1 for Visual Studio 2008

# March 6, 2008 6:02 PM

Raghu said:

Hi,

I am having trouble after installation. I have described the problem in detail at silverlight.net/.../10729.aspx. Can you please help?

Thanks.

# March 6, 2008 10:35 PM

Bashar Kokash' Blog said:

Microsoft announces the beta 1 version of Silverlight 2 Mix08 Install it then discover the new server

# March 7, 2008 2:11 AM

Heath Stewart's Blog said:

While attempting to install Microsoft Silverlight Tools Beta 1 for Visual Studio 2008 , you may get a

# March 7, 2008 3:05 AM

Noticias externas said:

While attempting to install Microsoft Silverlight Tools Beta 1 for Visual Studio 2008 , you may get a

# March 7, 2008 3:41 AM

Blogs said:

Dear Reader, I present to you eighteenth in a infinite number of posts of " The Weekly Source Code

# March 7, 2008 7:49 AM

Gregory A. Beamer said:

One of the most interesting things is if you attempt to install the Silverlight SDK prior to installing the tools, it fails. I figured I had to have Silverlight, then the SDK, then the tools, but ended up uninstalling the SDK to get the tools installed. After that, no problems. For that reason, I would recommend using the "all in one" tools loader.

# March 7, 2008 9:52 AM

Majid Shahabfar said:

Silverlight 2 Beta 1 was release someday ago at MIX08 . To get started with Silverlight 2 you can download

# March 7, 2008 12:17 PM

Michael Sync » Tips/Tricks: Silverlight 2 (beta 1) Tools for Visual Studio 2008 Installation Error said:

Pingback from  Michael Sync  » Tips/Tricks: Silverlight 2 (beta 1) Tools for Visual Studio 2008 Installation Error

# March 7, 2008 12:25 PM

Majid Shahabfar said:

Silverlight 2 Beta 1 was release someday ago at MIX08 . To get started with Silverlight 2 you can download

# March 7, 2008 12:32 PM

ASPInsiders said:

Dear Reader, I present to you eighteenth in a infinite number of posts of " The Weekly Source Code ."

# March 7, 2008 4:19 PM

miguel said:

Finalmente liberaron el Beta 1. Tal como se esperaba después del Mix 08. Aquí algunos recursos utiles

# March 9, 2008 6:13 PM

CodeSane said:

Sliverlight 1.0 was released last year and provided an environment for providing a Rich Media Experience

# March 10, 2008 1:29 AM

Khurram said:

First installation failed, extracted the files and ran it again, it worked fine from both commands but can't see the new project type in VS2008

any other work arounds?

K

# March 10, 2008 9:04 AM

Khurram said:

It's not in ARP either, looked athe log file and both says  

Product: Microsoft Visual Studio Team System 2008 Team Suite - ENU - Update 'KB949325' installed successfully.

Product: Microsoft Visual Studio Team System 2008 Team Suite - ENU -- Configuration completed successfully.

K

# March 10, 2008 9:13 AM

Dennis van der Stelt said:

If you're ready for Silverlight 2, here are some links to help you get started. Guy Burstein has

# March 11, 2008 3:19 AM

TerryLee said:

概述由于最近忙着写Silverlight2系列文章了,所以本期推荐比较少,只有6篇文章:)1.BuildingGreatAJAXApplicationsfromScratchUs...

# March 11, 2008 11:24 AM

ٍٍSaeed Ashour said:

Hi ...

How i can be sure if my VS 2008 is RTM version or not? because i try to install silverlight 2.0 beta 1.0 tools for VS and it says it need to VS 2008 RTM version .

# March 11, 2008 12:34 PM

Scott Morrison said:

Odds are if you are on this site you are probably interested in building Silverlight applications. Here’s

# March 11, 2008 7:08 PM

MSDN Blog Postings » Getting Started With Silverlight said:

Pingback from  MSDN Blog Postings  » Getting Started With Silverlight

# March 11, 2008 8:24 PM

Mikkel said:

This article has been a livesaver for me!

Super! Explaines the things great!

More of this would make the internet better!

# March 12, 2008 3:53 PM

pluginbaby said:

Hi,

Nice post.

I used the "Prompt for installation source media"  procedure, but I had to change security settings on this file (???)

C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat

# March 12, 2008 9:43 PM

chris said:

excellent stuff...you really helped me out with this

# March 14, 2008 1:46 AM

MSDN Blog Postings » DeepZoom and Silverlight in C# said:

Pingback from  MSDN Blog Postings  » DeepZoom and Silverlight in C#

# March 14, 2008 3:00 PM

Steven Smith said:

BradleyB has some great tips for troubleshooting installation problems with Silverlight 2 Beta 1 , released

# March 16, 2008 8:41 PM

Having trouble installing Silverlight 2.0 Beta 1? « WPF Wonderland said:

Pingback from  Having trouble installing Silverlight 2.0 Beta 1? « WPF Wonderland

# March 19, 2008 5:36 PM

slyi said:

www.microsoft.com/.../details.aspx

"Note: This release will not work with the Visual Studio 2008 Express editions."

Why restrict this to only the paid versions on VS?

# March 21, 2008 9:12 AM

Santiago said:

excellent... you really helped me.

Thanks

# March 21, 2008 2:56 PM

Mo said:

I installed Silverlight VS.Net tools beta 1. It worked after uninstalling the KB949325.

I can write the XAML in code windows but can not directly drag and drop on design surface of Page.xaml

What is missing or what's wrong here?

Will appreciate any suggestions.

Thanks,

Mo

# March 24, 2008 4:32 AM

Silverlight: Installation Tips for Silverlight Tools Beta 1 for Visual Studio 2008 | Silverlight Guide said:

Pingback from  Silverlight: Installation Tips for Silverlight Tools Beta 1 for Visual Studio 2008 | Silverlight Guide

# March 27, 2008 11:29 AM

Installing Silverlight for VS2008 « Grumpy Wookie said:

Pingback from  Installing Silverlight for VS2008 « Grumpy Wookie

# April 2, 2008 5:29 AM

Simon said:

Thankyou for an excellent post! :o)

# April 2, 2008 5:09 PM

Erin said:

okayy whenever I try to install it it says that it cant be downloaded to this computer....why is this??

# April 2, 2008 9:28 PM

Rupak Ganguly said:

Great article. I have referenced you in my post here: developershelf.blogspot.com/.../silverlight-2-tools-beta-1-for-visual.html

# April 4, 2008 11:46 AM

topzengyi said:

概述

由于最近忙着写Silverlight2系列文章了,所以本期推荐比较少,只有6篇文章:)

1.BuildingGreatAJAXApplicationsfromScratchU...

# April 8, 2008 12:05 AM

John Azariah said:

Hi Brad

Can you help with the issues listed in my blog article?

jazariah.blogspot.com/.../silverlight-woes.html

Don't know if this is an installation issue - but I'd appreciate any help you can throw on it.

You can also mail me at johnaz-at-exmsft.com

Thanks

# April 8, 2008 4:45 AM

Ian said:

Thank you for a great post.

I got this error "The project type is not supported by this installation" and followed the steps provided by running devenv.exe /resetskippkgs but no luck. Any other ideas?

# April 15, 2008 7:57 AM

Enoch Alvarado said:

Finally a short but complete guide to installation errors. I had to figure it out by myself. It took me two and a half hour to uninstall and reinstall everything but it didn't work... so I used ccleaner and regcleaner to erase unerasable objects... Anyways, I felt like I could do that by trial and error and maybe won't be able to repeat the process. This article is now the first page in my silverlight pages,

thx

# April 23, 2008 1:17 AM

Andy Nogueira said:

This is a great post. I was struggling with a problem to create a Silverlight Application since I had to re-install VS and the answer was right here. Just had to do a devenv.exe /resetskippkgs and it fixed the problem. Thanks again !

# April 24, 2008 9:43 AM

Jan said:

Great article, it's works correctly!

# April 25, 2008 10:18 PM

Daniel Moth said:

FAQ - What do I need to develop Silverlight 2 Beta 1 apps

# May 13, 2008 10:53 AM

wael said:

thanx alot man

devenv.exe /resetskippkgs

this command works fine for me

:-)

# May 31, 2008 4:21 AM

Lang said:

thanks. it helps a lot.

# June 2, 2008 9:47 PM

Gery said:

I tried everything you guys suggested - nothing works! I  have installed and uninstalled everything several times already and am getting very frustrated. Still getting the package could not be loaded error... :(

What am I missing?

# June 4, 2008 10:42 PM

Tips/Tricks: Silverlight 2 (beta 1) Tools for Visual Studio 2008 Installation Error « Microsoft Technology, .Net, BizTalk, Sharepoint & etc. said:

Pingback from  Tips/Tricks: Silverlight 2 (beta 1) Tools for Visual Studio 2008 Installation Error  « Microsoft Technology, .Net, BizTalk, Sharepoint & etc.

# June 6, 2008 9:08 AM

Sam Gentile said:

I get this after install and trying to open any of the xaml files in the designer:

Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

  at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)

  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)

  at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)

  at System.Activator.CreateInstance(Type type, Boolean nonPublic)

  at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

  at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

  at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)

  at System.Activator.CreateInstance(String assemblyName, String typeName)

  at System.AppDomain.CreateInstance(String assemblyName, String typeName)

  at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)

  at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)

  at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identity, AssemblyReferenceProvider assemblyReferences, IEnumerable`1 assemblyFolders)

  at MS.Internal.Providers.VSDesignerContext.GetIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy, AssemblyReferenceProvider assemblyReferences, Boolean isSilverlightProject)

  at MS.Internal.Providers.VSDesignerContext.GetIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy, AssemblyReferenceProvider assemblyReferences)

  at MS.Internal.Providers.VSDesignerContext.Initialize(IServiceProvider provider, IVsHierarchy hierarchy, UInt32 itemid, Object docDataObj)

  at MS.Internal.Providers.VSDesignerContext..ctor(IServiceProvider provider, IVsWindowFrame frame, Object docDataObj)

  at MS.Internal.Providers.VSDesignerContext.GetContext(IServiceProvider services, IVsWindowFrame frame, Boolean createIfNotExist)

  at MS.Internal.Designer.DesignerPane.InitializeDesigner()

# June 7, 2008 9:45 PM

JaeYoung Lee said:

I wanted to learn SL technology and then tried to install SL sdk but I met a problem of installation. It that problem was preinstalled programs of previous version of SL as this post. So, I solved my problem by this post. Thanks very much!

# June 8, 2008 8:40 AM

Nates Stuff said:

Microsoft Silverlight 2.0 Beta 2 has been released. This version is supposed to be pretty stable as I

# June 9, 2008 5:40 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)