I have Management Server 11.2.2.948 running in 2 different environments 
(prod & dev) (win 2008 r2)


A very basic test project with the below settings was created:

  - in Project > General settings, "Allow active templates" is checked and 
"Eligible suffixes" is set to  "asp;aspx" 

  - in Project Variant settings > "Select scripting for active templates" 
is selected as "aspx"



I have a page with the below pre-execute settings & template in our 
production env (management server 11.2, basic project, 1 tempate)  that 
 does *NOT* throw a server 500 error (and displays the non active parts of 
the template content) when previewed (screenshot 2).

 

The same page in our development env, same settings, will show a  500 
server error on preview - which is the expected behavior. 

 

Everything else (cms /project settings) being the same, I’m not able to 
figure out what causes the production page to ignore the pre-execute error 
and print out the rest of the content in preview. There could be some IIS 
settings that are different in dev & prod. 

 

Wondering if you have any idea why’s this happening? 

 

Thanks, Boby

 

Screenshot 1 – scripting language setting in project variant

================================

 

 

Template code

==============

<p> Before pre-execute block <p>

<!IoRangePreExecute>     

<% Response.write(UBound(myArray)) %>

<!/IoRangePreExecute>

<p> After pre-execute block <p>

 

 

Screenshot 2 - Preview in production 

*=========================*

  

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at https://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to