Monday, March 2, 2009

How to remote debug .Net assemblies that are deployed in GAC

Usually when you want to remote debug a .Net assembly, you would just run vsmon.exe in target machine and connect to it using VS->Tools->Attach Debugger option, Which would list all the processes running under that machine and you would hook in your debugger into desired process.

But when u want to debug an assembly which is deployed as part of GAC, then its not as simple as external process, bcoz you cant load your .mdb(debug file) into GAC, you might load your mdb files files using "Load Modules" option but most of the time VS throws symbols doesnt match error in this case. To make easy there is another way, go to your target machine, open win explorer and type windir/assembly/GAC_MSIL, now this would list all folders that are deployed in GAC, search for your assembly name, open the folder, you would find your dll file. Now copy your .mdb file and paste here. Now connect your VS debugger to the process which is using this GAC assembly. You would be able to debug your GAC assemblies without any issues.

12 comments:

Anonymous said...

Hi I'd like to thank you for such a terrific made forum!
I was sure this would be a perfect way to introduce myself!

Sincerely,
Hilary Driscoll
if you're ever bored check out my site!
[url=http://www.partyopedia.com/articles/transformers-party-supplies.html]transformers Party Supplies[/url].

Anonymous said...

Ciao ive just joined[url=http://autoclubnation.com/chad8hjan9].[/url]

Anonymous said...

like gambling? love las vegas? probe the all unexpected [url=http://www.casinolasvegass.com]casino[/url] las vegas at www.casinolasvegass.com with all mainly and beyond 75 in unoccupied [url=http://www.casinolasvegass.com]online casino[/url] games like slots, roulette, baccarat, craps and more and easy a captivating in existent coins with our $400 unconstrained bonus.
we be uncounted unvaried safer games then the superannuated online [url=http://www.place-a-bet.net/]casino[/url] www.place-a-bet.net! few more free casino games and free [url=http://www.2010-world-cup.info]casino bonus[/url] you can find at the 2 new [url=http://www.buy-cheap-computers.info]casino[/url] guides : www.2010-world-cup.info and www.buy-cheap-computers.info .

Anonymous said...

I am reading this article second time today, you have to be more careful with content leakers. If I will fount it again I will send you a link

Anonymous said...

Online guitar lessons are a great way to learn guitar. Cheaper and more convenient than private studio lessons, the technology is now at a point where the difference in quality is nonexistent and actually has many advantages.
[url=http://www.goarticles.com/cgi-bin/showa.cgi?C=2514060]Online Guitar Lessons[/url]

Anonymous said...

Hi, as you may already noticed I'm newbie here.
Hope to receive some help from you if I will have some quesitons.
Thanks and good luck everyone! ;)

Anonymous said...

professional personals [url=http://loveepicentre.com/]free dating belfast[/url] philippines dating http://loveepicentre.com/ christian dating

Anonymous said...

It's so easy to choose high quality [url=http://www.euroreplicawatches.com/]replica watches[/url] online: [url=http://www.euroreplicawatches.com/mens-swiss-watches-rolex/]Rolex replica[/url], [url=http://www.euroreplicawatches.com/mens-swiss-watches-breitling/]Breitling replica[/url], Chanel replica or any other watch from the widest variety of models and brands.

Anonymous said...

Hello. My wife and I bought our house about 6 months ago. It was a foreclosure and we were able to get a great deal on it. We also took advantage of the 8K tax credit so that definitely helped. We did an extensive remodeling job and now I want to refinance to cut the term to a 20 or 15 year loan. Does anyone know any good sites for mortgage information? Thanks!

Mike

Anonymous said...

No matter what others say, I think it is still interesting and useful maybe necessary to improve some minor things

Anonymous said...

coral calcium pills gluten freeultram drugs

[url=http://www.bebo.com/buylevitraonline1]buy dreampharmaceuticals levitra online[/url]

julia f. Baca said...

buy viagra

viagra online

generic viagra