I've inherited a SSIS 2005 task that I've moved into SSIS 2008. In the task besides the ScriptMain.vb there is a Reference.vb. The reference.vb was modified to the following:
Me.Url = dts.Variables("ListUrl").Value.ToString() 'Global.LotNumberExtract.My.MySettings.Default.LotNumberExtract_wsLotNumbers_Lists
It is part of the following:
Public Sub New() MyBase.New() Me.Url = dts.Variables("ListUrl").Value.ToString() 'Global.LotNumberExtract.My.MySettings.Default.LotNumberExtract_wsLotNumbers_Lists If (Me.IsLocalFileSystemWebService(Me.Url) = True) Then Me.UseDefaultCredentials = True Me.useDefaultCredentialsSetExplicitly = False Else Me.useDefaultCredentialsSetExplicitly = True End If End Sub
Since the DTS object is not a static global object like in SSIS 2005, it is throwing the "Name 'dts' is not declared" error.
How can I correct this so it works?