Search code examples
c#winformsvisual-studio-express

Winform application "has stopped working" on launch. Only on other computers


This is my first application I have ever released. I built it with Visual Studio Express in c# using winform application.

I'm fairly new to this and I can't manage to find an answer to my problem.

When I try to open (launch) my application on various other computers I get a "Winformapplication has stopped working" and the application does not start. I have tried to include all the resources I use in the folder but still couldn't make this work.

Strangely enough, the application works on all the computers I have Visual Studio installed (at least I think so). It worked as well on a random laptop I tried it on and it does not have anything special I could figure out (no VSE installed).

So my question is pretty simple : how do I make this work ? what am I missing ?

I can provide more information about the application itself if required.

Thank you a lot.

edit: removed code as it was not relevant.


Solution

  • My error came from : "'Microsoft Office 12.0 Access Database Engine OLE DB Provider' Provider is not registered on the local machine.

    A temporary fix would be to install 2007 Office System Driver: Data Connectivity Components as stated on this thread.

    Thanks for the help everyone.

    I'm still looking for an alternative though.