RE: Linq To Dataset Videos

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Alex,

I've tested the project you sent me and replied you with modified project
and suggestions.

Regards,

Steven

--------------------
From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
Organization: Microsoft
Date: Wed, 14 Jan 2009 02:32:31 GMT
Subject: RE: Linq To Dataset Videos
0

Hi Alex,

My previous reply means the problem is possibly caused by the project
missing some assembly references. You can try adding the following
assemblies to project reference if they haven't been referenced originally:

System.Data.Linq.dll

System.Data.Entity.dll

Also, it seems I haven't received your new zip package. Is it possible
that
it has been blocked mail server due to large file size? You can try
simplified the code and try to avoid including mdf database file(that'll
make the project very large). You've also sent you an email on this.

Looking forward to your reply.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <AlexK@xxxxxxxxxxxxxxxx>
References: <BC9CD314-F04E-49D7-9C8B-5EE63575F704@xxxxxxxxxxxxx>
<SU7XqcHcJHA.2056@xxxxxxxxxxxxxxxxxxxxxx>
<2B656582-3BE0-43EF-BB9B-47B7DBBCE145@xxxxxxxxxxxxx>
<IKnHM1IdJHA.2056@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Linq To Dataset Videos
Date: Tue, 13 Jan 2009 15:19:01 -0800


Steve,

I am not clear on what to do to reslove my problem. I emailed you a
zipped
file. could you take a look at it and offer me suggestions.


""Steven Cheng"" wrote:

Hi Alex,

Thanks for your followup.

Based on the further error message you attached below

===============
Compiler Error Message: CS1061: 'System.Data.DataTable' does not
contain
a
definition for 'AsEnumerable' and no extension method 'AsEnumerable'
accepting a first argument of type 'System.Data.DataTable' could be
found
==============

the compiler is still complaining against some certain assembly that is
not
referenced. I haven't received the project you sent me yet, would you
verify it? Also, would you please list all the "assemblies" you've
referenced in your project here so that I can have a look and verify
whether there is any necessary assembly that is missed.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments
and
suggestions about how we can improve the support we provide to you.
Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <AlexK@xxxxxxxxxxxxxxxx>
References: <BC9CD314-F04E-49D7-9C8B-5EE63575F704@xxxxxxxxxxxxx>
<SU7XqcHcJHA.2056@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Linq To Dataset Videos
Date: Sun, 11 Jan 2009 14:56:00 -0800


Steve,

Thanks for the code change suggestion. I have implemented your
suggestions
for adding the appropriate extension. Now I am getting this error as
below.
Any suggestion. I am emailing to you the zipped file

Server Error in '/WebSiteCSharp' Application.

---------------------------------------------------------------------------
-
----

Compilation Error
Description: An error occurred during the compilation of a resource
required
to service this request. Please review the following specific error
details
and modify your source code appropriately.

Compiler Error Message: CS1061: 'System.Data.DataTable' does not
contain a
definition for 'AsEnumerable' and no extension method 'AsEnumerable'
accepting a first argument of type 'System.Data.DataTable' could be
found
(are you missing a using directive or an assembly reference?)

Source Error:



Line 29:
Line 30: //*Simple query of one column
Line 31: var query1 = from emp in
dataSet.Tables["Employee"].AsEnumerable()
Line 32: select new { LastName =
emp.Field<string>("LastName") };
Line 33:


Source File:

c:\MSDN\Videos\LInq\Code\CS-Orcas-LINQtoDataSet_cs\WebSiteCSharp\Default.a
s
px.cs Line: 31



""Steven Cheng"" wrote:

Hi Alex,

Regarding on the error message you provided, it seems the problem is
due
to
the "system.Data.Dataset.Extensions, version 2.0.0.0" assembly not
found. I
think that assembly is of the former LINQ extension(used for .NET
2.0
+
VS
2005 ). While currently the latest release of LINQ is provided by
.NET
3.5
and VS 2008. It use the following assembly:

System.Data.DataSetExtensions, Version=3.5.0.0








.



Relevant Pages

  • RE: Linq To Dataset Videos
    ... missing some assembly references. ... Compiler Error Message: CS1061: 'System.Data.DataTable' does not contain ... would you please list all the "assemblies" you've ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Linq To Dataset Videos
    ... Based on the further error message you attached below ... Compiler Error Message: CS1061: 'System.Data.DataTable' does not contain a ... would you please list all the "assemblies" you've ... (are you missing a using directive or an assembly reference?) ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Linq To Dataset Videos
    ... Based on the further error message you attached below ... Compiler Error Message: CS1061: 'System.Data.DataTable' does not contain a ... definition for 'AsEnumerable' and no extension method 'AsEnumerable' ... would you please list all the "assemblies" you've ...
    (microsoft.public.dotnet.framework.adonet)
  • manually loaded assembly fails to find its referenced assemblies
    ... generates this error message: ... So I thought, fine, before calling GetTypes I can manually load the referenced ... Even if all referenced assemblies are found and loaded, though, this technique ... - go look *here* to resolve references you can't ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Server Error in /Remote Application - Compiler Error Message: CS
    ... Thank you for posting to the SBS Newsgroup. ... I understand that when you accessing RWW, you got following error message: ... Microsoft CSS Online Newsgroup Support ... >Compiler Error Message: CS0016: Could not write to output file ...
    (microsoft.public.windows.server.sbs)