Hello Friends,
I have copied the silverlight videochat samplecode from "silverlightvideochat.codeplex.com" to try a simple videochat application but getting the below mentioned error while capturing image.
"System.Exception: Class not registered (Exception from HRESULT: 0x80040154)
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.CaptureGraph_Start(CaptureSource Source)
at System.Windows.Media.CaptureSource.Start()
at SocketCoder_WebCamSender.MainPage.btnActivate_Click(Object sender, RoutedEventArgs e)"
I am using 64 bit Operating System, silverlight-4
below is the code block, i am getting the above error on _capture.Start().
private void button1_Click(object sender, RoutedEventArgs e)
{
if (_capture != null)
{
_capture.Stop();
_capture.VideoCaptureDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();
VideoBrush videoBrush = new VideoBrush();
videoBrush.SetSource(_capture);
rectVideo.Fill = videoBrush;
if (CaptureDeviceConfiguration.AllowedDeviceAccess || CaptureDeviceConfiguration.RequestDeviceAccess())
{
_capture.Start();
}
}
}
I have tried running the application by changing Target Platform to x86 but no success.
Please suggest,
Thanks,
Smitesh