Windows IIS Sporadic Access Problems

Discussion in 'Software' started by LaughingJon, 6 Apr 2004.

  1. LaughingJon

    LaughingJon What's a Dremel?

    Joined:
    12 Feb 2003
    Posts:
    282
    Likes Received:
    0
    Hey peeps,

    I am having a problem running IIS on a laptop of a colleague. I have setup IIS 5.1 and SQL2000 to allow them to run our live websites locally on his machine. (the machine is running XP Pro)

    The problem is that the sites can work for an arbitrary amount of time before I start getting messages from my java program saying:

    Code:
    HTTP/1.1 403 Access Forbidden 
    These errors occur at random points and doing a command which previously worked.

    This can be shown (I think) by the log I am getting from IIS.

    Code:
    2004-04-06 14:31:17 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:18 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:18 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:20 127.0.0.1 - POST /sql.asp 200 0
    2004-04-06 14:31:20 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:22 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:22 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:24 127.0.0.1 - POST /sql.asp 200 0
    2004-04-06 14:31:24 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:27 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:28 127.0.0.1 - POST /sql.asp 200 0
    2004-04-06 14:31:28 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:30 127.0.0.1 - POST /sqlresult.asp 200 0
    2004-04-06 14:31:32 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:32 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:32 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:32 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:32 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:32 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:34 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:34 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:34 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:34 127.0.0.1 - POST /sqlresult.asp 403 5
    2004-04-06 14:31:34 127.0.0.1 - POST /sqlresult.asp 403 5
    
    If anyone can help me sort this out I would be very grateful.
    :wallbash:

    Cheers
    Jon
     
  2. Hepath

    Hepath Minimodder

    Joined:
    20 Oct 2003
    Posts:
    730
    Likes Received:
    0
    OK
    Access denied always to me suggests security - In other words something is trying to write to a place it shouldn't.

    A really quick method is to get the sysinternals program filemon and run that until you get the error. Stop logging and look for "ACCDENIED"

    My guess (I'm afraid I dont do Java) is that somewhere also the line security has been compromised and that something, somehow has changed security context. (You using sessions?)

    A really simple fix is to add "everyone" to the "local administrators" group - which if it works, is then down to tracking down the location of the problem and understanding why.

    Can we have a bit more on how the java proggy invokes the asp code please?
     
  3. LaughingJon

    LaughingJon What's a Dremel?

    Joined:
    12 Feb 2003
    Posts:
    282
    Likes Received:
    0
    Hi there,

    We are using BufferedReader to read the input from an ASP page, it isnt the best way of doing things, but we are limited by our hosts :(

    The curious thing is that it works without fault online, its this local version which causes problems. We are using Sessions as well.

    i dont have access to the PC atm so will try these things you have suggested when i next get access to it. Cheers!

    Laters
    Jon
     
Tags:

Share This Page