Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i got following error when i try to run it.

VB
[SqlException (0x80131904): Login failed for user 'mukteshUser'.]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   YABlog.DAL.Functions.ExecuteSelectCommand(String CommandName) in C:\RahulSingh\TestProjects\YaBlogEngine\YaBlog.DAL\Functions.cs:46
   YABlog.DAL.EntriesDb.GetEntryList() in C:\RahulSingh\TestProjects\YaBlogEngine\YaBlog.DAL\EntriesDb.cs:37
   YABlog.BLL.EntriesAction.GetEntryList(Repeater rep) in C:\RahulSingh\TestProjects\YaBlogEngine\YaBlog.BLL\EntriesAction.cs:37
   _Default.ShowAllBlogs() +45
   _Default.Page_Load(Object sender, EventArgs e) +210
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


what should i do to solve it ?

And this is the site where i got the error message

http://blog.muktesh.in/[^]
Posted
Updated 19-Aug-13 0:48am
v2
Comments
Maarten Kools 19-Aug-13 6:47am    
Use the correct username/password probably. Or perhaps you're not selecting the correct database, also an option.
[no name] 19-Aug-13 6:48am    
i check it. all think are correct
Maarten Kools 19-Aug-13 6:50am    
Well, check your database configuration then, see if everything is configured correctly on that end (e.g. see if you can connect using the SQL Server Management Studio)
CodeBlack 19-Aug-13 7:10am    
are you able to access 64.71.143.154 from the server ?
i have checked your site and i am not getting any error.
Maarten Kools 19-Aug-13 7:32am    
Maybe it's fixed, because when I checked about 30 mins ago the error was there.

1 solution

As others have said in the comments, the error is clear, one of the following is incorrect:

1. You are connecting to the incorrect database
2. You are using the wrong username
3. You are using the wrong password.
4. You are supply a correct username and password, but your connection is using Windows authentication
5. The account you are using is locked out on the SQL server.
6. You aren't picking up the config values for some reason.


The thing to do is to use the credentials you are passing (copy these from config or where-ever you are storing them) to connect via SQL Management Studio. If you can login this way you can discount 2, 3, and 5 in one step. You can also put a breakpoint on the call itself and inspect the connection object for the connection string.
Other than that you'll have to work out this for yourself as we don't have access to the database to see what is happening.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900