我有以下代码:
string filePath1 = Server.MapPath(System.IO.Path.GetFileName(FileUpload.PostedFile.FileName.ToString()));
FileUpload.PostedFile.SaveAs(filePath1);
package = app.LoadPackage(@"C:\inetpub\wwwroot\UploadApplication\UploadedCSVFiles\Package1.dtsx", null);
Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();
当我执行包时,我一直失败。我该如何解决这个问题?提前致谢!