Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

Remote Debugging

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick - 20 May 2008 18:51 GMT
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
Alex Meleta - 20 May 2008 21:38 GMT
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

R> We have a web site that was built as an ASP.Net Web Site, I am unable
R> to remote debug, when build ing the web site there is not a dll or
R> PDB file generated. I can debug on my local machine but unable to
R> attach to the process when running from the web server.
R>
R> Can someone tell me how to remote debug an ASP.Net Website that does
R> not genate a dll or PDB file?
R>
R> Thanks in advance!
R> Ric
Rick - 20 May 2008 22:32 GMT
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

> Hi Rick,
>
[quoted text clipped - 20 lines]
> R> R> Thanks in advance!
> R> Rick
Steven Cheng [MSFT] - 21 May 2008 05:10 GMT
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/archive/2005/11/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:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Reply-To: "Rick" <rfemmer@newsgroups.nospam>
>From: "Rick" <rfemmer@newsgroups.nospam>
>References: <#3cjeIquIHA.5288@TK2MSFTNGP06.phx.gbl>
<2013d8257d7f08ca88f20f6fa317@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
[quoted text clipped - 28 lines]
>> R> R> Thanks in advance!
>> R> Rick

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.