D
Dariusz Tomon
Hello
I upgraded my project from Visual Studio 2003 to 2005. The upgrade was
performed with no errors but now when I try to build my project (now it's in
..NET 2.0 not .NET 1.1 as was previously) I always get the following error:
Error 1 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=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
C:\Inetpub\wwwroot\EuroAdresPanels\FirmaFree.cs 26 21 EuroAdresPanels
What is funny I have got a reference to System.XML.
Below is the snippet of my code (the problematic is a line with private
DataTable TKon:
using System;
using System.Diagnostics;
//\gjo
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
namespace EuroAdresPanels
{
public class FirmaFree : System.Web.UI.WebControls.WebControl
{
private string NazwaFirmy = "";
private int id;
private DataRow[] RAdresy;
private DataTable TKon;
private DataTable TWoj;
private string emial = "";
//gjo
private DataTable TBranze;
private DataTable TSlowa;
//flaga mowiaca czy wyswietlamy tylko jedna firmy
public bool IsAlone = false;
//\gjo
public string ConnString = null;
public FirmaFree(int idfirmy, DataRow[] rAdresy, DataTable Kontakty,
DataTable TWojewodztwo, string miasto, int woj)
{
id = idfirmy;
TWoj = TWojewodztwo;
TKon = Kontakty;
RAdresy = rAdresy;
this.IsAlone = false;
this.TSlowa = null;
this.TBranze = null;
}
public FirmaFree(int idfirmy, DataRow[] rAdresy, DataTable Kontakty,
DataTable TWojewodztwo,
string miasto, int woj, DataTable TBranze, DataTable TSlowa, string
ConnString)
{
id = idfirmy;
TWoj = TWojewodztwo;
TKon = Kontakty;
RAdresy = rAdresy;
this.IsAlone = true;
this.TSlowa = TSlowa;
this.TBranze = TBranze;
this.ConnString = ConnString;
// this.IsAlone = SprawdzMaxBranz();
}
Any ideas how to deal with it?
Best Regards
Darek T.
I upgraded my project from Visual Studio 2003 to 2005. The upgrade was
performed with no errors but now when I try to build my project (now it's in
..NET 2.0 not .NET 1.1 as was previously) I always get the following error:
Error 1 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=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
C:\Inetpub\wwwroot\EuroAdresPanels\FirmaFree.cs 26 21 EuroAdresPanels
What is funny I have got a reference to System.XML.
Below is the snippet of my code (the problematic is a line with private
DataTable TKon:
using System;
using System.Diagnostics;
//\gjo
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
namespace EuroAdresPanels
{
public class FirmaFree : System.Web.UI.WebControls.WebControl
{
private string NazwaFirmy = "";
private int id;
private DataRow[] RAdresy;
private DataTable TKon;
private DataTable TWoj;
private string emial = "";
//gjo
private DataTable TBranze;
private DataTable TSlowa;
//flaga mowiaca czy wyswietlamy tylko jedna firmy
public bool IsAlone = false;
//\gjo
public string ConnString = null;
public FirmaFree(int idfirmy, DataRow[] rAdresy, DataTable Kontakty,
DataTable TWojewodztwo, string miasto, int woj)
{
id = idfirmy;
TWoj = TWojewodztwo;
TKon = Kontakty;
RAdresy = rAdresy;
this.IsAlone = false;
this.TSlowa = null;
this.TBranze = null;
}
public FirmaFree(int idfirmy, DataRow[] rAdresy, DataTable Kontakty,
DataTable TWojewodztwo,
string miasto, int woj, DataTable TBranze, DataTable TSlowa, string
ConnString)
{
id = idfirmy;
TWoj = TWojewodztwo;
TKon = Kontakty;
RAdresy = rAdresy;
this.IsAlone = true;
this.TSlowa = TSlowa;
this.TBranze = TBranze;
this.ConnString = ConnString;
// this.IsAlone = SprawdzMaxBranz();
}
Any ideas how to deal with it?
Best Regards
Darek T.