[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Debugging Web Apps?

Posted on 2006-05-29
1
Medium Priority
?
359 Views
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?

CHeers.


0
Comment
Question by:barkin
1 Comment
 
LVL 5

Accepted Solution

by:
Sam_Jayander earned 500 total points
ID: 16784724
Hi,

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.

HTH,
--Sam.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month19 days, 22 hours left to enroll

873 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