How to resolve the XML Error
-
I have a C# mobile application class. In that, there is a functionality which I use XmlTextWriter class. While compiling I am getting the following error:
The type 'System.Xml.XmlTextWriter' 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'.
I have added reference of System.Xml through Add Reference and also use the namespace by the keyword 'using...'. Still I am getting the same error. Any Idea how to resolve this? I am using Visual Studio 2005 SP2. Is this belong to some setup issue? Please help. Thanks meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
-
I have a C# mobile application class. In that, there is a functionality which I use XmlTextWriter class. While compiling I am getting the following error:
The type 'System.Xml.XmlTextWriter' 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'.
I have added reference of System.Xml through Add Reference and also use the namespace by the keyword 'using...'. Still I am getting the same error. Any Idea how to resolve this? I am using Visual Studio 2005 SP2. Is this belong to some setup issue? Please help. Thanks meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
Click on System.Xml in the references section. Click properties, and see what the version number is. Make sure you are using the correct version.
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
Click on System.Xml in the references section. Click properties, and see what the version number is. Make sure you are using the correct version.
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
I have a C# mobile application class. In that, there is a functionality which I use XmlTextWriter class. While compiling I am getting the following error:
The type 'System.Xml.XmlTextWriter' 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'.
I have added reference of System.Xml through Add Reference and also use the namespace by the keyword 'using...'. Still I am getting the same error. Any Idea how to resolve this? I am using Visual Studio 2005 SP2. Is this belong to some setup issue? Please help. Thanks meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
meeram395 wrote:
I have a C# mobile application class.
Looks like it may not be available for mobile;
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
I are Troll :suss:
-
The version and runtime version is 2.0.0.0 only. Is there any other settings need to change?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
The only thing I've got to wonder is if this is the mobile version or the desktop version, and whether you have multiple projects in your solution (in which case you'd have the ensure the same was present in all projects this particular project was referenced in).
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
meeram395 wrote:
I have a C# mobile application class.
Looks like it may not be available for mobile;
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
I are Troll :suss:
-
Ok. The error doesn't have any relation with mobile development. The error occurs in a simple class which is having XMLTextWriting functionality
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
meeram395 wrote:
The error doesn't have any relation with mobile development.
It depends. Are you trying to use the class from the Compact Framework? Seems it is not part of that framework, and I doubt that you can simply reference libraries that where meant to run on a real desktop.
I are Troll :suss:
-
meeram395 wrote:
The error doesn't have any relation with mobile development.
It depends. Are you trying to use the class from the Compact Framework? Seems it is not part of that framework, and I doubt that you can simply reference libraries that where meant to run on a real desktop.
I are Troll :suss:
Ok. That makes sense. Thanks very much. I tried to view the reference in object properties and I can see two xml references, one is without Compact Framework and one is with it. So I believe that it is referencing from Compact Framework. Let me try to resolve this. Would be great if you can have some inputs. Thanks once again :)
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.