how can i get setup .exe from my application?

  • Thread starter Thread starter hesamy44
  • Start date Start date
H

hesamy44

Guest

Hi everybody!

This is my very first post here and I am a little hesitant about the question. I have been coding for about a year and so far I have been able to google my way out of troubles. This question has been asked before for sure but for some reason the answers I have found have not helped me.

I finished writing a WPF desktop application in C# which uses a SQL service-based database. The app writes to and reads from the database. The whole thing has a little over 5,000 lines of C# code. It works perfectly in my machine. The problem comes when I try to publish the application. The deployment goes smoothly (apparently) but the application will NOT run in other machines. Actually, the first window opens, this is the login window. After loging in, when the next window should open,the app throws an exception. I am catching this exception in the "try-catch" block that sorrounds the code to connect to the SQL database so the error message I get is one that I wrote. I think (in my limited understanding) the problem is that the SQL database connection string is hardcoded into the app and that causes problems for the app to run when it finds itself in different machine. It canot find the database where the connection string says it is!!! Am I not understanding something? Is my problem something else? How do I fix this?

Continue reading...
 
Back
Top