0

对于其中一位用户,我在 Silverlight 中收到以下错误。目标运行时是 4.1.10329.0,应用程序是使用 Silverlight 4 构建的。我碰巧不明白可能是什么问题。看起来它正试图在 LoadComponent 上加载一些东西并且失败了:

Message: Unhandled Error in Silverlight Application 
Parser_CreateFromValue_CannotConvertInitializationText]
Arguments: PropertyChanged,System.Windows.Data.UpdateSourceTrigger
Debugging resource strings are unavailable. Often the key and arguments provide   
sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/? 
linkid=106663&Version=4.1.10329.0&File=System.Windows.dll&Key=
Parser_CreateFromValue_Cannot    ConvertInitializationText 
[Line: 582 Position: 273]    at    
System.Windows.Application.LoadComponent(Object   component, Uri resourceLocator)
at Samplexxx.MainPage.InitializeComponent()
at Samplexxx.MainPage..ctor()
at Samplexxx.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)

关于可能是什么问题的任何想法?

4

1 回答 1

0

在服务器上打开 IIS,转到 HTTP 标头,单击 Mime Types,单击“Add New”并添加以下内容:

扩展名 – Mime 类型 .xaml – application/xaml+xml .xap – application/x-silverlight-app .xbap – application/x-ms-xbap

于 2013-04-05T10:35:44.643 回答