Error in Connection-ASP.Net & C#

G

Guest

Hi,

Can someone please help me in solving the below issue.
I received the following error,
System.Data.SqlClient.SqlException: Cannot open database requested in login
'TestCenter'. Login fails. Login failed for user 'SHYAM\NET'. at
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString
options, Boolean& isInTransaction) at
System.Data.SqlClient.SqlConnection.Open() at
Microsoft.Gtsc.TestCenterBooking.BusinessLayer.UserExams.GetExamList() in
D:\Inetpub\wwwroot\TestCenterBooking\Microsoft\Gtsc\TestCenterBooking\BusinessLayer\UserExams.cs:line
38 at Microsoft.Gtsc.TestCenterBooking.Web.User.Exams.BindExams() in
D:\Inetpub\wwwroot\TestCenterBooking\Microsoft\Gtsc\TestCenterBooking\Web\User\Exams.aspx.cs:line 44

Regards,
Shyam
 
G

Guest

Either

a) user/password combo wrong in connection string
b) You do not have an account in the database

It depends on how the connection string is set up.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top