RE: Linq To Dataset Videos

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



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.as
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
    ... missing some assembly references. ... Compiler Error Message: CS1061: 'System.Data.DataTable' does not ... 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 ... definition for 'AsEnumerable' and no extension method 'AsEnumerable' ... would you please list all the "assemblies" you've ...
    (microsoft.public.dotnet.framework.adonet)
  • Strong name signing
    ... KeyFileAttribute with a sn generated key and getting an error message that ... Apparently to sign a project all referenced assemblies supplied by ... Can anyone please tell me how to strong name sign a reference file in VB2003 ...
    (microsoft.public.dotnet.languages.vb)
  • Strong name signing
    ... KeyFileAttribute with a sn generated key and getting an error message that ... Apparently to sign a project all referenced assemblies supplied by ... Can anyone please tell me how to strong name sign a reference file in VB2003 ...
    (microsoft.public.dotnet.framework.interop)