Home All Groups Group Topic Archive Search About

Internal Server Error 500

Author
12 May 2009 1:28 PM
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.

Author
13 May 2009 4:50 AM
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


Show quoteHide quote
"nak" <a@a.com> wrote in message
news:A651BDB1-9348-4C6E-B2ED-E01D2B64AC2F@microsoft.com...
> 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.
Author
13 May 2009 8:53 AM
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.

Show quoteHide quote
"Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
news:eSHhMZ40JHA.4880@TK2MSFTNGP03.phx.gbl...
> 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
>
>
> "nak" <a@a.com> wrote in message
> news:A651BDB1-9348-4C6E-B2ED-E01D2B64AC2F@microsoft.com...
>> 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.
>
Author
13 May 2009 12:12 PM
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

Show quoteHide quote
"nak" <a@a.com> wrote in message
news:26EFB4FA-1F27-44D9-83E0-E7B911DB1943@microsoft.com...
> 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.
>
> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
> news:eSHhMZ40JHA.4880@TK2MSFTNGP03.phx.gbl...
>> 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
>>
>>
>> "nak" <a@a.com> wrote in message
>> news:A651BDB1-9348-4C6E-B2ED-E01D2B64AC2F@microsoft.com...
>>> 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.
>>
>
Author
13 May 2009 12:27 PM
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.