Ask a Question related to ASP.NET Web Services, Design and Development.
-
John Smith #1
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
-
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... -
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... -
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... -
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... -
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... -
Chris Fink #2
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
-
Chris Fink #3
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
-
Chris Fink #4
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...called> 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 folderis> library with copy local = false (still fails when = true). The webserviceversion='1.0'?><xmlvalidationrequest><xml>"> 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> +>> > 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
-
TGuthrie #5
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



Reply With Quote

