That's it. Well there is certainly more, but I stripped it down to just that for testing.
It just doesn't make any sense.
That's it. Well there is certainly more, but I stripped it down to just that for testing.
It just doesn't make any sense.
Hmm...ok, what if you use:
notice the forward slash that was added.Code:<!-- #include virtual="/common.asp"-->
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Unfortunately same. After each attempt I do remove the <% and %> from the common.asp to make sure that it is retrieving the file. Same thing happened with the "/".
Hmmm..what a bugger...are you able to check the IIS configuration for this directory? If so, check to see if Parent Paths are enabled. Not sure if it would make s difference in this situation. Also, see if you or your host can check the error logs. I don't see anything that pops out as far as your code is concerned.
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Bummer indeed. However, if the text Dim strTest is being displayed when the ASP tags are removed from the include file, then obviously it's able to find the file. That probably rules out a problem with Parent Path (which IS off by default in IIS 6). The event log probably has more information, if you allowed to view that (and what are the chances that you get tech support from your provider to look for you -- zilch on a good day?)
It's probably not going to do anything different, but have your tried something other then Dim strTest in the include file? Heck, how about just a comment? If for some strange reason THAT works, then we've narrowed down the problem to the actual VB statement (or VB statement in general)
Wolffy
.-- ----- ..-. ..-. -.--
Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Void where prohibited by law. Not valid in California. Your mileage may vary.
Bookmarks