Re: How to call an SSIS package from ASP.NET 2.0?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Fri, 08 Jun 2007 06:13:55 GMT
Hi Michael,
For such problem, the code works correctly in a winform application but
fails in ASP.NET application, we would first check the security context of
the running code. Winform application is quite different from ASP.NET
application one this. For winform application, it by default runs under the
current logon user's account. However, ASP.NET application will run under
IIS worker process identity by default( IIS5 use machine\ASPNET account
while IIS6 use Network Service account).
I suggest you check the ASP.NET application's running security identity
first, if it is running under default security identity, you can try
configure it to running under the certain user account(such as the
interactive user your winform run as ):
#Configuring ASP.NET Process Identity
http://msdn2.microsoft.com/en-us/library/dwc1xthy.aspx
Also, another means to configure ASP.NET application run under a specify
account is using impersonate, you can refer to the following article:
#How To: Use Impersonation and Delegation in ASP.NET 2.0
http://msdn2.microsoft.com/en-us/library/ms998351.aspx
BTW, you can use the following code to print out the current security
identity in ASP.NET code:
Response.Write("<br/>identity: " +
System.Security.Principal.WindowsIdentity.GetCurrent().Name);
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- Re: How to call an SSIS package from ASP.NET 2.0?
- From: Alexey Smirnov
- Re: How to call an SSIS package from ASP.NET 2.0?
- Prev by Date: Re: Input Type File Multiple
- Next by Date: Re: Does the post work today
- Previous by thread: Re: How to call an SSIS package from ASP.NET 2.0?
- Next by thread: Do you use IIS or WebDev for development server?
- Index(es):
Relevant Pages
|
Loading