Import statements fail in Studio 2008 but not in Studio 2005I am a DBA who is learning vb.net and Studio.  <br/><br/>I have an SSIS script task (vb.net) which works in SSIS 2005 but not in SSIS 2008. SS2005 is installed on my desktop, and SS 2008 tools are installed along side it. I believe that all the dll's implied by the Import statements have to be in the c:\Windows\Assembly directory in order for them to be found by the .Net run-time and they appear to be there.  But I am not really certain of the reasons. Versions 10 and 9 are in the directory.<br/><br/>Example:<br/><br/><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"> <p>Imports</p> </font></span> <p><span style="font-size:x-small"> Microsoft.SqlServer.SqlEnum<br/></span><br/>Warning 1 Namespace or type specified in the Imports 'Microsoft.SqlServer.SqlEnum' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Documents and Settings\mine\Local Settings\Temp\SSIS\1e1cce68c3dc4155b081649a9d299728\ScriptMain.vb 9 9 scripttask_729e731450b54855913556e611e5b918<br/><br/><br/>I added the dll's as Resources to the Project and the errors persist.  I don't know what else to do.  I posted this on the sql server SSIS forum but no one there has ventured a response so I thought this forum might attract more knowledgeable developers.<br/><br/>Thanks, <br/><br/>Michael</p>© 2009 Microsoft Corporation. All rights reserved.Fri, 26 Jun 2009 11:56:32 Z237f9b05-4736-49b5-b12f-33a9674d0d77http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/237f9b05-4736-49b5-b12f-33a9674d0d77#237f9b05-4736-49b5-b12f-33a9674d0d77http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/237f9b05-4736-49b5-b12f-33a9674d0d77#237f9b05-4736-49b5-b12f-33a9674d0d77SillyMShttp://social.msdn.microsoft.com/Profile/en-US/?user=SillyMSImport statements fail in Studio 2008 but not in Studio 2005I am a DBA who is learning vb.net and Studio.  <br/><br/>I have an SSIS script task (vb.net) which works in SSIS 2005 but not in SSIS 2008. SS2005 is installed on my desktop, and SS 2008 tools are installed along side it. I believe that all the dll's implied by the Import statements have to be in the c:\Windows\Assembly directory in order for them to be found by the .Net run-time and they appear to be there.  But I am not really certain of the reasons. Versions 10 and 9 are in the directory.<br/><br/>Example:<br/><br/><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"> <p>Imports</p> </font></span> <p><span style="font-size:x-small"> Microsoft.SqlServer.SqlEnum<br/></span><br/>Warning 1 Namespace or type specified in the Imports 'Microsoft.SqlServer.SqlEnum' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Documents and Settings\mine\Local Settings\Temp\SSIS\1e1cce68c3dc4155b081649a9d299728\ScriptMain.vb 9 9 scripttask_729e731450b54855913556e611e5b918<br/><br/><br/>I added the dll's as Resources to the Project and the errors persist.  I don't know what else to do.  I posted this on the sql server SSIS forum but no one there has ventured a response so I thought this forum might attract more knowledgeable developers.<br/><br/>Thanks, <br/><br/>Michael</p>Mon, 22 Jun 2009 15:53:36 Z2009-06-22T15:53:36Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/237f9b05-4736-49b5-b12f-33a9674d0d77#9a0bbe2d-390d-44cc-b79b-c725679790fdhttp://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/237f9b05-4736-49b5-b12f-33a9674d0d77#9a0bbe2d-390d-44cc-b79b-c725679790fdKarel Zikmundhttp://social.msdn.microsoft.com/Profile/en-US/?user=Karel%20ZikmundImport statements fail in Studio 2008 but not in Studio 2005<p>Why do you need to import SqlEnum namespace? Which type would you like to use from it?<br/>I cannot find any documentation for this namespace on internet, so I guess it really doesn't have any public members (<em>as the warning says</em>). Therefore there is nothing you can use from it and you should not import it. If you just need to use some other type from different namespace in Microsoft.SqlServer.SqlEnum.dll, then you don't need to add it into Imports. You just need to add that DLL into your project references.<br/><br/>Did you try just delete that import line?<br/>Also note that this is just warning, it is not an error, so you should be fine with 'just' ignoring the warning.<br/><br/>BTW: This question seems to be VB.NET question as there is nothing SSIS specific - please use <a href="http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads">VB.NET forums</a> for similar questions. This forum is dedicated for building tools for .NET developers like profilers, debuggers, compilers, etc. (see <a href="http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/ecdc27b9-6fd8-4485-b0d2-ce3929604b36">sticky post</a> of <a href="http://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/threads">this forum</a>).<br/><br/>-Karel</p>Mon, 22 Jun 2009 16:54:38 Z2009-06-22T16:54:38Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/237f9b05-4736-49b5-b12f-33a9674d0d77#7470caf7-9ff5-4c9a-9b67-78eea211919bhttp://social.msdn.microsoft.com/Forums/en-US/netfxtoolsdev/thread/237f9b05-4736-49b5-b12f-33a9674d0d77#7470caf7-9ff5-4c9a-9b67-78eea211919bSillyMShttp://social.msdn.microsoft.com/Profile/en-US/?user=SillyMSImport statements fail in Studio 2008 but not in Studio 2005Sorry to have bothered you.Mon, 22 Jun 2009 19:17:24 Z2009-06-22T19:17:24Z