Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Running SSIS from ASP.NET

Author  Topic 

seeriuss
Starting Member

1 Post

Posted - 2009-01-06 : 13:56:45
I'm running an SSIS package from asp.net, and I get the error "The LoadFromSQLServer method has encountered OLE DB error code 0x80004005 (Login timeout expired)."

I can run the package from BIDS and locally on the server. Those aren't a problem. It's just when I run it from .NET that it gets this error. As background, the web server is on the same machine with SSIS. I am using a local admin account to connect. Here's a small code sample:


Microsoft.SqlServer.Dts.Runtime.Application app = new Microsoft.SqlServer.Dts.Runtime.Application();
Microsoft.SqlServer.Dts.Runtime.Package pkg = app.LoadFromSqlServer(
"\\" + packageName,
LPS.Net.Utilities.GetKeyValue("SSIS"),
ConfigurationManager.AppSettings["Username"].ToString(),
ConfigurationManager.AppSettings["Password"].ToString(),
null);

/* LOAD CONFIG FILE */
pkg.ImportConfigurationFile(Server.MapPath(".") + "\\ssis\\" + packageName + ".dtsConfig");
Microsoft.SqlServer.Dts.Runtime.Variables vars = pkg.Variables;
vars["ImportID"].Value = importID;
vars["Filename"].Value = fileName;

Microsoft.SqlServer.Dts.Runtime.DTSExecResult result = pkg.Execute();



tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-06 : 13:59:34
What is the login timeout value set to? Can you increase it?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -