0

So I get the following exception-

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

So, i searched around. It seems that the "Version=2.0.0.0" is causing the problems. Before this I actually had an older version of the file - that was also causing some exceptions - so I updated it - and now it doesnt work at all.

All help is greatly appreciated! Thank You!

kshitijgandhi
  • 1,532
  • 1
  • 16
  • 28

2 Answers2

1

So, the problem was that I updated the PlayerFramework dlls but didn't update the smoothstreaming dlls.

I needed to update Microsoft.Web.Media.SmoothStreaming to version 2.5

Found it in the Additional Downloads Section of PlayerFramework on Codeplex

http://www.microsoft.com/en-us/download/details.aspx?id=42080

@Domi - I wasn't able to get DependencyWalker to work. :/

Just hope it might help someone

kshitijgandhi
  • 1,532
  • 1
  • 16
  • 28
  • 1
    Good to hear that you found a solution that works for you. But as you can see it was a dependency problem of one of your DLLs - Maybe I will have some time to make a easy to follow dependency walker how to so problem like this will be found easier then for now... – DominikAngerer Jul 05 '14 at 20:54
0

I'm really sure you are missing some DLLs which are dependency of mscorlib.ni.dl have a look at http://www.dependencywalker.com/. Dependencywalker will tell you if you miss any dependency.

These are usually the easiest ways to debug library load issues, as they make the problem extremely evident.

Same issue - other .dll also dependency - hope this also helps you:

Could not load file or assembly '***.dll' or one of its dependencies

Edit:
Using Smooth Streaming Media Elements: http://blogs.msdn.com/b/giuseppeguerrasio/archive/2010/12/06/using-smooth-streaming-media-element-for-windows-phone-7.aspx

Community
  • 1
  • 1
DominikAngerer
  • 6,354
  • 5
  • 33
  • 60
  • I just downloaded dependencywalker first time right now. I can't understand the documents/help really well. I would really appreciate if you could help me with using it and finding what dll I am missing. Could it be because I updated references to some dlls? – kshitijgandhi Jul 05 '14 at 07:19
  • There is a nice how to: http://www-archive.mozilla.org/quality/help/dependency-walker.html :) – DominikAngerer Jul 05 '14 at 07:26