Pregunta

I have created a win form application in c# with sqlce. I followed the steps here http://erikej.blogspot.dk/2013/10/sql-server-compact-4-desktop-app-with.html making some tweaks along the way since I was using sqlce 3.5 .net and that blog was talking about 4.0 .net.

When I finished the application, I created a set up project and build it which gave me an msi and setup file.

Now when I run this set up on my own machine where I developed the applicaton, it works a charm.

I tried it on a friend's machine as well, it worked well, he had visual studio 2010 as well on his machine.

Now when I tried it on 2 other machines with VS, after installation, on launching the exe, it launches and immediately closes, I do not see anything although.

I know it launches as i look at processes from my task manager it shows it in there for like 3-4 seconds and its gone.

I tried using this Not able to run the .exe file created from c# where i wrapped the try and catch around all the code inside the root win form but no text file was created with any errors.

On doing some research, it says it could be because I am missing some dll's, how do i make sure all the dlls from the references would be copied into the project ? I set all dll's to true for copy local.

Is this something else and not related to dlls?

I really just want to be able to install the application on any machine without any problems.

Thank you for your time.

EDIT

I need to add that this was a project that involved using an XBox controller sending data to a wireless receiver that was hooked to a PC. I used the XNA framework to intercept these and display some form of output on the Win Forms.

¿Fue útil?

Solución

When packing and installing/deploying an application that makes use of the XNA DLLs on another non developer machine, the XNA framework needs to be installed.

My solution was packing my application along with the xna installer and so the xna framework installs as a prerequisite and then my application installs and then it no longer crashes.

Thanks to mrlucmoring and Mark for their support and troubleshooting.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top