Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i publishd my web site and the 'ruser' is in my sqlserver and the password is true ! whay giv this error in iis ?

Server Error in '/' Application.

Login failed for user 'ruser'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'ruser'.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[SqlException (0x80131904): Login failed for user 'ruser'.]
   shahr.Grid_News.GridNewsContentsDetails() +253
   shahr._Default.LoadNews() +69
   System.Web.UI.Control.LoadRecursive() +116
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2910

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009
Posted
Updated 20-Sep-14 21:02pm
v2

1 solution

You need to look at the server that the connection string specifies: it may be that your user "ruser" is not defined on that server, or that the password is different, or that the user does not have permission to access that database. Remember that in production the SQL server is very unlikely to be the same one that you use for development, and in many web hosting services there will be a number of SQL server instances so you have to be sure that you are connecting to the correct DB instance both to create the DB and to access it later.

The error is pretty explicit: and there is nothing we can do form here to check. If you can't spot the problem yourself, you will have to talk to someone who has access to the production DB system: your web hosting company or DB admin.
 
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