9
2010
Unable to debug webpart in Visual Studio 2010 (moss 2007)
Hey everyone
Today I had a problem that kept me busy for 2 hours.
I loaded up an old webpart (was in type class library and I’ve build the webpart entirely via code) and I wanted to debug it.
Deployed the webpart and activated the feature, checked the DLL was in the GAC (global assembly cache).
Visual Studio loaded up the solution, added a breakpoint in the constructor, attach to process. Ok the red dot was filled so all was good.
Ok let’s go debugging, eeuhm, that’s strange the webpart is being displayed and the breakpoint isn’t being hit.
After searching for 30min, I used my best friend (google
)
Found a few possible solutions, saying that it’s a 32-64bit setting in IIS. Ok let’s change it (advanced setting in IIS web app ) , nope didn’t work
Another one was in Microsoft.net\framework\v4…… \ ASPNET_REGIIS -ir , nope didn’t work as well
Last one , basic setting in IIS , change to classic and V4 , still nothing.
Changed the 32-64bit, V4 back to normal and starting to look again.
To make a long story short. If you can attach to the process, it all appears normal but VS2010 doesn’t want to hit any breakpoints. Go to Tools -> attach to process -> select the W3WP and before you hit attach, check the “attach to” field.
If this is on Automatically, this could be your problem. Especially when it says “Automatic: Managed (v4.0) code, T-SQL code” .
Change it to manual and only select “Managed (v2.0, v1.1, v1.0) code”.
This did it for me
happy debugging




Thanks much for the purpose of this distribute,it has been a excellent go through,can’t bide time until more enhancements Lock & Key Service 618 Church Street, Nashville, TN 37219,615-834-7689
For reasons uknown i’m ending up with a blank page as i make an attempt to post a comment,do you know the actual reason why its heading?
It is truely very good post, but I do not see everything completely clear, especially for someone not involved in that topic. Anyway very interesting to me.
Effect hustings comestible pills phentermine online that will effectively build up weight loss, actual is capital to glom for pills that have the ingredients that will exalt your body¡¯s metabolism, or the power of the body to flame useless fats.
Hey, I am quite interested in your site. If I were to use this website, I could earn you 200-1000 USD daily. I am willing to work on monetizing your site, on the condition that you share 50% of revenues with me. If you are interested, please send me an email.
Hello, I noticed a 3 of your interesting posted posts and wished to ask in case you would be keen on reciprocal pages? Team have weblog about alexis texas ass! Anyway, in my language, there usually are not much good source like this.
Laurence J. Peter~ Originality is the fine art of remembering what you hear but forgetting where you heard it.
Hrmm that was weird, my comment got eaten. Anyway I wanted to say that it’s nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere. This was the first place that told me the answer. Thanks.
Hello ? very good website you have created. We enjoyed scanning this posting. I did want to create a remark in order to tell you that the design of this website is very great looking. I had been a artist, right now I am a duplicate publisher. I’ve always loved working with computers and ‘m learning code in my spare time.
good info !
Mate! This blog site is awesome! How do you make it look this good .
There is so a lot far more to study about this topic. I consider you have hit on some truly beneficial points.
I’ll definitely have to look into this. Thank you!
Nice and very informative post. Your opinion is more or less the same as main. Thanks!
I was really into searching for a site where I could find some skilful articles, and here I am now well I am really flabbergasted.
You are doing a gorgeous job here, writing articles like this one. Thanks a lot, seems like you save my day.
Hi,
Your theme is looking great, just liked it.
Can I make a suggestion? I feel youve bought one thing good here. However what in case you added a couple links to a web page that backs up what youre saying? Or maybe you possibly can give us one thing to look at, something that may connect what youre saying to something tangible? Just a suggestion. Anyway, in my language, there are usually not a lot good source like this.
Thank you for taking the time to go over this, I feel highly about it as well as love understanding more on this particular subject. If at all possible, while you obtain expertise, would you mind updating your site with increased info? It is extremely helpful for me.
thanks to the author for taking his time on this one.
Thank you for such a fantastic blog. Where else could one get this kind of info written in such an incite full way? I have a presentation that I am just now working on, and I have been looking for such information.
I am normally into blogging pleased. The article really peaks my interest. I am going to bookmark