Maybe someone can help me. I am running sql server 2000 and am using a dts package. The package runs fine on sql server. When I access it using asp.net I get the following error:----------------The execution of the following DTS Package succeeded: Package Name: MapsImportPackage Description: Import Excel to Maps tablePackage ID: {C56FF415-CD35-461E-98E4-BB2430163413}Package Version: {30415D05-B121-4C4B-991C-43496EA47090}Package Execution Lineage: {EAF14EB3-F6C1-4D9B-A4B9-46E31AF4B608}Executed On: NS23Executed By: ASPNETExecution Started: 6/7/2006 3:33:12 PMExecution Completed: 6/7/2006 3:33:17 PMTotal Execution Time: 5.11 secondsPackage Steps execution information:Step 'Copy Data from Sheet1$' to [dbname].[dbo].[Maps] Step' failedStep Error Source: Microsoft JET Database EngineStep Error Description:Failure creating file.Step Error code: 80004005Step Error Help File:Step Error Help Context ID:5003436Step Execution Started: 6/7/2006 3:33:12 PMStep Execution Completed: 6/7/2006 3:33:17 PMTotal Step Execution Time: 5.015 secondsProgress count in Step: 0----------I searched through several forums and found that this seems to be a permissions problem. I set the IIS process to Low, I also added the <identity impersonate="true" /> tag to my web.config file. After adding the tag I get a new error message:----------No Steps have been defined for the transformation Package. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: No Steps have been defined for the transformation Package.------------------I am at a stand-still trying to get any further. Can anyone teel me what else I might be able to try to resolve this problem?Here is my code for executing the package:Sub Page_Load(Src As Object, E As EventArgs)Dim cnnstring as String="Data Source=NS32;Initial Catalog=dbname;Pooling=False;Min Pool Size=100;Max Pool Size=200;User ID=userid;Password=password"Dim cnn as SqlConnectionDim cmd as SqlCommandDim rs as SqlDataReaderDim sql as String="Truncate Table Maps"'Empty Equipment Contract Pricing tablecnn=New SqlConnection(cnnstring)cnn.Open()cmd=New SqlCommand(sql, cnn)sql="DELETE FROM Maps WHERE Name IS NULL"cmd=New SqlCommand(sql, cnn)rs=cmd.ExecuteReader()'check to see if table is empty If rs.HasRows ThenResponse.Write("<p><b>Failed to empty table.</b></p>")ElseResponse.Write("<p><b>Table successfully emptied.</b><br><br>Importing Data...<br>Please wait...</p>")End If'declare variables for DTSDim objDTSPackage, objDTSStep, strResult, blnSuccessConst DTSSQLStgFlag_Default = 0Const DTSStepExecResult_Failure = 1'Use stored procedure on sql server to import dataobjDTSPackage = Server.CreateObject("DTS.Package")blnSuccess = True'Load package from sql serverobjDTSPackage.LoadFromSQLServer ("NS32", "user", "pass", DTSSQLStgFlag_Default, "pass", "", "", "MapsImport")'Explanation: LoadFromSQLServer ("ServerName", "Username", "Password", "Flags", "PackagePassword", "PackageGUID", "PackageVersionGUID", "Package Name", "PersistsHost")objDTSPackage.Execute'walk through steps and check for errorsFor Each objDTSStep in objDTSPackage.StepsIf objDTSStep.ExecutionResult = DTSStepExecResult_Failure ThenstrResult = strResult & "Package " & objDTSStep.Name & " failed.<br><br>"blnSuccess = FalseElsestrResult = strResult & "Package " & objDTSStep.Name & " succeeded.<br><br>"End IfNext'display success or failure messageIf blnSuccess ThenResponse.Write ("<p><b>Package Succeeded.</b></p>")ElseResponse.Write ("<p><b>Package Failed.</b></p>")End IfResponse.Write ("<p>"& strResult &"</p>")rs.Closecnn.Close'Response.Redirect("list.aspx")End Sub
The code fails on the line where it says:objDTSPackage.ExecuteNote: I changed the user and password fields for the post.My scripts are running off a different server than where sql server is located. Could this have something to do with it? I am pretty sure this is some sort of permissions problem, but I dont know what it is. Any ideas?Thanks in advance!-Mike