Silverlight toolkit breaks silverlight 5 application

微笑、不失礼 提交于 2019-12-24 09:58:52

问题


I am upgrading a Silverlight 4 application to Silverlight 5. I ran the application after changing the Target Silverlight Version to Silverlight 5 (Visual Studio 2010) and received the following error before the application loaded:

Unhandled Error in Silverlight Application Code: 2110
Category: InitializeError
Message: AG_E_UNKNOWN_ERROR

I was unable to track down the issue using the visual studio debugger so I thought it might be an issue with the references. I noticed most of the core libraries were now pointing to the Silverlight/v5.0 directories in the Microsoft/Framework directories but the Toolkit libraries were not upgraded. I downloaded the May 2012 release of the toolkit and manually upgraded all those libraries but still received the error. So I created a new Silverlight 5 project and began adding the libraries incrementally. That application then threw that error when I added references to the Silverlight Toolkit. How can I solve this problem?


回答1:


In the middle of writing my question I decided to try nuget to install the toolkit and the error has now been resolved. I am leaving the question because I spent a few hours working on it and there is not much information regarding error code 2110 for Silverlight. I did notice that nuget installs version 4.0.5.0 of the toolkit libraries and the May 2012 toolkit shows version 5.0.5.0 so that may be the issue.



来源:https://stackoverflow.com/questions/15124170/silverlight-toolkit-breaks-silverlight-5-application

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