`

ASP.NET Remote Debugging, Windows XP SP2 and .NET Framework 2.0

阅读更多

I did not have to create and debug any ASP.NET application for a long time, but since I'm creating an online Questions/Answers application, I had to use the really nice debugging features brought by Visual Studio .NET.

To be specific, I did not have to debug any remote web site since I installed the Windows XP SP2. My configuration is quite simple, I host my application on a development Windows 2003 Server and I design with VS.NET on my Windows XP machine.

So when I trying to debug my web application, all I could get was : "Unable to debug the application" or "The remote debugger could not connect to the local machine" or a really helpfull "Cannot debug process" .

The first reaction when seeing things like this is to check the local and remote VS Developers and Debugger Users security groups. But every thing was fine there... In fact, the problem lies in the DCOM security configuration. Installing the SP2 removed the right for the anonymous account to use DCOM remotely... but not for the Everyone account. Odd.
The only thing to do is to get there : Run / dcomcnfg.exe / Component Services / Computers / My Computer / Properties / COM Security / Edit Limits , and to check "Remote Access / Allow ". Easy.

This solved my first problem, the remote debugging. The second one is still ASP.NET debugging, but locally thistime.

I have both VS.NET 2003 and 2005 installed on my local machine, and so are both 1.1 and 2.0 .NET Framework versions. Installing 2.0 over 1.1 changes the default framework used by the Windows XP IIS to version 2.0 which breaks the 1.1 debugger :)
The simple thing to do here is this : IIS / Web Sites / [WebSite] / Properties / ASP.NET , then select 1.1.4322 for the ASP.NET Version field and that's it :)

Man, I really like being able to debug my Web Applications, I really missed it ! (And so was Karouman actually, who was debugging blindly by guessing exceptions :p )

分享到:
评论

相关推荐

    ASP.NET MVC with Entity Framework and CSS

    ASP.NET MVC with Entity Framework and CSS by Lee Naylor 2016 | ISBN: 1484221362 | English | 608 pages | True PDF | 30 MB This book will teach readers how to build and deploy a fully working example ...

    Debugging Microsoft® .NET 2.0 Applications

    Debugging Microsoft® .NET 2.0 Applications By John Robbins ............................................... Publisher: Microsoft Press Pub Date: November 08, 2006 Print ISBN-10: 0-7356-2202-7 ...

    Professional ASP.NET 3.5 SP1 Edition: In C# and VB(part1)

    2008 along with the multitude of language improvements in C# 2008 and Visual Basic® 2008 as well as powerful new technology called LINQ, together with the ASP.NET 2.0 Framework you already know and ...

    Advanced+.NET+Debugging

    Advanced+.NET+Debugging

    ASP.NET 2.0 AJAX高级编程(Professional ASP.NET 2.0 AJAX)

    作者:Matt GibbsandDan Wahlin ... Chapter 9 - Testing and Debugging ASP.NET AJAX Applications Chapter 10 - Deploying ASP.NET AJAX Applications Chapter 11 - Building Custom Controls

    Debugging Applications for Microsoft .NET and Microsoft Windows

    标签“Debugging .NET”表明,本书特别强调了.NET框架的调试技术,这包括对ASP.NET、WPF、WinForms等.NET框架组件的调试方法。开发者将学会如何调试服务端和客户端代码,确保应用程序的稳定性和性能。 总之,《调试...

    ASP.NET MVC with Entity Framework and CSS [2016]

    ASP.NET MVC with Entity Framework and CSS Lee Naylor | 2016 | EPUB| ISBN: 1484221362 | 608 pages | This book will teach readers how to build and deploy a fully working example retail website using ...

    Advanced.NET.Debugging

    ### 高级 .NET 调试技术概览 #### 一、背景介绍与核心价值 随着 .NET 框架的不断演进和完善,它为开发者提供了强大的工具箱来实现各种开发目标。然而,在软件开发过程中,不可避免地会遇到各种各样的问题,特别是...

    【ASP.NET编程知识】在ASP.NET 2.0中操作数据之七十二:调试存储过程.docx

    在ASP.NET 2.0中操作数据,调试存储过程是一项关键技能,尤其对于开发人员来说,能够有效地定位和解决问题至关重要。Visual Studio提供了强大的调试工具,包括对SQL Server存储过程的调试支持。然而,需要注意的是,...

    Professional.ASP.NET.2.0.AJAX

    This detailed guide to the Microsoft AJAX Library shows you how to bring together ASP.NET 2.0 with an object-oriented approach to JavaScript development using this new framework from Microsoft....

    C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development – Third Edition

    C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development – Third Edition 版本: Create powerful applications with .NET Standard 2.0, ASP.NET Core 2.0, … Visual Studio 2017 or Visual Studio Code ...

    C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition

    After quickly taking you through C# and how .NET works, we'll dive into the .NET Standard 1.6 class libraries, covering topics such as performance, monitoring, debugging, serialization and encryption....

    debugging.microsoft.dot.net.2.0.applications

    标题“debugging.microsoft.dot.net.2.0.applications”指的是针对微软.NET Framework 2.0应用程序的调试技术。在这个主题中,我们将深入探讨.NET Framework 2.0版本下的调试工具和方法,帮助开发者识别和修复代码中...

    Pro ASP.NET MVC 5 epub

    The ASP.NET MVC 5 Framework is the latest evolution of Microsoft’s ASP.NET web platform. It provides a high-productivity programming model that promotes cleaner code architecture, test-driven ...

Global site tag (gtag.js) - Google Analytics