2011-03-02 53 views
1

我开发了一个silverlight 3应用程序,它使用套接字 连接到托管在同一主机上的套接字服务器。Silverlight应用程序无法在IE中运行,但在Chrome/Firefox中运行正常

该应用程序在多台电脑上都运行正常,但在IE9(也是在IE 7/8兼容模式下)应用程序只会说:100%(带有蓝色silverlight加载程序)。

它永不完成加载,永远不会启动。

我试过在调试/发布模式下编译应用程序没有任何结果。

IE控制台说:

SCRIPT575: This method cannot be called until the send method has been called. 
jquery-1.4.4.min.js?v=22, line 515 character 302 
SCRIPT5022: Unhandled Error in Silverlight Application The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() 
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key) 
    at AppLaunch.Bloc.Frontend.SilverLight.UserOnlineClient.App.Application_Startup(Object sender, StartupEventArgs e) 
    at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) 
    at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) 
+0

删除答案,因为它不适用于这种情况。 – ChrisF 2011-03-02 10:40:26

回答

1

我回答我的问题。

问题是将InitParams发送到带有HTML的silverlight对象。由于某些原因,这适用于除IE之外的所有浏览器。

将参数传递给silverlight应用程序,而不是从DOM树中提取参数。

+0

你能否详细说明一下?我没有在IE中设置InitParams的问题。 – jv42 2012-03-21 15:01:09

相关问题