Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

Here iam Developing Windows 7 Mobile Application,So i faced typical problem the problem with dataset Windows 7 Mobile 2010 doesnot support Dataset.So i added the System.Data dll from .net 4.0 framework to Windows 7 References.After writing the some code in Button event.

C#
private void button1_Click(object sender, RoutedEventArgs e)
      {
          DataSet ds = new DataSet();

      }


Now i build the application so iam getting the Error version Problem
Errors are:

Error 15 The type 'System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. D:\AnilKumarBackUp\PhoneApplications\Mobiledataset3\PhoneApp2\MainPage.xaml.cs 17 13 PhoneApp2




VB
Error   13  The base class or interface 'System.ComponentModel.MarshalByValueComponent' in assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' referenced by type 'System.Data.DataSet' could not be resolved  c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\System.Data.dll   PhoneApp2



So i searched the Thing where i done mistake But still iam not getting the Required Information so please provide required answer.


Regards,

AnilKumar.D
Posted
Comments
Sergey Alexandrovich Kryukov 29-May-12 0:15am    
I did not get it. It tells you to add a reference. What happened when you try to add a reference?
--SA
Anil Honey 206 29-May-12 0:18am    
i Added the System.data dll its does not provide any error information its added sucessfully.And i also created the object for dataset like this

private void button1_Click(object sender, RoutedEventArgs e)
{
DataSet ds = new DataSet();
ds.Tables.Add(ds.Tables[0].Rows[0][1].ToString());
}

Iam getting the required metadat and class file of dataset But when i build the Project the above errors are coming.
bbirajdar 29-May-12 0:18am    
You need to add the dll references for the dependent assemblies as well...
Anil Honey 206 29-May-12 0:20am    
How can u explain clearly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900