2013-03-12 83 views
0

我在Silverlight中为其中一个用户收到以下错误。目标运行时为4.1.10329.0,应用程序使用Silverlight 4构建。我不知道可能是什么问题。看起来它是试图加载LoadComponent上的东西,并失败:Silverlight未处理错误

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

在服务器上打开IIS,去HTTP头,单击MIME类型,点击“新增”,并添加以下内容:

扩展 - Mime类型 的.xaml - 应用程序/ XAML + XML 的.xap - application/x-silverlight-app .xbap - application/x-ms-xbap

相关问题