System.XML or dependency not found resulting in a TypeLoadException

Hi
I am developing a device application that accepts a string of XML from a sever side program and tries to parse the XML. Everything was working fine until I Imported System.xml. Code compiles and deploys fine but as soon as I attempt to create an instance of XMLTextReader is throws a type load exception and tells me that System.XML or one of its dependencys is not found. I am using VS2005 Beta and all the references are using .net framework 2.0, Also When I import system.XML it starts deploying other dlls to the device (System.Security, system.drawing etc) which it wasnt doing before, can I suppress this because it is slowing deployment\debugging time.
[667 byte] By [JonathanSokanovic] at [2007-12-16]
# 1
You should make sure you add reference to Compact Framework's System.Xml.dll not the .NET Framework System.Xml.dll

Applications that incorrectly reference desktop assemblies are the most popular causes of TypeLoadExceptions at run time.
See the blog post below.
http://blogs.msdn.com/jehance/archive/2004/07/06/174387.aspx

MarkIhimoyan at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
Hey Mark
Great suggestion, and of course it worked, thanks I might be able to get this project completed on time now

Thanks
Jon

JonathanSokanovic at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...