Silverlight Initialise Error 2110 Internet Explorer

匿名 (未验证) 提交于 2019-12-03 03:05:02

问题:

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.

回答1:

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".



回答2:

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.



回答3:

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



回答4:

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.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!