+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: 500 Internal Server Error when code is in include file

  1. #11
    Barn Newbie vconfused is an unknown quantity at this point vconfused's Avatar
    Join Date
    Feb 2010
    Posts
    7
    Rep Power
    3

    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.

  2. #12
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Hmm...ok, what if you use:
    Code:
    <!-- #include virtual="/common.asp"-->
    
    notice the forward slash that was added.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #13
    Barn Newbie vconfused is an unknown quantity at this point vconfused's Avatar
    Join Date
    Feb 2010
    Posts
    7
    Rep Power
    3

    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 "/".

  4. #14
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    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.


  5. #15
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    2,386
    Blog Entries
    5
    Real Name
    Wolff
    Rep Power
    15

    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.

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Throw HTTP Status Code error
    By richyrich in forum .NET Development
    Replies: 46
    Last Post: December 2nd, 2009, 06:35 PM
  2. Server Error in '/.Net' Application
    By guddu in forum .NET Development
    Replies: 3
    Last Post: August 28th, 2009, 08:28 AM
  3. Cannot find server error
    By richyrich in forum .NET Development
    Replies: 6
    Last Post: November 25th, 2008, 01:28 PM
  4. Server Side Includes .stm file error
    By peebman2000 in forum HTML & CSS Help
    Replies: 6
    Last Post: August 4th, 2008, 11:29 AM
  5. Error Type:Active Server Pages, ASP 0113 (0x80004005)
    By guddu in forum ASP Development
    Replies: 20
    Last Post: July 11th, 2008, 10:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO