null stream

Apr 1, 2010 at 3:17 AM

 

 private static string ReadStream(string profileName)
        {
            using (Stream stream = typeof (WindowsMediaProfiles).Assembly.GetManifestResourceStream(string.Format(CultureInfo.InvariantCulture, "Splicer.WindowsMedia.{0}", profileName)))
            {
                using (var reader = new StreamReader(stream))
                {
                    return reader.ReadToEnd();
                }
            }
        }

 

 I put together this little app that used a folder and got all the images in it and tried to create a little slideshow.  When running it the WindowsMediaProfiles is crashing because it the using statement below is coming back null.  Any ideas?

 

private static string ReadStream(string profileName)

        {

            using (Stream stream = typeof (WindowsMediaProfiles).Assembly.GetManifestResourceStream(string.Format(CultureInfo.InvariantCulture, "Splicer.WindowsMedia.{0}", profileName)))

            {

                using (var reader = new StreamReader(stream))

                {

                    return reader.ReadToEnd();

                }

            }

        }

 

 

Apr 1, 2010 at 3:57 PM

I was being a moron.  Disregard

Jun 6, 2014 at 10:16 AM
hello i have the same problem plz help me