Hi,
I am executing my SSIS package in VB.net. In my local machine when i execute the code it works fine and when i deployed into my server, it fails sometime....Mostly its executing but sometimes it says Package execution failed.
Here is my piece of code......... Can anyone tell me what went wrong here.....
Dim pkg As Microsoft.SqlServer.Dts.Runtime.Package
pkg = Nothing
Dim pth As String = ConfigurationSettings.AppSettings("SSISPackagePath")
Dim app As Microsoft.SqlServer.Dts.Runtime.Application
app = New Microsoft.SqlServer.Dts.Runtime.Application()
pkg = app.LoadPackage(pth, Nothing)
pkg.Variables("projectCode").Value = Projectcode
Dim strConfigPath As String = pkg.Configurations.Item(0).ConfigurationString()
Dim FileExists As IO.File
If FileExists.Exists(strConfigPath) Then
pkg.Execute()
pkg.Dispose()
pkg = Nothing
app = Nothing