المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Deployment for Visual C# 2010 Express



C# Programming
03-12-2011, 07:30 PM
Hi,
1-
On my laptop, I have developed an application called MyApp in Visual C# 2010 Express which connects to sql server 2005 express.
Works fine.
2-
As you know there is no installation mechanism with c# 2010 express, so as a test, I copied all the files (.dll, .exe, pdb...) from the release folder and placed them into c:\program files(86)\MyApp
3-
When running the .exe in this folder, error is shown on the screen as "Login failed for user user1". Then when the continue button is clicked on the error message, the application form appears with all the controls but empty data.
4-
It seems there is a problem with the login to the sql server, BUT note that the login does exist in the sql server as the application works fine when I run it in the visual c# 2010 express environment when developing it.

5- In the application, there is a class library project (The .dll in this project) which uses the connectionstring in the app.config file.

What do y ou think the problem is please?
Thanks