As discovered when trying to create a custom transformation for this question (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=899895&SiteID=1&mode=1) I tried creating an object of type DataTable and I get this error
dim myTable as DataTable
Reference required to assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the implemented interface 'System.Xml.Serialization.IXmlSerializable'. Add one to your project. dts://Scripts/ScriptComponent_3851bc3613714d2d904d79bc006234f9/ScriptMain 19 24 ScriptComponent_3851bc3613714d2d904d79bc006234f9
Even if I add "Imports System.XML" I get the same error. Isn't DataTable part of System.Data (which is imported by default in Script Components)? Everyone else get the same behavior?
Chris,
The Imports directive brings namespaces from referenced assemblies. please see the link below for more details:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vastmimports.asp
You need to add a reference to System.Xml.dll through the project pane in order to be able to use any types from System.Xml namespace.
|||Thanks that works!... so even though its listed as part of System.Data it uses something from System.Xml?
No comments:
Post a Comment