Re: How to call an SSIS package from ASP.NET 2.0?



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.



.



Relevant Pages

  • RE: Disabling VB generated error message inUnhandledException even
    ... winform project, I am assuming that you are using .Net Winform. ... called by a pre-registered Application.ThreadException handler of VB2005. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: strange security role issue
    ... As for the CreateUserWizard, I think you can consider using the following ... For the security trimming, based on my experience, such navigation/access ... Microsoft MSDN Online Support Lead ... from the community or a Microsoft Support ...
    (microsoft.public.vsnet.general)
  • RE: ActiveDirectory and user page Access
    ... I think your question is how to implement role based security in ASP.NET ... Microsoft Online Community Support ... feel free to let my manager know what you think of the level of service ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.vsnet.general)
  • RE: ActiveDirectory and user page Access
    ... I think your question is how to implement role based security in ASP.NET ... Microsoft Online Community Support ... feel free to let my manager know what you think of the level of service ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.vsnet.general)
  • RE: Error 0x80041001 retrieving some WMI data in Windows 2003 SP1
    ... Based on your detailed test information, I agree it should be a security ... changed the SCM's (Service Control Manager) default security settings. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.wmi)

Loading