Re: Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- From: Ben Bodien <ben.bodien@xxxxxxxxx>
- Date: Tue, 10 Jul 2007 01:35:58 -0700
On Jul 9, 3:08 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
"Ben Bodien" <ben.bod...@xxxxxxxxx> wrote in message
news:1183969392.992947.211660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jul 6, 5:46 pm, "John Saunders [MVP]" <john.saunders at...
trizetto.com> wrote:
Try access your web service first, to make sure the service has been
loaded
into an AppDomain. Either use your client program or else access it
through
a browser.
--
John Saunders [MVP]
Hi John,
Thanks for the response. I have managed to call the webservice's test
interface via a browser, addressed as
http://<server/path>/<service>.asmx
I can invoke my webmethods via this interface, and I get responses
(either return values or one line error messages - typically exception
types). What I'd really like to do though is make use of Remote
Debugging to step into the code and see where these errors are coming
from, as I have some fairly deep call stacks, and the errors I get via
this interface are somewhat ambiguous, and don't include call stack
information.
Regards,
--
Ben
Ben, first try browser, then breakpoints.
--
John Saunders [MVP]
John,
I'm not sure I follow you, so I'll explain what I've done so far.
Ben, Sorry about that,
I actually replied to this four times, and Outlook Express crashed on me
four times. It seemed to be dependant on how long I took to enter the reply,
so I entered that last one _real fast_ and then sent it. That's why it was
so terse.
I have opened the application itself in a browser, but unhandled
exceptions are thrown somewhere during the initial stages of
execution. Javascript AJAX calls to server side web methods are used
extensively, and unfortunately I don't seem to get any exception
information in the HTTP response from these web methods, just an HTTP
500 response; "There was an error processing the request". I've tried
exception handling in the web methods, but no exception messages are
passed back in the HTTP response.
My next step was to call the asmx files directly from a browser, and
try invoking the webmethods through the provided interface. This gave
me the exception messages, but with no call stack information.
So I've been trying to use remote debugging, I've managed to attach to
the worker process (I know it's the right one because this application
is running in its own app pool on the server, running as a unique user
for trusted connections to SQL servers, and I can see w3wp.exe running
as that user. Is this what you mean by App Domain?). The issue I have
is that I can't break execution via Visual Studio on the host, and I'm
not sure if debug symbols are being loaded correctly (nothing loaded
for App_Code.dll, which is where all my web service application code
is located). Do I need to generate a pdb for my App_Code.dll file, and
how would I do this if so?
Ben, yes, if you've got a separate app pool, and if you see w3wp starting in
that pool, then you've got the code loaded. That's what I was getting at
with the suggestion to use the browser first.
Unfortunately, I don't have any clues beyond this. I don't use the "web
site" model, ever. I have no idea how to get symbols for App_Code.
Sorry I couldn't help,
--
John Saunders [MVP]
Hi John,
Not a problem at all, thankyou for your input - most appreciated.
I'll have to do some more digging online and work out what's going
wrong.
--
Ben
.
- References:
- Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- From: Ben Bodien
- Re: Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- From: John Saunders [MVP]
- Re: Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- From: Ben Bodien
- Re: Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- From: John Saunders [MVP]
- Re: Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- From: Ben Bodien
- Re: Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- From: John Saunders [MVP]
- Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- Prev by Date: Debugging forward classes in dlls
- Next by Date: V C++ .NET version 2003.Compiler problem.
- Previous by thread: Re: Remote Debugging ASP.net 2.0 Web Service (no symbols loaded?)
- Next by thread: How to access Locals, Autos...programmatically?
- Index(es):
Relevant Pages
|