User Profile

Collapse

Profile Sidebar

Collapse
tvaughan77
tvaughan77
Last Activity: Jun 11 '12, 02:11 PM
Joined: Jan 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • IIS/.NET impersonation: site level vs. programmatic

    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?
    See more | Go to post

  • 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
    ...
    See more | Go to post

    Leave a comment:


  • Yep, in my logs, I echo exactly what I'm trying to run:
    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'
    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).

    Weird, huh?

    To make things more weird,...
    See more | Go to post

    Leave a comment:


  • The line:
    Code:
    processStdOutput.Append(outLine.Data + Environment.NewLine);
    is appending Stdout and Stderr lines to a StringBuffer class member variable.

    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...
    See more | Go to post

    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...
    See more | Go to post

    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:"...
    See more | Go to post
No activity results to display
Show More
Working...