Debugging Web Apps?

Posted on 2006-05-29
Last Modified: 2008-02-01
Im using ASP.NET 1.1 under Windows XP, IIS5, and IE6/FF.   I'm tyring to debug my 2 web applications under Visual Studio 2003 .NET.  One application is a Rainbow Portal .NET control (GoogleMap.ascx) and the other is a standard .ASPX web app (Geocode.aspx).  GoogleMap.ascx resides within the Rainbow Portal DesktopModules dsubdirectory, while the Geocode.aspx app resides within a different folder outside of the whole Rainbow root folder.  IIS is set to have the default website root folder point to the Rainbow Portal root directory.

My problems include:
1. When I want to run both the Rainbow Portal app (which inserts my .ascx control onto a dynamic page) and the Geocode.aspx file, this is impossible.  I receive some Web.Config security error which appears to be Rainbow Portal blocking any ASP.NET page from running including if it is not within its own folder.  I normally have to switcht IIS to the root of my Geocode.aspx folder before all is fine.  

The error i receive when trying to connect to the Gecode.aspx page:
Parser Error Message: File or assembly name Rewrite.NET, or one of its dependencies, was not found.

Source Error:

Line 420:            <!-- HttpURLHandler for handling url requests -->
Line 421:            <httpModules>
Line 422:                  <add type="Rewrite.NET.Rewrite,Rewrite.NET" name="Rewrite.NET" />
Line 423:                  <!--<add name="XHTMLHTTPModule" type="AspNetResources.Web.XHTMLHTTPModule, XHTMLHTTPModule" />-->
Line 424:            </httpModules>

2. I cant debug both applications at the same time.  I've tried setting up a second web server (Abyss Web Server) on port 81 to take requests for the second applicaiton but it appears I cant debug the application.  I think IIS seems to only provide such an ability whereas Abyss is clueless.

Anyone have a solution on how to debug 2 seperate ASP.NET applications under Visual Studio .NET 2003 on the same local PC or at least know how to get around this Rainbow error message when trying to connect to a virtual folder that is outside its root folder?


Question by:barkin
    1 Comment
    LVL 5

    Accepted Solution


    you can debug two web applications.  Run both the web applications under IIS.

    Now run your first application and catch at any of  the breakpoint.  Now switch to your second application and follow these steps.

    1. select Debug->Process from the second application's IDE.
    2. Locate and select the aspnet_wp.exe (worker process) and then click "Attach".
    3. Select the "Script" and "CLR" in the pop-up box.

    thats it.  Now your second application can also be debugged as like the other one. Use breakpoints to debug.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now