SMF v2.5 System.Windows not found

Sep 8, 2011 at 2:39 AM
Edited Sep 8, 2011 at 3:52 AM

Hi,

I used SMF back several months ago on a project that I recently broke after installing the Silverlight 5 SDK on an unrelated issue.  All my other non SMF Silverlight projects are still working fine.  So I went here and downloaded v2.5 (the installer) thinking I probably just needed an update.  This still did not fix the issue.

So I went back to square one:

  • Created an empty Silverlight application project (targeting Silverlight v4, not v5)
  • Compiled the project, everything works fine.
  • Added a reference to Microsoft.Web.Media.SmoothStreaming (v1.5.938.92) - Everything still works fine.
  • Then I tried adding a reference to Microsoft.SilverlightMediaFramework.Core and got an error about System.Windows not being found (see link below)
  • Adding any of the other Microsoft.SilverlightMediaFramework dlls produced the same error.

http://i18.photobucket.com/albums/b116/dtdono0/DOTNET/smf1.png

I happened to find a similiar thread on this site where a user had practically the same issue as I am having here but with an older version: http://smf.codeplex.com/discussions/233528

As an experiment, I went ahead and:

  • Downloaded the binaries for v2.2, v2.3, and v2.4
  • Unzipped and unblocked all the DLLs
  • Removed all SMF v2.5 references from my project
  • Added a reference to  Microsoft.SilverlightMediaFramework.Core (v2.2) - no compilation error
  • Added a reference to  Microsoft.SilverlightMediaFramework.Core (v2.3) - no compilation error
  • Added a reference to  Microsoft.SilverlightMediaFramework.Core (v2.4) - no compilation error

I also was able to replicate this on 3 machines with similar configurations as well.  I am perfectly fine sticking with v2.4 (since this seems to be working) but thought I would bring this to your attention.  

Thanks.

Sep 8, 2011 at 3:42 AM

On a side note when I start the sample application without debugging, the video runs fine.  

However when I start running the debugger I get:

{System.Xml.XmlException: [Xml_CannotFindFileInXapPackage]

Arguments: Heuristics.xml

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=5.0.60401.00&File=System.Xml.dll&Key=Xml_CannotFindFileInXapPackage   at System.Xml.XmlXapResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)}

Removing all the 'optional' smf dll references changes it to this:

{System.Xml.XmlException: [Xml_CannotFindFileInXapPackage]

Arguments: Config.xml

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=5.0.60401.00&File=System.Xml.dll&Key=Xml_CannotFindFileInXapPackage   at System.Xml.XmlXapResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)}