For Each warning In warnings Console.WriteLine(warning.Message) Next warning Else Console.WriteLine("Report: {0} uploaded successfully to {1} with no warnings", REPORTNAME, REPORTSERVER_FOLDER) End If Catch e As Exception Console.WriteLine(e.Message) End Try End Sub