Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Expression Web and asp #INCLUDE
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dchristiano
Starting Member

United States
1 Posts

Posted - 27 May 2012 :  14:00:14  Show Profile  Send dchristiano an ICQ Message  Reply with Quote
I had v3.4.05 suddenly break on me and I decided the best bet was to go right to 3.4.07 - I couldn't get to first base on the install due to (IMHO) a quirk in asp.

I had Expression Web 4 set to publish removing all html comments. Of course as asp users know, there are a lot of "Includes" used in the Forum code. Originally our ISP loaded all the 3.4.05 code on the system and I only made a few mods and hence never discovered this problem. After publishing 3.4.07 I found that EW4 was not publishing the #INCLUDE FILE directives (as I had specified without ill effects up to today). Of course with the INCLUDEs stripped out of the code 3.4.07 was DOA. It took me a while to figure this but if anyone else has this problem maybe you'll find this post.

Why is the world is a server side directive like #INCLUDE properly encased within a comment field? Oh well... Dave

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 May 2012 :  16:58:53  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Thanks for posting about it .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 29 May 2012 :  15:27:38  Show Profile  Reply with Quote
What would Expression Web have to do with asp includes? asp includes are placed in html text in an asp page, not within the <% asp delimiters. The asp page is processed by IIS and includes are loaded before any asp code begins to execute. Expression Web is a design program, unless there is some web server included in IIS Expression Web won't be in the picture.

#INCLUDE FILE behaviour changed with newer versions of IIS when 'parent paths' were changed to be disabled by default. This could cause any include file using relative paths (i.e., ../../file) to fail in newer IIS when they worked fine in older IIS versions,

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 29 May 2012 :  18:12:35  Show Profile  Reply with Quote
Doug, it sounds like he was using Expression Web 4 to publish his site, and it was stripping out all the HTML Comments when doing so.

http://www.expression-web-tutorials.com/ew4/ew4-website.html

Looks like it can use any of the below methods to "publish" the site:

FTP, SFTP, FTPS, FrontPage Server Extensions, WebDav, or File System.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 30 May 2012 :  04:50:03  Show Profile  Reply with Quote
I'd blame Expression Web for not being able to distinguish between comments and includes, it's not exactly difficult.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 30 May 2012 :  21:35:08  Show Profile  Reply with Quote
Oh, so it wasn't about a server issue but a problem with Expression Web incorrectly handling page source. Thanks for the clarification!

ASP includes ARE just an html comment. It's the content of the html comment that the asp interpreter looks at to determine it's an include, but from the html view it's just another html comment block. It wouldn't surprise me at all if any non-MS html editor that stripped html comments would merrily remove asp includes, but it is a little surprising that Microsoft's own html editor would do so.

I have an older copy of expression web kicking around, maybe I should try it out again.

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 01 June 2012 :  11:25:59  Show Profile  Visit AnonJr's Homepage  Reply with Quote
The cynic in me wonders if it isn't a subtle way for MS to push people to .NET...
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 02 June 2012 :  21:01:10  Show Profile  Visit Panhandler's Homepage  Reply with Quote
Make sure you have an updated version. 4.0.1303.0 SP2 is current as far as i know.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07