RE: Diagnostics.Process.Start as another user from ASP.NET 2.0

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



That's funny! I was unsuccessful in getting similar code like the post you
provided to work with ASP.NET 1.1 and then I saw references to the
username/password in 2.0 and so I upgraded my code.

Oh well, perhaps I can get the pinvoke unmanaged stuff to work this time
around knowing there is no other way.

Thanks for setting me back on the right path Steven.

"Steven Cheng[MSFT]" wrote:

Hi Noremac,

For the Process.Start with a specific user, there exists some problem when
executing in ASP.NET application context as I've also met some former
issues discussing on this problem. Currently, the recommended means for
launch a process running under a specific user account is to call unmanaged
API through Pinvoke. Here is a former thread you can reference:

#Run app as specified user from ASP.NET 2.0 Options
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/brow
se_thread/thread/51584884d09edfa5/bbfcbd72a6957085

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: Error creating COM component
    ... from the References node ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Frustrating Build Error...
    ... Your statement about the project references is correct. ... All of the related assemblies exist in the web service project's bin ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • RE: VS2008 No Such Interface Supported???
    ... installation issue or a VSTO migration problem. ... Verify the references one by one to see ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.ide)
  • RE: An error occurred while validating, setup project.
    ... A quick fix can be applied by remove and re-adding all project references ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.vsnet.general)
  • Re: Error creating COM component
    ... from the References node ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)