Impersonation

Discussion in 'ASP .Net' started by =?Utf-8?B?cw==?=, Nov 30, 2003.

  1. Hi,
    I have 2 computers (hostname1, hostname2 for which I have the administrator login)
    I have a test.bat file which contains the command:
    netsvc Browser \\hostname2 /query.
    This test.bat file works fine when I run it manually by double-clicking it from my computer(hostname1).
    But when I run this command from my ASP .NET application, I get an error: could not open service manager
    So I used Impersonation in my web.config file to impersonate the user.
    <identity impersonate="true" userName="hostname2\user" password="password" />
    But then neither I get the error nor anything happens.
    Why is this happening..?
    What should I be doing to make this command work from my computer to the other computer?
    Thanks,
     
    =?Utf-8?B?cw==?=, Nov 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kelly D. Jones

    Problem with impersonation and delegation

    Kelly D. Jones, Sep 4, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,834
  2. Pramod

    Impersonation code

    Pramod, May 12, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,673
  3. Raymond Basque

    Re: ASP.NET Fails after SP4 with Impersonation

    Raymond Basque, Jun 27, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    539
  4. Bassel Tabbara [MSFT]

    RE: ASP.NET Fails after SP4 with Impersonation

    Bassel Tabbara [MSFT], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    517
    Michael Kennedy [UB]
    Jun 28, 2003
  5. Hidulf
    Replies:
    1
    Views:
    463
    Michael Kennedy [UB]
    Jun 30, 2003
Loading...

Share This Page