Pergunta

I have created a application which connects and performs function to a database. However when I compile and publish the application my clients report a error message while trying to open the file about a missing file.

enter image description here

So they need to have the connector installed before they can use my application, how can I fix this?

Foi útil?

Solução

Create an installer that ensures this dependency is met. WiX is the normal route here. The WiX tools do not depend on VS, although the VS tools make things a little easier for you.

-or-

In VS, open the references section of your project, find the reference to MySql.Data, go to properties and set "Copy Local" to true and rebuild. Now the .dll will be copied to your bin folder, ready for redistribution as you see fit.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top