Linq To Dataset Videos

  • Thread starter Thread starter Alex. O. Koranteng
  • Start date Start date
A

Alex. O. Koranteng

I have downloaded the Linq-To-Dataset video demo from the MSDN LINQ Videos
homepage and getting the following error: The system could not load
file/assembly system.Data.Dataset.Extensions, version 2.0.0.0. The source
line is in the web.config file line#44 as below. The zipped file name is
CS_Orcas_LINQtoDataSet_CS.zip. Any Suggestions.

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting"
type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="Everywhere"/>
<section name="profileService"
type="System.Web.Configuration.ScriptingProfileServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="roleService"
type="System.Web.Configuration.ScriptingRoleServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings>
<add name="LINQConnectionString" providerName="System.Data.SqlClient"
connectionString="Data Source=.\SQLExpress;Integrated
Security=True;Database=AdventureWorks"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.

Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Linq"/>
<add namespace="System.Xml.Linq"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI"
assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls"
assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
compilerOptions="/warnaserror-" warningLevel="4"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
compilerOptions="/optioninfer+" type="Microsoft.VisualBasic.VBCodeProvider,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
</compiler>
</compilers>
</system.codedom>
<system.web.extensions>
<scripting>
<webServices>
<!--
Uncomment this section to enable the authentication service.
Include
requireSSL="true" if appropriate.

<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!--
Uncomment these lines to enable the profile service, and to
choose the
profile properties that can be retrieved and modified in
ASP.NET AJAX
applications.

<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
<!--
Uncomment this section to enable the role service.
<roleService enabled="true"/>
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true"
/>
-->
</scripting>
</system.web.extensions>
<!--
The system.webServer section is required for running ASP.NET AJAX
under Internet
Information Services 7.0. It is not necessary for previous version
of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx"
preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*"
path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD"
path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
</configuration>

Thanks
 
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

If this is the case and you're using VS 2008. You can just remove the
assembly reference (of the 2.0 version DataSetExtensions.dll) and add the
3.5 version one. Here is a blog entry also mentioned this issue:

#System.Data.DataSetExtensions Assembly Error in Visual Studio 2008
http://codeforeternity.com/blogs/technology/archive/2008/04/05/system-data-d
atasetextensions-assembly-error-in-visual-studio-2008-rtm.aspx

If you have anything unclear on this, please feel free to let me know.

BTW, I've also replied you in a former thread(about LINQ videos) and I've
gave you my email address there. Welcome to send me the project so that I
can have a look at it for you.

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:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.



--------------------
 
"Steven Cheng" said:
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

If this is the case and you're using VS 2008. You can just remove the
assembly reference (of the 2.0 version DataSetExtensions.dll) and add the
3.5 version one. Here is a blog entry also mentioned this issue:

#System.Data.DataSetExtensions Assembly Error in Visual Studio 2008
http://codeforeternity.com/blogs/technology/archive/2008/04/05/system-data-d
atasetextensions-assembly-error-in-visual-studio-2008-rtm.aspx

If you have anything unclear on this, please feel free to let me know.

BTW, I've also replied you in a former thread(about LINQ videos) and I've
gave you my email address there. Welcome to send me the project so that I
can have a look at it for you.

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:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
 
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.aspx.cs Line: 31
 
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:
(e-mail address removed).



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <[email protected]>
References: <[email protected]>
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" said:
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
 
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" said:
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:
(e-mail address removed).



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <[email protected]>
References: <[email protected]>
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" said:
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
 
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:
(e-mail address removed).



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <[email protected]>
References: <[email protected]>
<[email protected]>
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" said:
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:
(e-mail address removed).



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <[email protected]>
References: <[email protected]>
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
:

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
 
Hi Alex,

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

Regards,

Steven

--------------------
From: (e-mail address removed) ("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:
(e-mail address removed).



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <[email protected]>
References: <[email protected]>
<[email protected]>
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.
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:
(e-mail address removed).



--------------------
From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <[email protected]>
References: <[email protected]>
<[email protected]>
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



:

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
 
Back
Top