mrlifeguard has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm a first time poster, long time reader. I have a problem connecting to other stations on my lan network. I am trying to view a reg value from these stations. I am using ActivePerl and installed Win32::Tieregistry using PPM. When I try to connect to another station, it keeps on giving me errors or it simply cannot connect. I have no idea what the problem is and I have tried everything. I often get an error saying something about conflict with an existing I/O operation. Here is my script for the remote registry connection:
use Win32::TieRegistry( Delimiter=>"/"); $machine="A"; $path='LMachine/AA/BB/CC/'; $remote_key = $Registry->Connect($machine, $path, {Access=> KEY_READ}) +or die "Can't read $root_key "; $remoteData= $remote_key->{"/value"} or die "Can't read ServerA's value";
After running it, it only displays the "Can't read $root_key" Is it because I'm using a WINXP machine to connect to a Vista machine? Also, do I have to worry about username/password for the station I want to connect to? Please help me out! Thanks! CJ

Replies are listed 'Best First'.
Re: Win32::TieRegistry: Remote connect problems
by BrowserUk (Patriarch) on Mar 13, 2008 at 16:26 UTC
    I often get an error saying something about conflict with an existing I/O operation.

    Where are you seeing that message? When, (ie. after which operation in your code) is it displayed? What is the exact text of the message?

    Print the error messages (using $! and/or $^E (I find the latter most useful under win32), as a part of your die messages:

    ... or die "...: $! [$^E]";

    Then you'll be able to tell us what the error actual message is, and we stand a chance of helping you. The likely problem is that you don't have the appropriate permissions, or you've supplied a bad machine name (Do you really have a machine named "A"?), but the exact text of the message would identify the cause.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Hi, This is the error message: "Overlapped I/O operation is in progress". This happens when i try to connect to the remote machine. The machine name is correct, as well as the path.
        Check the event log of the receiving machine.

        If you see "Event 36; ...the configured identity is incorrect...", you may have a conflict in the passwords which are supposed to be shared by IIS, DCOM and MTS, but got out of sync.

        More info on this in MS KB article 297989.

             "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom