• LOOKUP_BI-756009 (1/11/2010)


    Im having trouble getting Console.Writeline() to work in Script Task [VB.Net].Visual Studio 2008

    There is no pop up of Console window showing up.

    Here is just a simple code Im trying with, and I have added the "C:\WINDOWS\Microsoft.NET\Framework\v3.5" to Path variable in Environment Var and ensured vbc.exe exist in this folder.

    Public Sub Main()

    Dim str As String

    str = "Testing Testing"

    Console.WriteLine(str)

    Console.ReadLine()

    'Added msg box just for testing, and this works fine !

    MessageBox.Show(str)

    End Sub

    I need to get this working so I can test the real code that Im working on......:pinch:

    This is not the correct approach. If you want to trace and debug your package, you can use the standard SSIS facilities and objects for logging and events. For example to generate an event with test information use the following code:

    Dim fa As Boolean

    Call Dts.Events.FireInformation(0, "My Script", "Your Test Message", String.Empty, 0, fa)

    ---
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/