I'm trying to make a movie play in my application:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim audioFile As Audio = New Audio("My.Resources.MyMovie.mov")
audioFile.Play()
End Sub
MyMovie is a .mov
file and is saved under My.Resources
and I want to access that file in vb.net program. When a button is clicked, I want that movie to play. The problem is, when I clicked the button, I receive this error:
Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
As well as the above error, I also get the following:
FileLoadException was unhandled.