0

여기에 문제가 있습니다 -Windows Phone 8 System.Reflection.TargetInvocationException

저는 비디오 스트리밍 기능이있는 Windows Phone 8 응용 프로그램을 만들고 있습니다. 내가 그들의 단계를 다음에 플레이어 프레임 워크 단으로

http://playerframework.codeplex.com/wikipage?title=Getting%20Started%3A%20WP8%20Smooth%20Streaming%20Player

를 사용하고,이 예외를 얻을

$exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Media.DrmException: 1001 
    at MS.Internal.XcpImports.CheckHResult(UInt32 hr) 
    at MS.Internal.XcpImports.MediaElement_SetMediaStreamSource(MediaElement mediaElement, Int32 mediaStreamerId) 
    at System.Windows.Controls.MediaElement.SetSource(MediaStreamSource mediaStreamSource) 
    at Microsoft.Web.Media.SmoothStreaming.SmoothStreamingMediaElement.au(Uri A_0) 
    at Microsoft.Web.Media.SmoothStreaming.SmoothStreamingMediaElement.a3(Uri A_0, Uri A_1) 
    at Microsoft.Web.Media.SmoothStreaming.SmoothStreamingMediaElement.a7(DependencyObject A_0, DependencyPropertyChangedEventArgs A_1) 
    at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue) 
    at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) 
    at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet) 
    at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) 
    at Microsoft.Web.Media.SmoothStreaming.SmoothStreamingMediaElement.set_SmoothStreamingSource(Uri value) 
    at Microsoft.PlayerFramework.Adaptive.SmoothStreamingMediaElementWrapper.Microsoft.PlayerFramework.IMediaElement.set_Source(Uri value) 
    at Microsoft.PlayerFramework.MediaPlayer.<>c__DisplayClass93.<set__Source>b__92() 
    at Microsoft.PlayerFramework.MediaPlayer.RegisterApplyTemplateAction(Action action) 
    at Microsoft.PlayerFramework.MediaPlayer.set__Source(Uri value) 
    at Microsoft.PlayerFramework.MediaPlayer.LoadSource(MediaLoadingInstruction loadingInstruction) 
    at Microsoft.PlayerFramework.MediaPlayer.<>c__DisplayClass2e.<<SetSource>b__2c>d__31.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state) 
    --- End of inner exception stack trace --- 
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) 
    at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 
    at System.Delegate.DynamicInvokeImpl(Object[] args) 
    at System.Windows.Threading.DispatcherOperation.Invoke()} System.Exception {System.Reflection.TargetInvocationException} 

를 새로 만들 때 나도 같은 단계를 수행하면 나는 위의 예외를하지 않습니다 처음부터 응용 프로그램. 나는 또한 전에 그것을 사용하고 잘 작동합니다. 내가 Microsoft.Web.Media.SmoothStreaming.dll에 대한 참조를 제거하면

, 는 내가

(내가 무슨 생각을 먹으 렴) 내가 약간의 충돌 참조를 데 같은

An exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. and wasn't handled before a managed/native boundary 
An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary 
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols. 
Unhandled Exception: System.Windows.ApplicationUnhandledExceptionEventArgsCould not load file or assembly 'Microsoft.Web.Media.SmoothStreaming, Version=1.1.837.146, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 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__0(Object state) 
The program '[3720] TaskHost.exe' has exited with code -1 (0xffffffff). 

그래서 보인다이 예외를 얻을

이 문제를 어떻게 해결할 수 있습니까 ??

모든 도움 감사합니다, 당신에게

답변

0

죄송합니다

나쁜 질문 감사합니다.

앱의 매니페스트 파일에 기능이 없습니다.