8
votes

We develop a Silverlight application, the latest version of which we have just deployed to our clients.

The problem is that some of our clients are getting errors when they attempt to access the application in Internet Explorer. The application loads fine in Google Chrome.

The error initially manifested itself as showing the Silverlight loading animation, getting to 100% and disappearing leaving a white page or simply sticking at 100%.

Having enabled JavaScript debugging, an error dialog appears informing the user of the following:

Line: 62
Error: Unhandled Error in Silverlight Application
Code: 2110   
Category: InitializeError      
Message: 2110 An error has occurred.  

We cannot get any further than this. Can anyone shed any light on this issue?

Thanks very much,

Martyn.

4
Have you checked that Chrome is not caching a previous working version? Chrome loves to cache our Silverlight application where as IE picks up the latest version. Try disabling the Cache using the Chrome F12 Tools - Midimatt
Thanks for the suggestion, but the problem is IE specific, Chrome is working fine, as is IE for most clients, just a couple with the issue. - MartynJones87

4 Answers

10
votes

I am very late, but since I could not find the answer that eventually solve the issue for me I am posting here for others :

In my case, the answer was to set back the compilation platform to "any CPU" I got the 2110 error in x86 and it loaded properly using "any CPU".

4
votes

In my experience this is almost always a problem with dependencies.

To prove that it is, create a new Silverlight project and include all the references you have in your existing project and see if you get a white screen of death.

If you do then try removing references from your test SL project one at a time until you get something that works.

HTH

3
votes

There are many reasons that cause this error. It may be from your code or IE itself. Could you ask the users do things such as:

  1. Try to disable IE9 compatibility view. (Press F12)
  2. Clear IE cache then close and re-open it before you go to the website.

If none of them works, you should check xaml code or attach the Silverlight process to the debugger and debug the code.

0
votes

I have the same problem, but in Firefox x64, when I have in Silverlight csproj:

<Reference Include="mscorlib">
    <Private>True</Private>
</Reference>

When I changed it to:

<Reference Include="mscorlib" />

everything goes well.