all groups > visual studio .net debugging > september 2007 >
You're in the

visual studio .net debugging

group:

Config corruption?


Config corruption? Alec MacLean
9/7/2007 5:04:09 PM
visual studio .net debugging:
Hi,

I have a Web Application Project solution which has multiple sub-projects
that are configured to use nested master pages.

I have now got a problem with trying to debug (step-through) the solution.

The Visual Studio IDE freezes (non-responsive) and the IE browser just spins
waiting for content to load, which no longer happens. I then either have to
close VS (and submit an application crash report), or use Task Manager to
kill off the aspnet_wp worker process (which I need to repeat at least 4
times before the VS-IDE returns to normal).

I know the compiler is OK: If I just build the project being edited and
manually browse to the corresponding localhost sub-folder of the site it
corresponds with, the changes are being compiled and implemented correctly -
but of course I can't debug problems if they occur.

I have tested the scenario of creating a fresh solution, then creating a
copy of the root project and one sub-project in a temp area and recompiling
and setting a breakpoint. This all works as expected, allowing me to get
into debug mode and access breakpopints in the sub-project when required.
So this should indicate VS itself isn't broken.

I therefore wonder if there is some sort of corruption in one or more of the
config files that Visual Studio relies on for this particular solution.

Can anyone provide guidance that might help me correct this?

I could go down the route of re-creating all the sub projects and copying
the existing files over from the original project to the new version, but I
wondered if there was a quicker technique that would allow me to correct the
problem in the original solution directories?

For background info, just in case it's pertinent:-

The original solution has the root project (where the masterpages are kept),
then a total of 17 sub-projects.
This solution set up is configured as per the guidelines provided at:
http://blogs.msdn.com/webdevtools/archive/2006/07/01/652986.aspx


Thanks for any input.

Al

Re: Config corruption? - PDB files not being loaded after recompile Alec MacLean
9/10/2007 12:00:00 AM
This morning I followed up on my earlier attempt to "clean" the solution
files completely by copying all content to a holding area, then recreating
the entire solution again, only pasting back in the content files (aspx
pages, images, flash, etc) from the holding area, then adding the required
references and resources to the individual projects settings and the root
web.config where required.

This meant the project and solution files were all "as new".

I then recompiled each project (right-click -> Build) to generate the DLL's
in the root Bin folder.

I then set a breakpoint in one sub-project I'm currently working on. The
problem still manifested itself, with no code changes occuring.

I then "removed" all except three projects from the solution and tried
again. This time it worked - all remaining PDB files seem to load.

I then "added existing project" to the solution, adding each of the removed
projects one at a time, then running (F5) after each re-attached project (no
code changing or recompilation required). Each time it worked as it should,
allowing me to access the sub-project's breakpoint. This was without any
code changes occuring, so the associated PDB file has not changed.

I then made a very simple change (add a simple string var declaration) in
the sub-project in order to force a change to that projects debug symbols
file, and then re-ran the solution. Again I got the problem of the studio
going unresponsive and IE just waiting for content to load (which won't
happen).

I then found that If I removed and re-added just one of the sub-projects
(didn't matter which one) AFTER the sub-project recompilation, then
everthing would operate again OK. It is important to re-add the existing
project - just removing it doesn't seem to force VS to reload the new PDB
for some reason, whereas the remove + add process does.

If anyone can shed light on this behaviour by VS I'd be mighty grateful!

Thanks

Al



[quoted text, click to view]

Re: PDB files not being loaded after recompile Alec MacLean
9/12/2007 12:00:00 AM
Another day and another discovery....

After finding on Monday that removing and reloading a sub-project forced the
use of the updated PDB files, I thought I had a suitable work-around. then
yesterday on one build iteration this approach also failed. (Possibly just
due to my impatience and being too quick on the clicking).

I then found that by using Task Manager to kill off the aspnet_wp.exe (XP's
localhost asp.net worker process) before running the solution, this seemed
to resolve the issue. I'm hoping I don't now find that this stops helping
after a few tries.

I'm starting to get paranoid - I'm sure someone is now changing the rules
behind the scenes - each time I find a solution it gets plugged to break at
some other point! Finger in the dam....

Al


[quoted text, click to view]

AddThis Social Bookmark Button