500 server error

Version 1
    This document was generated from CDN thread

    Created by: Cindy Brozyno on 06-12-2011 08:20:57 AM
    I am creating a timeclock type phone service for the 7942 model. Using xml/javascript. Following the 'measurement' sdk example.
    First page loads fine (because it's hard-code directed from the service page). However, the 2nd page will not load. I continually get a 500 server error.
    I created an additional service from a textbook, and it behaves the same.
    All services that were loaded in the SDK work properly; the ones I create will not load. I'm wondering if it has something to do with configuration, rather than coding.
    I've included code from the first page.  Any guidance would be great.
    Thanks.
    Cindy
     
    <%@ Language=JavaScript %>
    <%
    function MainMenu()
    {    Response.Write("<CiscoIPPhoneMenu><Title>IP Time Clock</Title><Prompt>Choose a selection:</Prompt>\r\n");
        Response.Write("<MenuItem>\r\n");
        Response.Write("<Name>Clock In</Name>\r\n");
        Response.Write("<URL>http://" + serverIP + "/" + SERVICE_DIR + "/timeclock/menu.asp?option=I</URL>\r\n");
        Response.Write("</MenuItem>\r\n");

        Response.Write("<MenuItem>\r\n");
        Response.Write("<Name>Clock Out</Name>\r\n");
        Response.Write("<URL>http://" + serverIP + "/" + SERVICE_DIR + "/timeclock/menu.asp?option=O</URL>\r\n");
        Response.Write("</MenuItem>\r\n");
        Response.Write("</CiscoIPPhoneMenu>\r\n");
        return;
    }

    function Menu()
    {    Response.Write("<CiscoIPPhoneMenu>\r\n");
        Response.Write("<Prompt>Select an option</Prompt>\r\n");

        //Clock In
        Response.Write("<MenuItem>\r\n");
        Response.Write("<Name>Clock In</Name>\r\n");
        Response.Write("<URL>http://" + serverIP + "/" + SERVICE_DIR + "/timeclock/input.asp?ctype=I</URL>\r\n");
        Response.Write("</MenuItem>\r\n");

        //Clock Out
        Response.Write("<MenuItem>\r\n");
        Response.Write("<Name>Clock Out</Name>\r\n");
        Response.Write("<URL>http://" + serverIP + "/" + SERVICE_DIR + "/timeclock/input.asp?ctype=O</URL>\r\n");
        Response.Write("</MenuItem>\r\n");
        Response.Write("</CiscoIPPhoneMenu>\r\n");
    }
        var serverIP = Request.ServerVariables("LOCAL_ADDR");
        var SERVICE_DIR="CiscoIPServices";
        var opt=Request.QueryString("option");
        Response.ContentType = "text/xml";
        Response.Buffer = true;
        Menu();
        Response.Flush();
    %>

    Subject: RE: 500 server error
    Replied by: David Staudt on 06-12-2011 10:43:01 AM
    HTTP 500 is Internal Server Error, which suggests that something inthe script is failing on your web server.  You may need to do some debugging to see which line of the script is failing and why.

    Subject: RE: 500 server error
    Replied by: Cindy Brozyno on 06-12-2011 02:14:36 PM
    Thank you. I found my issues. Syntax errors on the next page. I appreciate the quick response.