dbTalk Databases Forums  

execute dts, asp.net login failed

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


Discuss execute dts, asp.net login failed in the microsoft.public.sqlserver.dts forum.



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

Default execute dts, asp.net login failed - 03-05-2004 , 03:06 PM






Hallo,
i am having a problem to execute dts from asp.net page. The c# code
are similar as descriped in the cookbook from http://sqldev.net:
DTS.Package2Class pkg = new DTS.Package2Class();
object pVarPersistStgOfHost = null;
pkg.LoadFromSQLServer("(local)", null,
null,DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_Us eTrustedConnection,
null, null,null, "TestDTS",ref pVarPersistStgOfHost);
pkg.Execute();

i have turned off the annoy access in IIS and also changed the
identity in web.config: <identity impersonate="true"
userName="domain\myname" password="passwd"/>

But I got the exception:
Login failed for user 'machinename\ASPNET'

Could anyone tell me how to solve the problem?

Thank you in advance

jani

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.