Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: 65280 returned on system ( )

by rhymejerky (Beadle)
on Jun 07, 2006 at 18:45 UTC ( #554116=note: print w/replies, xml ) Need Help??

in reply to Re: 65280 returned on system ( )
in thread 65280 returned on system ( )

I put the statement if (-e "file.vbs") in the script to check for the file existence and the script didn't complain about not finding it. I even tried to call the vbs directly from a web browser (http://localhost/file.vbs) and the browser prompt me to open or save that file, so I think it is finding the vbs file.

Replies are listed 'Best First'.
Re^3: 65280 returned on system ( )
by BrowserUk (Pope) on Jun 07, 2006 at 18:56 UTC

    Being able to see the file is not the same as having permission to be able to execute it, or to call all the system APIs that it calls.

    To verify if this is a permissions problem, log onto the machine as the IIS user id (usually IUSR_<servername>), and then try running the vbs script from the command line.

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: 65280 returned on system ( )
by girarde (Hermit) on Jun 07, 2006 at 18:56 UTC
    That doesn't mean that IWAM_YOUR-COMPUTER-GOES-HERE can execute the vbs. Check 'script' permission in IIS manager.
      Thanks!! You guy pointed me to the right direction. I checked the IIS config and the web pages were under the IUSR_<host> context. Apparently, this user's has all kinds of limitation. I tried to configure those web pages to run under my context and all worked.
      If that files is opened remotely or being executed by any other program is also leads to get this error....

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://554116]
[Corion]: Test...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-06-23 16:38 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.