473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Dlinq (Orcas March 2007) - SQL 2005 connection problems

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();

}

Mar 20 '07 #1
1 1196
On Mar 20, 5:02 pm, "Jim Light" <dejavu...@yahoo.comwrote:
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/Sho...D=123&SiteID=1

Good Luck

Mar 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lior Bobrov | last post by:
Hi . Due to Microsoft's roadmap for years 2004-2005 , Visual Studio codenamed "Orcas" should be released in 2005 . But , as we know , Visual Studio codenamed "Whidbey" (which was originally...
0
by: Scott Nonnenberg [MSFT] | last post by:
The DLinq team will be ready and waiting for your questions and comments at this date and time at this location: http://msdn.microsoft.com/chats/chatroom.aspx. This is otherwise known as a chat -...
4
by: Brett Romero | last post by:
I've downloaded the DLINQ samples from Microsoft and have always been able to compile these in VS.NET 2005 Pro. I have a new project that I added DLINQ references to and put in a simlpe query. It...
0
by: holger krekel | last post by:
========================================================================= PyPy Trillke "EU and beyond!" sprints (25-28th Feb, 1-5th March 2006)...
6
by: sugapablo | last post by:
I have an old machine running Mandrake 9.2 and PHP 4.3.1 hosting several websites. With the coming changes to daylight savings time in March 2007, what are my options in correcting the current...
2
by: dejavue82 | last post by:
Does anybody know how to resolve the following errors? They were caused by the designer.cs file that was auto-generated by the LINQ to SQL designer. I am using the March 2007 Orcas CTP version of...
0
by: Betty Harvey | last post by:
The next meeting of the XML Users Group will be held on Wednesday, March 21, 2006 at the American Geophysical Union (AGU) at 2000 Florida Avenue, N.W., Washington, DC 20009-1277. The meeting starts...
9
by: squishy | last post by:
So what new suprises are in store for us with Orcas? I am downloading the VPC now to try it out myself. But, I will go out on a very sturdy limb here and say that MS will try and get developers...
8
by: subtle | last post by:
I've installed Orcas beta1 March 2007 CTP. I get compiler errors on any LINQ related code. For example: List<stringcities = new List<string>(); cities.Add("London"); cities.Add("Paris");...
35
by: Jon Skeet [C# MVP] | last post by:
Just in case anyone else hadn't noticed (like me!), Visual Studio 2008 (Orcas) Beta 2 has shipped. The best starting point is probably Scott Guthrie's blog (which contains download links etc): ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.