当我在sharepoint中调用silverlight xap时出现异常。希望有人能帮我解决这个问题。这里有一个例外:
消息: Silverlight应用程序设置属性'System.Windows.FrameworkElement.Style‘中未处理的错误引发了一个异常。行: 84位置: 335 at System.Windows.Application.LoadComponent(Object component,Uri resourceLocator) bei Project.MainPage.InitializeComponent() bei Project.MainPage..ctor(String eldoradoUrl,String eldoradoUser) bei Project.App.Application_Startup(对象发送方,StartupEventArgs e)
bei MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex,代表handlerDelegate,对象发送方,对象args) bei MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj,IntPtr unmanagedObjArgs,Int32 argsTypeIndex,Int32 actualArgsTypeIndex,String eventName)
下面是xaml代码行,其中错误假设:
<fseld:EldoradoDocCreationView x:Name="ProtoEldoradoDocCreationView" Grid.Row="0"
MaxColumnCount="2" FieldMargins="34 5 5 5"
RestrictToProperties="ProcedureName, FileItemText"
CurrentItem="{Binding ProtoEldoradoDoc}" CommandButtonsVisibility="None"
Margin="25,18,47,0" FontSize="10" Height="69" VerticalAlignment="Top" />谢谢你的答复,提前!
发布于 2011-10-03 06:27:52
您的Silverlight XAP在Sharepoint之外工作吗?如果没有首先纠正外部错误,您将更容易隔离问题,并可能获得更详细的异常信息。
如果它在没有Sharepoint的情况下工作,那么应该查看外部程序集,这些程序集可能包含在此上下文中找不到的样式。
https://stackoverflow.com/questions/7594140
复制相似问题