所以我得到以下异常 -
An exception of type 'System.IO.FileLoadException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary
Unhandled Exception - App Crash : Could not load file or assembly 'Microsoft.Web.Media.SmoothStreaming, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Unhandled Exception - App Crash : at Microsoft.PlayerFramework.Adaptive.AdaptivePlugin.get_MediaElement()
at Microsoft.PlayerFramework.MediaPlayer.GetTemplateChildren()
at Microsoft.PlayerFramework.MediaPlayer.<OnApplyTemplate>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__3(Object state)Microsoft.PlayerFramework.Adaptive
于是,我四处寻找。似乎是“版本 = 2.0.0.0”导致了问题。在此之前,我实际上有一个旧版本的文件——这也导致了一些异常——所以我更新了它——现在它根本不起作用。
非常感谢所有帮助!谢谢你!