Internal Server Error 500

N

nak

Hi there,

I know this is an extremely generic error to be asking about but my web
service is throwing it at me left right and center at the moment and I still
don't seem to be able to narrow it down.

Basically I have a main website and 2 services setup as follows,

Site Root\
WebService1\
WebService2\

Now I'm presuming this is something to do with the damn nasty web config
files, but I can't see how. According to IIS, both Web Services are
inheriting the same providers, setttings, connection strings etc.
Everything looks fine there, but the problem is coming when WebService2
attempts to get a user via Membership.GetUser

It seems to just die there with an internal server error, *even though*
the entire call is in a try catch block, what it should actually do is
return the actual error, that's how it normally works, but for some reason
at current it's not wanting to do that.

Any idea how I can narrow this down a little further? BTW, I have even
tried using the same Web.Config file as WebService1 and just adding the
extra app setting required by the service but I get the same problems.

WebService1 doesn't seem to want to work on inherited settings, which is
quite odd. I've actually got duplicate settings in there. Web.config files
are so damn nasty when they have a bit of information in.

Any help would be fantastic.

Nick.
 
M

Mr. Arnold

nak said:
Hi there,

I know this is an extremely generic error to be asking about but my web
service is throwing it at me left right and center at the moment and I
still don't seem to be able to narrow it down.

Basically I have a main website and 2 services setup as follows,

Site Root\
WebService1\
WebService2\

Now I'm presuming this is something to do with the damn nasty web
config files, but I can't see how. According to IIS, both Web Services
are inheriting the same providers, setttings, connection strings etc.
Everything looks fine there, but the problem is coming when WebService2
attempts to get a user via Membership.GetUser

It seems to just die there with an internal server error, *even though*
the entire call is in a try catch block, what it should actually do is
return the actual error, that's how it normally works, but for some reason
at current it's not wanting to do that.

Any idea how I can narrow this down a little further? BTW, I have even
tried using the same Web.Config file as WebService1 and just adding the
extra app setting required by the service but I get the same problems.

WebService1 doesn't seem to want to work on inherited settings, which
is quite odd. I've actually got duplicate settings in there. Web.config
files are so damn nasty when they have a bit of information in.

Any help would be fantastic.

You have to go read the IIS logs to find out the error 500 problem, if it's
there.


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4067 (20090512) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
M

Mr. Arnold

nak said:
Hi there,

I know this is an extremely generic error to be asking about but my web
service is throwing it at me left right and center at the moment and I
still don't seem to be able to narrow it down.

Basically I have a main website and 2 services setup as follows,

Site Root\
WebService1\
WebService2\

Now I'm presuming this is something to do with the damn nasty web
config files, but I can't see how. According to IIS, both Web Services
are inheriting the same providers, setttings, connection strings etc.
Everything looks fine there, but the problem is coming when WebService2
attempts to get a user via Membership.GetUser

It seems to just die there with an internal server error, *even though*
the entire call is in a try catch block, what it should actually do is
return the actual error, that's how it normally works, but for some reason
at current it's not wanting to do that.

Any idea how I can narrow this down a little further? BTW, I have even
tried using the same Web.Config file as WebService1 and just adding the
extra app setting required by the service but I get the same problems.

WebService1 doesn't seem to want to work on inherited settings, which
is quite odd. I've actually got duplicate settings in there. Web.config
files are so damn nasty when they have a bit of information in.

Any help would be fantastic.

You have to go read the IIS logs to find out the error 500 problem, if it's
there.


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4067 (20090512) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
A

Andrew Morton

nak said:
I know this is an extremely generic error to be asking about but
my web service is throwing it at me left right and center at the
moment and I still don't seem to be able to narrow it down.

Have you tried going to the webservice's URL in a browser? That way it
doesn't hide the errors from you and you see them as you would with an aspx
page.

Andrew
 
A

Andrew Morton

nak said:
I know this is an extremely generic error to be asking about but
my web service is throwing it at me left right and center at the
moment and I still don't seem to be able to narrow it down.

Have you tried going to the webservice's URL in a browser? That way it
doesn't hide the errors from you and you see them as you would with an aspx
page.

Andrew
 
N

nak

Hi Andrew,
Have you tried going to the webservice's URL in a browser? That way it
doesn't hide the errors from you and you see them as you would with an
aspx page.

Indeed, I was hoping this would be the case, but alas no :( It's just
throwing up a 500 error when I try to fire the webservice in IE, and Chrome
is giving me an "Object reference not set to the instance of an object",
which is kinda confusing me entirely as this just shouldn't be happening.
I'm returning a string from the method and everything is in a try catch
block, so even the error should come back as an xml document, that's how I
tend to engineer all of my web service methods, that way they are as verbose
as I would like them to be.

*confused*

Nick.
 
N

nak

Hi Andrew,
Have you tried going to the webservice's URL in a browser? That way it
doesn't hide the errors from you and you see them as you would with an
aspx page.

Indeed, I was hoping this would be the case, but alas no :( It's just
throwing up a 500 error when I try to fire the webservice in IE, and Chrome
is giving me an "Object reference not set to the instance of an object",
which is kinda confusing me entirely as this just shouldn't be happening.
I'm returning a string from the method and everything is in a try catch
block, so even the error should come back as an xml document, that's how I
tend to engineer all of my web service methods, that way they are as verbose
as I would like them to be.

*confused*

Nick.
 
N

nak

Hi there,

Cheers for the tip, I think I'm almost there now, looks like I've got
some stupid code happening...

doh!

Nick.
 
N

nak

Hi there,

Cheers for the tip, I think I'm almost there now, looks like I've got
some stupid code happening...

doh!

Nick.
 
N

nak

Ahaaa! It's kicking into life now and reurning some meaningful data, it
also looks like I have some stupid code in there causing issues along side.

Oops! Thanks for your time.

Nick.
 
N

nak

Ahaaa! It's kicking into life now and reurning some meaningful data, it
also looks like I have some stupid code in there causing issues along side.

Oops! Thanks for your time.

Nick.
 
N

nak

I've found the actual error now, and I'm not impressed.

So why on earth does IE throw a wobbler when you return a reasonable amount
of XML data from a service call? It's basically freaking out when I give it
back a digitally signed XML document, all perfectly formed. It's throwing a
500 server error even though it's not, the server completed its tasks
perfectly, it just couldn't handle the return value (even though I don't
want it to do anything with it).

Highly frustrating! I guess I'm going to have to base64 encode the entire
lot....

Nick.
 
N

nak

I've found the actual error now, and I'm not impressed.

So why on earth does IE throw a wobbler when you return a reasonable amount
of XML data from a service call? It's basically freaking out when I give it
back a digitally signed XML document, all perfectly formed. It's throwing a
500 server error even though it's not, the server completed its tasks
perfectly, it just couldn't handle the return value (even though I don't
want it to do anything with it).

Highly frustrating! I guess I'm going to have to base64 encode the entire
lot....

Nick.
 
C

Cor Ligthert[MVP]

Hi Nick,

I see you are from England, probably quiet happy now Manchester is playing
the cup.

However, I am curious why are you using two web services instead of one.

Cor
 
C

Cor Ligthert[MVP]

Hi Nick,

I see you are from England, probably quiet happy now Manchester is playing
the cup.

However, I am curious why are you using two web services instead of one.

Cor
 
N

nak

Hey Cor!

I'm using 2 mainly for maintainability and portability. Both web
services operate under completely different circumstances, it's more of a
logical collection of related functionality. Also one of them is protected
from access slightly differently from the other.

All is working great now though, I've got my response being returned
just that way I need it, with a digital signature, so all is good.

How are you doing these days?

Nick.
 
N

nak

Hey Cor!

I'm using 2 mainly for maintainability and portability. Both web
services operate under completely different circumstances, it's more of a
logical collection of related functionality. Also one of them is protected
from access slightly differently from the other.

All is working great now though, I've got my response being returned
just that way I need it, with a digital signature, so all is good.

How are you doing these days?

Nick.
 
C

Cor Ligthert[MVP]

Hey Nick,

I understand it now.

I would have thought to get a grrrrrrrrrrrrrrrrrrr from a Londoner about
Manchester.

There were some guys active here trolling who thought they had to tell that
VB6 was only the true VB, when I see that I always miss you.
But you are not wild enough anymore for that.

I think even Armin and Herfried would have been glad if there was somebody
like you in the old days, who would have given those comments like you did.

At the moment I am trying some binded database things with Silverlight, for
that I have to use WCF, did you tried that already?
(Or maybe you are already using that in this, I was still using the classic
webserver solutions)

Cor
 
C

Cor Ligthert[MVP]

Hey Nick,

I understand it now.

I would have thought to get a grrrrrrrrrrrrrrrrrrr from a Londoner about
Manchester.

There were some guys active here trolling who thought they had to tell that
VB6 was only the true VB, when I see that I always miss you.
But you are not wild enough anymore for that.

I think even Armin and Herfried would have been glad if there was somebody
like you in the old days, who would have given those comments like you did.

At the moment I am trying some binded database things with Silverlight, for
that I have to use WCF, did you tried that already?
(Or maybe you are already using that in this, I was still using the classic
webserver solutions)

Cor
 
N

nak

Hi Cor,
I would have thought to get a grrrrrrrrrrrrrrrrrrr from a Londoner about
Manchester.

haha! I'm not fan of football to be honest so it went right over my head.
There were some guys active here trolling who thought they had to tell
that VB6 was only the true VB, when I see that I always miss you.
But you are not wild enough anymore for that.

Oh that's a shame, I wish I had been around to join in that. If they want
to use dated vb6, even though you can do pretty much anything in vb.net,
then they are just stupid, I certainly wouldn't buy their software that's
for sure. lol I hate installing a new app to find out it's vb6, that's just
lazy considering the latest tools are free.
I think even Armin and Herfried would have been glad if there was somebody
like you in the old days, who would have given those comments like you
did.

Those were some funny times for sure, I was in a mass learning mode for VB
so had to ask so many questions in the forums, now I seem to be able to get
things done so I only really pop in when I'm getting frustrated over
something. Kudos to you though, being an active community member and
helping people all the time, that's very admirable!
At the moment I am trying some binded database things with Silverlight,
for that I have to use WCF, did you tried that already?
(Or maybe you are already using that in this, I was still using the
classic webserver solutions)

I've not touched WCF as yet but I have had a play with WPF, Silverlights
bigger brother. I had a few ideas for projects but they never really came to
fruition, only prototype, like the thing in this video...

http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=27551059

I was going to make a WPF website, but kind of glad I didn't now, I'll wait
until Silverlight is a bit more extensive, with that said I've not tried 2
as of late, is it any good? How are you getting on with XAML layout? That
is so frustratingly slow it makes me want to cry lol!

Anyways! Good luck with your project I hope it comes out as your plan!

Nick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top