dbTalk Databases Forums  

Error when invoking DTS package from ASP.net

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Error when invoking DTS package from ASP.net in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
William Pierce
 
Posts: n/a

Default Error when invoking DTS package from ASP.net - 08-26-2004 , 04:31 PM






I have the following setup:

a) IIS, Sql Server 2000 all running on my laptop (WinXP). I am running
..net 1.1.

b) I have a DTS package. I can execute the DTS package directly from within
the Enterprise Manager. It works correctly.

c) I have an ASP.net application which attempts to load and execute the
package. I get the following error message:

"Exception Details: System.Runtime.InteropServices.COMException:
Invalid authorization specification"

and it appears to be objecting to my attempt to load the package. The line
that I am using for loading the package is as follows:

p.LoadFromSQLServer("localhost", "", "",
DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, null, null,
null,"Gard2SDFPackage", ref pVarPersistStgOfHost);

Where p is the package that I have defined.

I use windows authentication for my SQL Server.

Anyone see anything obviously wrong with what I am doing, or my setup?

Thanks,
William



Reply With Quote
  #2  
Old   
William Pierce
 
Posts: n/a

Default Re: Error when invoking DTS package from ASP.net - 08-26-2004 , 05:54 PM






All,

I found out the problem. In the statement where I was loading the package,
I needed to use the "Trusted connection" flag instead of the default one.

-- William

"William Pierce" <evalsinca (AT) hotmail (DOT) com> wrote

Quote:
I have the following setup:

a) IIS, Sql Server 2000 all running on my laptop (WinXP). I am running
.net 1.1.

b) I have a DTS package. I can execute the DTS package directly from
within
the Enterprise Manager. It works correctly.

c) I have an ASP.net application which attempts to load and execute the
package. I get the following error message:

"Exception Details:
System.Runtime.InteropServices.COMException:
Invalid authorization specification"

and it appears to be objecting to my attempt to load the package. The
line
that I am using for loading the package is as follows:

p.LoadFromSQLServer("localhost", "", "",
DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, null, null,
null,"Gard2SDFPackage", ref pVarPersistStgOfHost);

Where p is the package that I have defined.

I use windows authentication for my SQL Server.

Anyone see anything obviously wrong with what I am doing, or my setup?

Thanks,
William





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.