我在其中一个用户的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)
关于可能出现什么问题的任何想法?
答案 0 :(得分:0)
在服务器上打开IIS,转到HTTP标头,单击Mime类型,单击“添加新”并添加以下内容:
扩展 - Mime类型 .xaml - application / xaml + xml .xap - application / x-silverlight-app .xbap - application / x-ms-xbap