Skip to main content
Home Forums General Silverlight Getting Started Unable to run installed Silverlight application
4 replies. Latest Post by Jonathan Shen – MSFT on November 12, 2009.
(0)
DonPeters
Member
1 points
8 Posts
11-06-2009 9:41 AM |
I'm new to Silverlight, and just building my first application. I've got it to draw graphics under VB.NET and installed the application on my hosted website, where it seems to work exactly the same as when I run it in VS2008.
I then right-click on the application and opt to install it. That seems to work as it then comes up in its own window. As I requested, an application icon is also placed on my desktop. I then close the application.
But when I click on my Silverlight application desktop icon, my mouse cursor changes for a fraction of a second, as if something is happening, but then it reverts to normal and nothing more happens - I don't see my application appear. I figure there must be something simple that I'm doing wrong, but I can't figure out what it is. The fact that I also get no error message is frustrating.
Does anyone know what the problem is... or what I can do to get some clues as to what the problem is?
11-07-2009 9:21 AM |
I think I may have found the answer. I tried installing another Silverlight application and had no problem. Then I compared the properties on both of the desktop icons. The one that worked had the string:
"C:\Program Files\Microsoft Silverlight\sllauncher.exe" 4035168201.whitecanker.net
The one that didn't work had the same string up to the second double quote, but then had a portion of my program description string which was stored in my Out-of-Browser Settings "Download description"! Hence, the Silverlight launcher ran, but it couldn't find the target. There appear to be two Silverlight bugs here:
1. If the Silverlight launcher can't find its target, it doesn't give any error indicating that something is wrong. There also appears to be no check during installation that the target being used is valid.
2. If the "Download description" contained in the Out-of-Browser settings is very long (e.g., 7 full lines of text), it corrupts the desktop icon shortcut Target string, replacing the correct target with a substring of the Download description.
I was going to try to apply a quick fix to the target string, but had no idea where on my PC the target Silverlight application was installed. It didn't seem to be listed in the list of installed programs in the control panel. Maybe someone here can shed some light on that?
Don
Jonathan...
All-Star
24939 points
2,425 Posts
11-12-2009 2:40 AM |
Hi Donpeters,
DonPeters: 1. If the Silverlight launcher can't find its target, it doesn't give any error indicating that something is wrong. There also appears to be no check during installation that the target being used is valid. 2. If the "Download description" contained in the Out-of-Browser settings is very long (e.g., 7 full lines of text), it corrupts the desktop icon shortcut Target string, replacing the correct target with a substring of the Download description.
What's your Donwload description mean? You'd better take a look at this link to see the details about Silverlight Out-Of-Browser.
Best regards,
Jonathan
11-12-2009 11:34 AM |
Thank you for the information Jonathan - it cleared up a lot of questions I had.
I'm not sure what your question "What's your Donwload description mean?" means. Download description is simply a string of arbitrary text describing the application.
The website you referenced shows where the application's Silverlight files are stored on XP and Windows 2000. However, I'm running Vista, and if you try to access those file folders you will get an error since they are junction points and no longer real folders. Instead, in Vista, you have to look in the following path (note that my Vista username is "Don"):
C:\Users\Don\AppData\LocalLow\Microsoft\Silverlight\OutOfBrowser\561674398.whitecanker.net
Also, the author of that article mentions the metadata stored there, and discusses his binary editor program to look at it. But I found that you can just load the metadata file into a text editor, such as Notepad, to look at it.
11-12-2009 9:49 PM |
Hi Don,
Thanks for your clarification.