gmarkwood
Posts: 10
|
| Posted: 02/17/2007, 9:31 AM |
|
Hello,
I have looked over this forum for an answer to this issue, there are several references to this problem, but no one answered the issue! 
I have been trying to separate my template.html files from the folder that the .asp pages are placed in. We are going to have a graphic designer work the templates, as the .asp coders work the.asp page.
So, I have set the Project > Settings > Server/Script “Template Folder” with CC_html.
I have one page to test with, MAIN.asp. I saved the project and F9, published the project. Copied the content to the Server.
When I publish the project, I get a new folder, CC_html and my project folder, _iLS_DVLP.
The MAIN.html page is in the CC_html folder, and the MAIN.asp page is in the Project folder _iLS_DVLP.
_iLS_DVLP
- MAIN.asp
- Common.asp
- Other Common Files
CC_html
- MAIN.html
- Styles (folder)
So I tried the URL on the server: https://www.domain.com/_ils_dvlp/MAIN.asp
I get the following error:
Template engine error '800a041a'
Template engine: LoadTemplate failed. File D:\FTP\iLS\Htdocs\_iLS_DVLP\MAIN.html not found.
/_iLS_DVLP/Template.asp, line 89
OK, the template.asp should be building the path to look at:
D:\FTP\iLS\Htdocs\_iLS_DVLP\CC_html\MAIN.html
But it does not! If I add the MAIN.html into the project folder, all is OK.
I searched for the reference, CC_html, in any of the published files and “Common Files” and I DO NOT find a reference to the folder CC_html. In CodeCharge I find the ONLY reference to CC_html in the project file: iLS_DVLP.ccs
<Site id="0" language="ASPTemplates" name="iLS_DVLP" . . . " templateFolder="CC_html">
I searched the MAIN.asp and I see the reference:
TemplateFilePath = Server.MapPath("/_iLS_DVLP/") & "\"
But this has no reference to: CC_html.
I am running CodeCharge 3.1.1.0.
SO, from what I can see is that this function maybe broken? I can not find a reference to the folder CC_html in the published files, so where is it suppose to be?
When I open the common.asp file I again see the reference to “Template Folder” > CC_html.
So I see that the reference is reloaded with the Project file, but It is never rendered in the .asp pages.
Any help with this problem would be greatly appreciated, Thanks mark
|
 |
 |
peterr
Posts: 5971
|
| Posted: 02/17/2007, 9:39 AM |
|
Mark,
Technical issues are usually resolved by product support, which may explain why you wouldn't find an answer on the forums. I also recommend contacting support.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
gmarkwood
Posts: 10
|
| Posted: 02/20/2007, 8:27 AM |
|
OK, tech support sent me a patch today that has fixed the problem, so be aware when using this function with version 3.1.1.0, that it is broken!
The patch will fix the line in your .asp page below:
TemplateFilePath = Server.MapPath("/html_template_Folder/") & "\"
The file that needs to be updated/patched is:
Components\CodeTemplates\ASPTemplates\PageASPTemplates.ccl
Thanks and best of luck, Mark Wood
|
 |
 |
|