Geoprocessing Error VB.NET

Discussion created by bxe6736 on Jan 11, 2011
Latest reply on Jan 21, 2011 by bxe6736
I am fairly new to the VB.NET world.  I am getting an error when I try to call a model via VB.NET code.  Below is the code that I am using:

            Dim GP As Geoprocessor = New Geoprocessor()

            GP.AddToolbox("C:\Documents and Settings\bxe6736\Application Data\ESRI\ArcToolbox\My Toolboxes\Centerline(Local).tbx")
            GP.Execute("Centerline", Nothing, Nothing)

        Catch ex As Exception
            MsgBox(ex.Message, MsgBoxStyle.OkOnly, "")
        End Try

It falls into the error on the gp.execute command.  I have attached the error that I am getting.  I have checked the folder that I am writing the data to and it doesn't seem to be a permissions problem.