Hey Lyle,

Thanks for the heads up, at least I'm now aware of potential issues for file 
handling, though I usually wrap it in a Perl module for authentication and 
deliver them that way, though I believe Catalyst has built in functionality for 
this.

Still a lot to get my head round for sure.

Regards,

Craig.

-----Original Message-----
From: Lyle [mailto:[email protected]]
Sent: 23 October 2012 12:05
To: [email protected]
Subject: Re: [Catalyst] Canot get application working on IIS7 via FastCGI

On 23/10/2012 11:37, Craig Chant wrote:
> Bingo - You are a genius Tom!
>
> Thank you so, so much, I would never have found that switch buried in the 
> documentation for a long, long time!

As this is standard behaviour for IIS, Catalyst really should be setting this 
by default when it's running under IIS. I didn't realise Catalyst had missed 
this, otherwise I probably could have answered the op's question from the start.

if ( $ENV{'SERVER_SOFTWARE'} =~ /IIS/ ) {
   ...
}

IIS also doesn't have the pwd as the folder where the script is running.
So you usually need to do:

use FindBin qw ($RealBin $RealScript);
use lib $FindBin::RealBin;
chdir $RealBin;

Otherwise you get issues when people try to open files with a relative path.


Lyle


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
This Email and any attachments contain confidential information and is intended 
solely for the individual to whom it is addressed. If this Email has been 
misdirected, please notify the author as soon as possible. If you are not the 
intended recipient you must not disclose, distribute, copy, print or rely on 
any of the information contained, and all copies must be deleted immediately. 
Whilst we take reasonable steps to try to identify any software viruses, any 
attachments to this e-mail may nevertheless contain viruses, which our 
anti-virus software has failed to identify. You should therefore carry out your 
own anti-virus checks before opening any documents. HomeLoan Partnership will 
not accept any liability for damage caused by computer viruses emanating from 
any attachment or other document supplied with this e-mail. HomeLoan 
Partnership reserves the right to monitor and archive all e-mail communications 
through its network. No representative or employee of HomeLoan Partnership has 
the authority to enter into any contract on behalf of HomeLoan Partnership by 
email. HomeLoan Partnership is a trading name of H L Partnership Limited, 
registered in England and Wales with Registration Number 5011722. Registered 
office: 26-34 Old Street, London, EC1V 9QQ. H L Partnership Limited is 
authorised and regulated by the Financial Services Authority.

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to