Hi to everyone, I have completed an application in C# that read and write data in database, also i have made it to run automatically when Windows Start, and to save automatically the data when application detect that ShutDown has started.
But i have a problem when windows log on the error message appears "Login Failed for user .....". If I right click and go with Run as Administrator it does not have problem, but is not right always to do that.
So i ask you how to make my application automatically to run with administration rights... I read something about manifest file but is not clearly described.
Thnx.
Loading
Suthish NairPosted Jan 30, 2011, 4:18 AM
Did you tried rebooting the system and also restrarting the SQL Sevices, just a workaround might helps :).
For error 1, refer forum
For error 2, set connection pooling=true in the connection string.
Sam HobbsPosted Jan 29, 2011, 7:22 PM
Elham HamitiPosted Jan 29, 2011, 6:23 PM
Sam HobbsPosted Jan 29, 2011, 4:03 PM
It helps to diagnose problems methodically in the preceding manner.
FroglegPosted Jan 29, 2011, 3:45 PM
http://msdn.microsoft.com/en-us/library/bb756929.aspx
http://www.developerfusion.com/code/7987/making-a-net-app-run-on-vista-with-administrator-priviledges/
Elham HamitiPosted Jan 29, 2011, 7:52 AM
I think the SQL service does not start at windows logon maybe this cause this error... thnx
Suthish NairPosted Jan 25, 2011, 3:04 PM
Sam HobbsPosted Jan 25, 2011, 2:10 PM
Note that for the question about use of Administrator access, security experts will strongly advise not to do that; you should not use Administrator access unless there is clearly a need for it. You should determine what the problem is that requires Administrator access. A likely explanation is that the database is located someplace it should not be. You should use this as an opportunity for learning how to debug problems.
Guest UserPosted Jan 24, 2011, 5:55 PM
Elham HamitiPosted Jan 24, 2011, 2:42 PM
Guest UserPosted Jan 24, 2011, 8:56 AM