Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I build project with video
VB
Imports Microsoft.DirectX.AudioVideoPlayback
when developing I can play video why in the client video cannot played?


I get this error in client:

"Unhandled exception has occurred in your application. If you click Continue. the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Mixed mode assembly is built against version 'v1.1.4332' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."

not all client get this error, a few client can play the video a few client cannot play the video

anybody tell me what's wrong?

What I have tried:

Private Sub PlayVideo()
        Try
            If System.IO.File.Exists(file) = True Then
                videoFile = New AudioVideoPlayback.Video(file)
                videoFile.Owner = pnlVideo
                videoFile.Play()
            Else
                pnlVideo.Visible = False
            End If
        Catch ex As Exception
            pnlVideo.Visible = False
        End Try
    End Sub
Posted
Updated 18-Apr-17 0:29am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900