True or false:
In Windows 2000, the user account that runs IIS (typically ASPNET) *must* be allowed to "Act as part of the operating system" in order for impersonation to work?
Is that also (true or false) for if you want to do code-level/programmatic impersonation within a specific block of code running under IIS?
User Profile
Collapse
Profile Sidebar
Collapse
tvaughan77
Last Activity: Jun 11 '12, 02:11 PM
Joined: Jan 3 '08
Location:
-
IIS/.NET impersonation: site level vs. programmatic
-
Yep; exactly the same method used in both cases.
...Code:public string GetReviewTaskOwner(int taskid) { // // FIXME remove this ps.exe debugging call: // string testcommand = "C:\\cygwin\\bin\\ps.exe"; string testoutput = clUtils.[B]ExecIwovCLT[/B](testcommand, ""); log.Debug("The testoutput -
Yep, in my logs, I echo exactly what I'm trying to run:
So if I copy and paste the command onto a DOS prompt on that server, I get the expected output (about 20 lines of XML).Code:Executing command: 'C:\Interwoven\TeamSite\bin\iwgetwfobj.exe 123' I read this from our process: 2008-01-04 11:08:18,583 DEBUG The process exit code is: '1'
Weird, huh?
To make things more weird,...Leave a comment:
-
The line:
is appending Stdout and Stderr lines to a StringBuffer class member variable.Code:processStdOutput.Append(outLine.Data + Environment.NewLine);
I know that part works (i.e. that I can actually read stuff from a command line handle) because when I run this in my IDE and I try executing the DOS command "date" (for example), I can read the process' output and I echo the correct time.
When I...Leave a comment:
-
Hi,
Did you ever figure this out? I'm having essentially the same problem and I'm wondering if you ever found a solution...
TIA,
Tom...Leave a comment:
-
C#/IIS : Command line ouput can't be read when running under IIS
Hi,
I have some code that I want to use to run a command line utility and I want to be able to run it from an aspx page running under IIS. The command line utility is a local utility running on the same box as my IIS server, and the code works in Visual Studio, just not under IIS. Any suggestions?
The logs are totally silent on the issue. On line 36 (below), the log says:
"I read this from our process:"...
No activity results to display
Show More
Leave a comment: