Issue with facelight demo: getting Unhandled Error in Silverlight Application Code: 2104

Jun 7, 2010 at 5:00 PM
I have reinstalled Silverlight and the Silverlight 4 tools according to your spec. I am still getting the same error. Since other Silverlight applications, including your demo when run from your site. I guess Silverlight 4 has been correctly installed on my development machine. And since I am also able to run a Silverlight app. that accesses my Web Cam, (Logitech) from a web page. I guess my setup of that is also correct. Otherwise I have nothing to add. I am also able to run other apps made in Silverlight 4.
Coordinator
Jun 7, 2010 at 5:48 PM

Do I understand you right that the compiled demo works? When and where do you encounter this failure message? Please describe exactly what you do and provide a screenshot of the error, so I can see where this happens.

Jun 7, 2010 at 8:01 PM
Hi again, I am able to compile, no apparent problem! I press CTRl+F5 to run, fails with Unhandled Error and my script debugger starts. If run with F5 only, the debugger lands me in: <script type="text/javascript"> function onSilverlightError(sender, args) { var appSource = ""; if (sender != null && sender != 0) { appSource = sender.getHost().Source; } var errorType = args.ErrorType; var iErrorCode = args.ErrorCode; if (errorType == "ImageError" || errorType == "MediaError") { return; } var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ; errMsg += "Code: "+ iErrorCode + " \n"; errMsg += "Category: " + errorType + " \n"; errMsg += "Message: " + args.ErrorMessage + " \n"; if (errorType == "ParserError") { errMsg += "File: " + args.xamlFile + " \n"; errMsg += "Line: " + args.lineNumber + " \n"; errMsg += "Position: " + args.charPosition + " \n"; } else if (errorType == "RuntimeError") { if (args.lineNumber != 0) { errMsg += "Line: " + args.lineNumber + " \n"; errMsg += "Position: " + args.charPosition + " \n"; } errMsg += "MethodName: " + args.methodName + " \n"; } >>>throw new Error(errMsg);<<<<< } </script>
Jun 7, 2010 at 8:10 PM
How do I send you a screenshot, the editor seems not to support that?
Jun 7, 2010 at 8:18 PM
No the compile demo, does not start. It fails on startup, but I can compile.


From: [email removed]
To: [email removed]
Date: Mon, 7 Jun 2010 10:48:21 -0700
Subject: Re: Issue with facelight demo: getting Unhandled Error in Silverlight Application Code: 2104 [facelight:215217]

From: teichgraf
Do I understand you right that the compiled demo works? When and where do you encounter this failure message? Please describe exactly what you do and provide a screenshot of the error, so I can see where this happens.
Read the full discussion online.
To add a post to this discussion, reply to this email (facelight@discussions.codeplex.com)
To start a new discussion for this project, email facelight@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com


Coordinator
Jun 8, 2010 at 7:04 AM

Just to make sure I understand you right. The error message occurs when you start the demo?
http://dl.dropbox.com/u/2681028/CodeplexData/FaceLight/Sample/FaceLightTestPage.html

Try http://imgur.com to upload pictures and post the link or use an <img> tag in HTML mode.

 

Jun 8, 2010 at 7:20 AM
Hi again,

http://imgur.com/a/73RAQ/facelight_silverlight_2104_error

I have uploaded the images to imgur.

It happens when I start the demo. So it never runs locally.

Br. Tonny


From: [email removed]
To: [email removed]
Date: Tue, 8 Jun 2010 00:05:01 -0700
Subject: Re: Issue with facelight demo: getting Unhandled Error in Silverlight Application Code: 2104 [facelight:215217]

From: teichgraf
Just to make sure I understand you right. The error message occurs when you start the demo?
http://dl.dropbox.com/u/2681028/CodeplexData/FaceLight/Sample/FaceLightTestPage.html
Try http://imgur.com to upload pictures and post the link or use an tag in HTML mode.

Read the full discussion online.
To add a post to this discussion, reply to this email (facelight@discussions.codeplex.com)
To start a new discussion for this project, email facelight@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com


Coordinator
Jun 8, 2010 at 7:55 AM

Again, just to make sure I understand you right. The error message occurs when you open this page:
http://dl.dropbox.com/u/2681028/CodeplexData/FaceLight/Sample/FaceLightTestPage.html

Or only when you start your compiled version with Visual Studio?

 

Jun 8, 2010 at 8:52 AM
No, this works:-)

But the code I downloaded from CodePlex fails after it has been compiled on my local PC.




From: [email removed]
To: [email removed]
Date: Tue, 8 Jun 2010 00:56:03 -0700
Subject: Re: Issue with facelight demo: getting Unhandled Error in Silverlight Application Code: 2104 [facelight:215217]

From: teichgraf
Again, just to make sure I understand you right. The error message occurs when you open this page:
http://dl.dropbox.com/u/2681028/CodeplexData/FaceLight/Sample/FaceLightTestPage.html
Or only when you start your compiled version with Visual Studio?

Read the full discussion online.
To add a post to this discussion, reply to this email (facelight@discussions.codeplex.com)
To start a new discussion for this project, email facelight@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com


Coordinator
Jun 8, 2010 at 9:08 AM

Ah, now we're getting closer to your real problem. I guess you start the debugging of the with ISS or another local web server? The error message 2104 usually means that the XAP file is not registered as a valid MIME type.

Try the following:

  1. Compile the whole solution.
  2. Open the file FaceLight\trunk\FaceLight\Source\FaceLight.Web\FaceLightTestPage.html with a browser.
  3. It should work.

I'd recommend to use Visual Studio's ASP.Net development server for debugging (see the properties of the .Web project).

Here you can find how to register the right MIME type in IIS: http://weblogs.asp.net/javiervillarreal/archive/2008/06/14/silverlight-error-2104-could-not-download-the-silverlight-application-in-iis6.aspx

Jun 8, 2010 at 2:50 PM
Hi, Nothing has really worked, for me. So I have downloaded your code for WriteableBitmapEx.dll. Recompiled and registered, and this has strangely enough fixed the problem. As for XAP registration it has been there all the time. And i am using the ASP.NET development server for the project, i have done so all the time. Thanks for your effort and a really great demo Br. Tonny
Coordinator
Jun 8, 2010 at 3:06 PM

Ah, the WriteableBitmapEx.dll binary that comes with the FaceLight code was probably blocked by Windows because it was downloaded. It has to be unblocked (Explorer -> Context Menu over the dll -> Properties -> Unblock button). If you don't see the Unblock button it's another issue.

Jun 8, 2010 at 5:42 PM
I did not see the unblock button. But anyway, your explanation sounds plausible. And I will write it down for future use. Thanks again