469,348 Members | 1,384 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,348 developers. It's quick & easy.

Error in Connection-ASP.Net & C#

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.Get PooledConnection(SqlConnectionString
options, Boolean& isInTransaction) at
System.Data.SqlClient.SqlConnection.Open() at
Microsoft.Gtsc.TestCenterBooking.BusinessLayer.Use rExams.GetExamList() in
D:\Inetpub\wwwroot\TestCenterBooking\Microsoft\Gts c\TestCenterBooking\BusinessLayer\UserExams.cs:lin e
38 at Microsoft.Gtsc.TestCenterBooking.Web.User.Exams.Bi ndExams() in
D:\Inetpub\wwwroot\TestCenterBooking\Microsoft\Gts c\TestCenterBooking\Web\User\Exams.aspx.cs:line 44

Regards,
Shyam
Nov 19 '05 #1
1 1065
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!
***************************
"Shyam" wrote:
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.Get PooledConnection(SqlConnectionString
options, Boolean& isInTransaction) at
System.Data.SqlClient.SqlConnection.Open() at
Microsoft.Gtsc.TestCenterBooking.BusinessLayer.Use rExams.GetExamList() in
D:\Inetpub\wwwroot\TestCenterBooking\Microsoft\Gts c\TestCenterBooking\BusinessLayer\UserExams.cs:lin e
38 at Microsoft.Gtsc.TestCenterBooking.Web.User.Exams.Bi ndExams() in
D:\Inetpub\wwwroot\TestCenterBooking\Microsoft\Gts c\TestCenterBooking\Web\User\Exams.aspx.cs:line 44

Regards,
Shyam

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by bobdydd | last post: by
6 posts views Thread by Chris Szabo | last post: by
3 posts views Thread by Adriano | last post: by
2 posts views Thread by =?Utf-8?B?U3VuaWwgUGFuZGl0YQ==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.