By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,213 Members | 2,108 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,213 IT Pros & Developers. It's quick & easy.

Remote Debugging

P: n/a
We have a web site that was built as an ASP.Net Web Site, I am unable to
remote debug, when build ing the web site there is not a dll or PDB file
generated. I can debug on my local machine but unable to attach to the
process when running from the web server.

Can someone tell me how to remote debug an ASP.Net Website that does not
genate a dll or PDB file?

Thanks in advance!
Rick
Jun 27 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Rick,

Have you ever dialing with the Remote Debugging Tools located at C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Microsoft Visual Studio 2005\8\Visual Studio Tools? Briefly,
you can install them at remote host, configure and use just as local service.
These link helps you to config: http://msdn.microsoft.com/en-us/library/xf8k2h6a.aspx
and http://support.microsoft.com/kb/910448/en-us
By using the tools you can connect directly to the aspnet process on remote
host.

But, anyway, consider a production deployment. You cannot install this stuff
there. So, that's better to have a log fairly enough for understanding the
bug by text description (EventLog, log4net and so on).

Regards, Alex

RWe have a web site that was built as an ASP.Net Web Site, I am unable
Rto remote debug, when build ing the web site there is not a dll or
RPDB file generated. I can debug on my local machine but unable to
Rattach to the process when running from the web server.
R>
RCan someone tell me how to remote debug an ASP.Net Website that does
Rnot genate a dll or PDB file?
R>
RThanks in advance!
RRick
Jun 27 '08 #2

P: n/a
Thanks Alex! I'll look into it. I went back to the old days and used ASP
debugging by putting response.writes in the function that was failing to
narrow down the issue I was having, I was able to figure out the issue, it
turned out to be a machine.config problem.

Thanks,
Rick

"Alex Meleta" <am*****@gmail.comwrote in message
news:20**************************@msnews.microsoft .com...
Hi Rick,

Have you ever dialing with the Remote Debugging Tools located at
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual
Studio 2005\8\Visual Studio Tools? Briefly, you can install them at remote
host, configure and use just as local service. These link helps you to
config: http://msdn.microsoft.com/en-us/library/xf8k2h6a.aspx and
http://support.microsoft.com/kb/910448/en-us
By using the tools you can connect directly to the aspnet process on
remote host.
But, anyway, consider a production deployment. You cannot install this
stuff there. So, that's better to have a log fairly enough for
understanding the bug by text description (EventLog, log4net and so on).

Regards, Alex
RWe have a web site that was built as an ASP.Net Web Site, I am unable
Rto remote debug, when build ing the web site there is not a dll or
RPDB file generated. I can debug on my local machine but unable to
Rattach to the process when running from the web server.
RRCan someone tell me how to remote debug an ASP.Net Website that does
Rnot genate a dll or PDB file?
RRThanks in advance!
RRick


Jun 27 '08 #3

P: n/a
Hi Rick,

Yes, for remote debugging, you need to start the remote debugger monitor at
the target server (which running your ASP.NET application). You can install
only the remote debugging tools instead of the entire visual studio.

BTW, as for PDB of the asp.net application, I'm wondering have you
performed precompilation of your ASP.NET web site application?
Precompilation should be able to produce a central assembly and the PDB
file. If you use dynamic compilation(did not perform precompile), the pages
are dynamically compiled at runtime and the pdb files are also generated
with the dynamic page classes (in the Temporary ASP.NET folder).

here is a good article which mentioned details about the compilation model
and the debugging symbols of ASP.NET 2.0 application:

#Debug and Release Builds in ASP.NET 2.0
http://odetocode.com/blogs/scott/arc...1/15/2464.aspx

Hope this also helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Reply-To: "Rick" <rf*****@newsgroups.nospam>
From: "Rick" <rf*****@newsgroups.nospam>
References: <#3**************@TK2MSFTNGP06.phx.gbl>
<20**************************@msnews.microsoft.com >
>Subject: Re: Remote Debugging
Date: Tue, 20 May 2008 16:32:59 -0500
>
Thanks Alex! I'll look into it. I went back to the old days and used ASP
debugging by putting response.writes in the function that was failing to
narrow down the issue I was having, I was able to figure out the issue,
it
>turned out to be a machine.config problem.

Thanks,
Rick

"Alex Meleta" <am*****@gmail.comwrote in message
news:20**************************@msnews.microsof t.com...
>Hi Rick,

Have you ever dialing with the Remote Debugging Tools located at
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual
Studio 2005\8\Visual Studio Tools? Briefly, you can install them at
remote
>host, configure and use just as local service. These link helps you to
config: http://msdn.microsoft.com/en-us/library/xf8k2h6a.aspx and
http://support.microsoft.com/kb/910448/en-us
By using the tools you can connect directly to the aspnet process on
remote host.
But, anyway, consider a production deployment. You cannot install this
stuff there. So, that's better to have a log fairly enough for
understanding the bug by text description (EventLog, log4net and so on).

Regards, Alex
RWe have a web site that was built as an ASP.Net Web Site, I am unable
Rto remote debug, when build ing the web site there is not a dll or
RPDB file generated. I can debug on my local machine but unable to
Rattach to the process when running from the web server.
RRCan someone tell me how to remote debug an ASP.Net Website that
does
>Rnot genate a dll or PDB file?
RRThanks in advance!
RRick



Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.