可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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:
- Try to disable IE9 compatibility view. (Press F12)
- 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.