Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a visual Basic program that keeps track of my 800+ DVD movie collection. I included VLC using AxVLPluginV2. The program runs completely as expected in debug mode, but when I publish the program and run it, I get an error when I try to play the movie.

"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.

Could not load file or assembly 'AxInterop.AXVLC, Version=1.0.0.0, Culture, PublicKey or one of its dependencies. The system cannot find the file specified."


As I said earlier, under debug mode it runs fine, and I am able to play a movie with no problems, but when I compile it and publish it so it will run on its own I get the error.

AxInterop.AXVLC.dll is in the MyMovies project directory.

darby

“When you were born you cried and the world rejoiced.
Live your life so that when you die the world cries and you rejoice!”
~Old Indian Proverb~

What I have tried:

I don't know what else to try. The program runs fine as it is under debug, but when I compile and publish it, it throws the error. I'm not sure where AxInterop.AXVLC.dll is supposed to be.
Posted
Updated 5-Sep-18 14:08pm

1 solution

Your deployed copy is either missing the AxInterop.AXVLC.dll and/or VLC Player is not installed on the machine either.

The AxInterop dll's are a shim that allows your app to talk to a library. It is NOT a replacement for that library. You still need to deploy the library you're using.
 
Share this answer
 
Comments
Member 10376725 7-Sep-18 15:58pm    
I have since changed to Windows Media Player, Removed all references to VLC, pulled Windows Media Player into the ToolBox, and onto my form, from the COM dialog box and Imported both WMPLib and AxWMPLib to the program. (The editor declared I did not need to import either of these Libraries)compiled and ran it and everything ran as expected. As soon as I published it I got the same error except it said 'AxInterop.WMPLib' I guess I just ASS-U-MEd that being a Microsoft plugin it would include all the necessary files. (silly me), Sooo, how do I assure these libraries get included in the published version?

darby
Dave Kreskowiak 7-Sep-18 16:52pm    
The Ax???Lib.dll file is generated by Visual Studio when you add a reference to a COM component. You MUST ship this .dll with your application in order for it to work with the COM component.

Also, if you set your reference on a Windows 10 machine with Media Player, chances are good it's not going to work on downlevel machines, like Windows 7. It has a different version of Media Player than 10 does.

How you do that depends entirely on how you're packaging and distributing your application.
Member 10376725 9-Sep-18 10:41am    
Dave;
First, at this time I have no intentions of deploying this to other machines other than my own. It's designed for my movie collection. But, I would like to be able to run it from my task bar without having to load VS and running it there.

So now, that being said, where do I put the .dll files, in the same directory as the .exe or where? Right now they're in the Projects file.

I really appreciate your help on this.

darby
Dave Kreskowiak 9-Sep-18 10:56am    
Same folder as the .EXE.
Member 10376725 10-Sep-18 11:54am    
AGAIN THANK YOU/ WORKS AS IT SHOULD.

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