Dlinq (Orcas March 2007) - SQL 2005 connection problems

  • Thread starter Thread starter Jim Light
  • Start date Start date
J

Jim Light

Hi,

Upon compiling the code below code, I get the following runtime error:

"Cannot open database "DataClassesDataContext" requested by the login.
The login failed. Login failed for user 'dbstore'."

I know for a fact that the login 'dbstore' and the password are
correct, since I use them to connect for the db with ADO.net.



protected void Page_Load(object sender, EventArgs e)
{
DataClassesDataContext db = new DataClassesDataContext();

var query = from p in db.users
select p;

GridView1.DataSource = query;
GridView1.DataBind();

}
 
Hi,

Upon compiling the code below code, I get the following runtime error:

"Cannot open database "DataClassesDataContext" requested by the login.
The login failed. Login failed for user 'dbstore'."

I know for a fact that the login 'dbstore' and the password are
correct, since I use them to connect for the db with ADO.net.

protected void Page_Load(object sender, EventArgs e)
{
DataClassesDataContext db = new DataClassesDataContext();

var query = from p in db.users
select p;

GridView1.DataSource = query;
GridView1.DataBind();

}

You'll probably get a better answer at this link:

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=123&SiteID=1

Good Luck
 
Back
Top