Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Server rejects template script request

Thread Tools

Server rejects template script request

Posts: n/a
Hi, I am confronted to a nasty problem: In a number of pages, I have
included an external js script to generate templated data. The script
relies on the embedded javascript library (ejs) library (http:// ). Ejs allows html
to be mixed with <%= ..%> control tags. The ejs templates work w/o
problems on my local machine, but fail on the server. All pages are
xhtml 1.0 transitional compliant.

When the page is rendered by the hosting server, Firebug issues the
exception error: There is no template at ... I noticed that the
template is found when the erb-style delimiters <%= %> are omitted.
It seems that ASP.NET refuses to service the request whenever these
control tags are embedded in the template script.

Question: How can ASP.NET be fooled to render the script (page
declarations, ..) ?

PS: My initial design was based on John Resig's micro-template.
Unfortunately, I had to give it up since it does not pass XHMTL
Reply With Quote
Posts: n/a
Problem solved! It turns out that the problem was of type: HTTP 404 -
File not found error. Adding a new MIME (type: text/html;
extension: .ejs) in my IIS hosting account solve the issue.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blogger template rejects javascript loop Jim Javascript 7 11-15-2007 10:10 AM
A Template that rejects classes. Dominic Connor, Pimp C++ 6 05-10-2007 11:38 AM
Sonic Record Now Plus DVD Burner Rejects Certain Files: Why ? Robert11 Computer Support 3 10-06-2005 04:20 PM
Studio Rejects Antiwar Documentary For 'Three Kings' DVD Allan DVD Video 4 09-07-2004 05:32 PM
SMTP server rejects sender's email address Klaatu Computer Support 13 05-22-2004 07:47 PM