The most likely reason is the connection string: fixed strings in your code often give problems. You don't say what you were doing before when it worked, or what has changed since then, but this kind of thing is often because you specify "localhost" as the server, and then move to a different computer - where the DB server is not installed.
I'd suggest that you move your connection string to a config file of some description so you can alter it without recompilation, and look at the environment in which you are trying to run the application. Specifically, look at the DB servers installed, and see if you need a different connection string - a different server name, an actual login, and so forth.
We can't do that for you - we can't access your systems! :laugh:
BTW: Never store passwords in clear text - it is a major security risk. There is some information on how to do it here:
Password Storage: How to do it.[
^]