Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default HTTP 500 error

    Dreamweaver won't display any of the PHP pages I create--I just get an HTTP
    500 error. The latest PHP is installed for IIS 5 (running under XP Pro)
    along with some CFMX stuff in the same folder (long story). Every page I
    create gives me the same 500 error. Any help would be GREATLY appreciated.

    TIA,
    t


    John Smith Guest

  2. Similar Questions and Discussions

    1. HTTP Error 401.3
      I'm only having this problem with ONE server, and can not for the life of me figure out why... I've got a textbook install of the J2EE platform...
    2. Http 405 error
      I am in the process of insttalling Tutorial that we get with DreamWeaver. I am configuring the database connection to Test Server. I specified the...
    3. HTTP 500.100 - Internal Server Error - ASP error Help...Please
      I a trying to display an ASP page on IIS 5.1, but i cant, every time i select the info i wanna see a "page cannot be displayed" page. The name of...
    4. HTTP Error 500, Internal Server Error
      I have installed VB.NET 2003 on my machine. Whenever I write a web service or web page of any type that uses ADO to connect to a SQL Database I get...
    5. HTTP Error 500
      Window XP PRO, Access 2000, FR2002, FP2002 ext. I have 3 webs with database, two work fine, the other gives this error. Microsoft OLE DB...
  3. #2

    Default HTTP 500 Error

    I am receiving an HTTP status 500 error with the validateXMLFragment
    webservice below. I have no way of finding out what specifically is
    happening since the debug point in the catch is never being hit. Any
    recommendations on where to look?

    [WebMethod]

    public string validateXMLFragment(string fragment)

    {

    //return "test";

    try

    {

    bool _isValid = true;

    string errorMsg = string.Empty;

    XMLValidator xmlVal = new XMLValidator(fragment);

    if (!xmlVal.Validate())

    {

    _isValid = false;

    ArrayList errors = xmlVal.Errors;

    errorMsg = errors[0].ToString();

    }

    }

    catch (Exception ex)

    {

    Context.Response.Write(ex.Message.ToString());

    }

    //string xmlResponse = @"<?xml version='1.0'?><xmlvalidationrequest><xml>" +
    fragment + "</xml><status>" + _isValid.ToString() +
    "</status><errormessage>" + errorMsg +
    "<errormessage></xmlvalidationrequest>";

    //return xmlResponse;

    return "abc";

    }

    [WebMethod]

    public string Test (string msg)

    {

    return msg;

    }


    Chris Fink Guest

  4. #3

    Default Re: HTTP 500 Error

    After further debugging, it appears as though the problem is with the call
    to the library component.

    XMLValidator xmlVal = new XMLValidator(fragment);

    Odd thing is, that the break point is never hit, even if placed before the
    call. The catch statement is never called either. Very odd.

    Do I need to configure permissions in the webservice to make a call to a
    custom assembly? Currently the assembly is under wwwroot in a folder called
    library with copy local = false (still fails when = true). The webservice is
    running under wwwroot in a folder called webservices.

    If I could only find out more info on the 500 error I would know where to
    look....


    "Chris Fink" <chris.fink@gmail.com> wrote in message
    news:OWhNdPx$EHA.2788@TK2MSFTNGP15.phx.gbl...
    > I am receiving an HTTP status 500 error with the validateXMLFragment
    > webservice below. I have no way of finding out what specifically is
    > happening since the debug point in the catch is never being hit. Any
    > recommendations on where to look?
    >
    > [WebMethod]
    >
    > public string validateXMLFragment(string fragment)
    >
    > {
    >
    > //return "test";
    >
    > try
    >
    > {
    >
    > bool _isValid = true;
    >
    > string errorMsg = string.Empty;
    >
    > XMLValidator xmlVal = new XMLValidator(fragment);
    >
    > if (!xmlVal.Validate())
    >
    > {
    >
    > _isValid = false;
    >
    > ArrayList errors = xmlVal.Errors;
    >
    > errorMsg = errors[0].ToString();
    >
    > }
    >
    > }
    >
    > catch (Exception ex)
    >
    > {
    >
    > Context.Response.Write(ex.Message.ToString());
    >
    > }
    >
    > //string xmlResponse = @"<?xml version='1.0'?><xmlvalidationrequest><xml>"
    +
    > fragment + "</xml><status>" + _isValid.ToString() +
    > "</status><errormessage>" + errorMsg +
    > "<errormessage></xmlvalidationrequest>";
    >
    > //return xmlResponse;
    >
    > return "abc";
    >
    > }
    >
    > [WebMethod]
    >
    > public string Test (string msg)
    >
    > {
    >
    > return msg;
    >
    > }
    >
    >

    Chris Fink Guest

  5. #4

    Default Re: HTTP 500 Error

    I answered my question. Copy local needs to be set to True otherwise the
    assembly needs to be installed in GAC if copylocal=false.

    "Chris Fink" <chris.fink@gmail.com> wrote in message
    news:OqvHUfx$EHA.2012@TK2MSFTNGP15.phx.gbl...
    > After further debugging, it appears as though the problem is with the call
    > to the library component.
    >
    > XMLValidator xmlVal = new XMLValidator(fragment);
    >
    > Odd thing is, that the break point is never hit, even if placed before the
    > call. The catch statement is never called either. Very odd.
    >
    > Do I need to configure permissions in the webservice to make a call to a
    > custom assembly? Currently the assembly is under wwwroot in a folder
    called
    > library with copy local = false (still fails when = true). The webservice
    is
    > running under wwwroot in a folder called webservices.
    >
    > If I could only find out more info on the 500 error I would know where to
    > look....
    >
    >
    > "Chris Fink" <chris.fink@gmail.com> wrote in message
    > news:OWhNdPx$EHA.2788@TK2MSFTNGP15.phx.gbl...
    > > I am receiving an HTTP status 500 error with the validateXMLFragment
    > > webservice below. I have no way of finding out what specifically is
    > > happening since the debug point in the catch is never being hit. Any
    > > recommendations on where to look?
    > >
    > > [WebMethod]
    > >
    > > public string validateXMLFragment(string fragment)
    > >
    > > {
    > >
    > > //return "test";
    > >
    > > try
    > >
    > > {
    > >
    > > bool _isValid = true;
    > >
    > > string errorMsg = string.Empty;
    > >
    > > XMLValidator xmlVal = new XMLValidator(fragment);
    > >
    > > if (!xmlVal.Validate())
    > >
    > > {
    > >
    > > _isValid = false;
    > >
    > > ArrayList errors = xmlVal.Errors;
    > >
    > > errorMsg = errors[0].ToString();
    > >
    > > }
    > >
    > > }
    > >
    > > catch (Exception ex)
    > >
    > > {
    > >
    > > Context.Response.Write(ex.Message.ToString());
    > >
    > > }
    > >
    > > //string xmlResponse = @"<?xml
    version='1.0'?><xmlvalidationrequest><xml>"
    > +
    > > fragment + "</xml><status>" + _isValid.ToString() +
    > > "</status><errormessage>" + errorMsg +
    > > "<errormessage></xmlvalidationrequest>";
    > >
    > > //return xmlResponse;
    > >
    > > return "abc";
    > >
    > > }
    > >
    > > [WebMethod]
    > >
    > > public string Test (string msg)
    > >
    > > {
    > >
    > > return msg;
    > >
    > > }
    > >
    > >
    >
    >

    Chris Fink Guest

  6. #5

    Default HTTP 500 Error

    I understand that this is an internal server error, but I could get my asp page
    to work before with MS Frontpage until I switched over to DW8, now I keep
    getting these HTTP 500 errors. The connection strings are correct, I tested
    those. I have also looked at other ways to solve the HTTP 500 error, nothing
    has work so far.
    Any Suggestions?

    TGuthrie Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139