PreExecute Settings

473 views
Skip to first unread message

Zoetrope

unread,
Mar 27, 2012, 12:08:51 PM3/27/12
to RedDot CMS Users
For the first time I am trying to use Server Side Scripts in OpenText.
I created some test pages that have ASP scripts in their navigation
templates. I am using just a simple test ASP statement in the
navigation template to make sure it's not a syntax issue.

The beginning of my code reads

<!--RDExecute=ASP-->

<!IoRangePreExecute><% response.write("Hello World!") %><!/
IoRangePreExecute>
<br />

This code is supposed to write Hello World! at the top of my
navigation bar on the left of the page in all rendering modes (edit,
preview and published).

I have a problem when trying to use the PreExecute block for server
side scripts (in this case, ASP) in the CMS. I am pretty sure I have
the code and the settings right on my project but every time I try to
load the page with asp in the CMS I get the error message:

An error occured:

Access to the path '\\xxxx.xx.xxx.xxx.xxx\cms\PreexecuteData\' is
denied.

The page cannot be displayed.

Check the RDExecute and PreExecute settings.

I know that every time a PreExecute block is rendered in the CMS, a
temp page is created in a folder in the CMS server. It seems that
there is a permission problem there (?). I have never changed that
physical path.

Thanks!

Richard Hauer

unread,
Mar 27, 2012, 8:34:21 PM3/27/12
to reddot-c...@googlegroups.com
Seems obvious but have you checked that the account running your application
pool can write to the folder mentioned in the error message?

HTH.

RichardH.

<!--RDExecute=ASP-->

An error occured:

Thanks!

--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to
reddot-cms-use...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.

Tony Gayter

unread,
Mar 28, 2012, 1:41:23 AM3/28/12
to reddot-c...@googlegroups.com
Is that the code in teh actual nav template? I seem to remember it doesnt like pre-execute blocks in nav templates, you should move the blocks and the rdexecute up a level into your master template so it looks like

<!--RDExecute=ASP-->

<!IoRangePreExecute>
<%!! Navigation area with the code in it !!%>
<!/ IoRangePreExecute>
<br />


I am only going by memory so it might not fix it, ill have to wait to get back to work to see if that is how we have done it

Richard Hauer

unread,
Mar 28, 2012, 1:52:24 AM3/28/12
to reddot-c...@googlegroups.com

Quite right Tony – navigation templates are not normal CMS templates and I don’t think you can process RD or Pre execute in them, but you can maybe emit pre-execute blocks out of them to be executed in-place in the template they finally land in.  Just be careful that what you’re emitting will make sense once it has been duplicated out by the expansion of the nav tag.  That seems like it might work.  I can’t remember if the nav placeholders get expanded before or after the regular CMS template processing… anyone have any concrete information on the page processing life cycle in RDCMS to this level of detail?

 

I can maybe figure it out if it’s called for.

 

HTH.

 

Regards,

Richard Hauer

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

5 Limes Pty Limited

www.5Limes.com.au

Reply all
Reply to author
Forward
0 new messages