in reply to eval "use Module::Name" silently dies under MS IIS/PerlIs.dll

Does the identity of the application pool on the failing site have permissions on the perl library directories and files? Maybe it is failing because it can't read the .pm files.

  • Comment on Re: eval "use Module::Name" silently dies under MS IIS/PerlIs.dll

Replies are listed 'Best First'.
Re^2: eval "use Module::Name" silently dies under MS IIS/PerlIs.dll
by Jenda (Abbot) on Nov 17, 2008 at 21:23 UTC

    Ah, I did not notice the application pools have their own identities, I only checked the account set for the anonymous access to the website (website properties / Directory Security / Authentication and access control.

    In either case both websites and application pools use the same identities in both places. IUSR_... for the website and "Network Service" for the app pool :-(

      You might write a script that does not use any modules but displays @INC, to make sure it is looking for modules where you think it is, and read a .pm file (open it directly, don't use it) to make sure there is no access problem on the file.

      In addition to the obvious settings in the IIS admin GUI, there may be differences in the metabase. You can review this as an XML file (assuming a reasonably recent version of IIS). It might be worth having a look there to see if anything differs between the sites.

        I already looked at the @INC, it looks the same one both sites. I will try to read the .pm and look at the metabase tomorrow and post an update here. Thanks everyone!