Silverlight 4.0 将带有WCF-RIA的Silverlight应用程序加载到html div中会出现异常

Silverlight 4.0 将带有WCF-RIA的Silverlight应用程序加载到html div中会出现异常,silverlight-4.0,Silverlight 4.0,在我的Silverlight应用程序(Silverlight app1)中,我有一个html页面,单击按钮我想将Silverlight应用程序(Silverlight app2)加载到html页面中的div present中,Silverlight xap文件位于ClientBin文件夹中。在这种情况下,当Silverlight应用程序包含Silverlight控件时,它会正确加载,但当我将WCF-RIA服务添加到应用程序中时,单击按钮就会抛出异常“错误:Silverlight应用程序中未处理的

在我的Silverlight应用程序(Silverlight app1)中,我有一个html页面,单击按钮我想将Silverlight应用程序(Silverlight app2)加载到html页面中的div present中,Silverlight xap文件位于ClientBin文件夹中。在这种情况下,当Silverlight应用程序包含Silverlight控件时,它会正确加载,但当我将WCF-RIA服务添加到应用程序中时,单击按钮就会抛出异常“错误:Silverlight应用程序中未处理的错误” 代码:2104
类别:初始化错误
消息:无法下载Silverlight应用程序。请检查web服务器设置“
但当我运行Silverlight应用程序(Silverlight app2)时,它运行正常,但在尝试加载到中的div(Silverlight app1)时出现异常。 我检查了这个异常,它说发生这种情况是因为IIS中没有设置MIME类型,但在我的情况下设置了,我使用的是VS2010。 提前谢谢。