1
Vote

Thumbnail and video upload failure

description

I have followed all installation instructions but I keep getting the error below each time I upload a file. The folder does exist; How do I reslove this?
"
Could not find a part of the path 'C:\Documents and Settings\xxxxxxxx\Local Settings\Temp\VideoShowEncoder\61.Encoded\Winter_Thumb.jpg'
"
 
The error is generate in the public void Process(Video video)
failing code line ---> " File.Copy(encoderResult.ThumbFilePath, newThumbPath, true); "
 
    public void Process(Video video)
    {
        Video = video;
 
        EncoderResult encoderResult = new ExpressionEncoder().Encode(video);
 
        //Silverlight Streaming won't serve images to Silverlight Applications it doesn't host, 
        //so we need to save the thumbnails locally.
        System.IO.FileInfo thumbFileInfo = new System.IO.FileInfo(encoderResult.ThumbFilePath);
        string newThumbDir = new FileInfo(video.RawStorageLocation).Directory.ToString().Replace("_temp_upload", "Images\\Thumbnails");
        string newThumbPath = Path.Combine(newThumbDir, thumbFileInfo.Name);
        VideoLogBO.Log(Video, String.Format("Move the thumbnail file from \"{0}\" to \"{1}\"", encoderResult.ThumbFilePath, newThumbPath));
        File.Copy(encoderResult.ThumbFilePath, newThumbPath, true);
        Video.ThumbnailUrl = "/images/thumbnails/" + thumbFileInfo.Name;
        VideoBO.Update(Video);
 
        HostResult hostResult = new SilverlightStreamingHost().AddMedia(encoderResult.VideoFilePath, video);
        UpdateVideo(hostResult);
    }

comments

raul3166 wrote Jun 11, 2009 at 2:12 PM

Hola, yo solucione el problema ingresando a http://support.microsoft.com/kb/942423, baje el software para ese problema y me funciona correctamente

sereleg wrote Jun 18, 2009 at 3:13 AM

Guys I have the same problem but on Vista professional any ideas?

Raul el software que bajastes no incluye solucion para Vista profesional yo tengo el problema en Vista Profesional porfavor si sabes de algo me haces saber.

Thanks

wrote Feb 14, 2013 at 7:46 PM