ContentLoadException

Apr 9, 2009 at 5:26 AM
Hey guys,

I got an error when trying to load a video.

Error loading "Videos\Clips\a". File not found.

I have a video called a.avi.
I putted it on the SolutionExplorer.
I have a VideoContentManager class that Load a video.
The importers converts the video to xnb, i can see it on bin\release...
But when the program try to run this line: this.quemvceh = Configuracoes.contentVideo.Load<Video>("Videos\\Clips\\a");
I got the error.

File not found? But it is there.

Can anyone help me?
Coordinator
Apr 9, 2009 at 1:59 PM
I think the confusion may come from the fact that the .xnb file is stored in the Content subdirectory ... so your path probably needs to look like this:

this.quemvceh = Configuracoes.contentVideo.Load<Video>("Content\\Videos\\Clips\\a");

Let me know if that works for you :-)