Abdulla AbdelHaq Blog


ForEach(Minute in MyLife)
MyExperience ++;

VS Debug Problem with IE8

 

Since this is my first post on Weblogs, I decide to write about a problem that has been opened frequently on ASP.NET official forum which is VS debugger crashes with IE8.

 

  I had answered the same problem 4 times, so I hope that some one will found this post very helpful if he is facing the same problem.

 

 

How VS debugger could be crashed with IE8?

 

If you opened multiple instances of IE8 and you attempt to debug your project, you mostly will have the issue where VS debugger just stops and ignores your break points!

 

 

Why was that?

 

Well, IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes.
http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie

Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process. 

 

To overcome this issue, you need to disable the process growth feature of LCIE by follow the below steps:

1)  Open RegEdit
2)  Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
3)  Add a dword under this key called TabProcGrowth
4)  Set TabProcGrowth to 0

 If you run into the same problem on Vista or newer, you will also need to turn off protected mode.

And then go a head and start debugging your code :)

 

 

~ Abdulla AbdelHaq

Comments

ahaliav said:

thank you very mutch!!!

# June 9, 2009 6:49 AM

jc said:

thanks

# June 26, 2009 12:35 AM

aboobacker said:

Thanks a Lot Abdel Haq

# June 29, 2009 1:10 AM

Sterling said:

Thanks, that's just what I needed.

# July 1, 2009 11:30 AM

Sanatan said:

Awesome. Thanks a lot!

# July 6, 2009 3:48 PM

Manjula said:

Really great !! it worked for me

# July 7, 2009 9:03 PM

EastGuy said:

Very helpful indeed. A million thanks.

# July 10, 2009 2:11 AM

Naziha said:

thanx a million.

# July 10, 2009 6:11 AM

Mukesh said:

Thanks.Intance solution

# July 15, 2009 1:01 AM

Jay.Pimentel said:

Thank you very much! Simply awesome!

# July 20, 2009 2:45 AM

Hami said:

Thanks a lot, you ended my headache...

# July 21, 2009 3:05 PM

stive said:

Awesome! Thanks.

# July 21, 2009 8:44 PM

Glactin said:

Thanks... it worked... this should be a tech guide for MS.... Abdulla this is gr8...

# July 23, 2009 6:59 AM

Brasilian Boy said:

Thanks...

WOrked...

Simply awesome!

# July 23, 2009 8:17 AM

Baris said:

Thanks, saved my day...

# July 23, 2009 11:26 AM

Ron Ernest said:

Much Appreciated, thanks!

# July 26, 2009 8:55 AM

Reddy said:

Awesome.. man!!

# July 26, 2009 8:16 PM

Abdulla.Abdelhaq said:

one of the comments said that it should be a MS tech guide.

I do not know how to tell Microsoft Tech Guide about this.

However, I am really happy that my article helped so many people.

Thanks to all :)

# July 27, 2009 2:44 PM

Sibusiso said:

Thanks, Now I can start debugging, Much appreciated.

# July 28, 2009 2:22 AM

Dave G said:

bleeping microsoft.... big thx... you've saved me some serious frustration!

# July 28, 2009 4:52 AM

Ed said:

wow that worked GREAT  Thanks!

# July 28, 2009 3:50 PM

Joel said:

This helped me as well. Thank you!

# July 28, 2009 4:29 PM

d0wang said:

Voila! Thanks a lot!

# July 28, 2009 10:10 PM

Devendra said:

thanks

# July 29, 2009 9:33 AM

mohammad said:

thanks dear :)

but my problem havn't solved completely

my VS stays in debug state but it dont stop any  break point :(

# July 30, 2009 4:08 AM

Sharath said:

Thank you very much. It's very helpful.

# July 30, 2009 9:48 AM

Abdulla.Abdelhaq said:

Re: Mohammad,

Hello Mohammad,

Your webapplication should  be compiled with zero errors.

Also delete the old files in the ASP.NET temporary file.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ YOUR APPLICATION NAME

# July 30, 2009 11:41 AM

Dheeban said:

Thanks a lot man

# July 31, 2009 12:12 AM

dannyg said:

thanks!!!

# July 31, 2009 4:43 AM

Anthony said:

THANK YOU!  I'm surprised Microsoft hasn't released a patch or some type of update for VS 2005 ?

You rock!

# July 31, 2009 2:13 PM

Ba Nyar said:

THANK YOU VERY MUCH. You are the Genius.

# August 2, 2009 6:12 AM

Dimitris said:

guess what ... thanks!

# August 3, 2009 8:10 AM

scarface said:

awesome thanks!!!

# August 5, 2009 11:45 AM

arun said:

After i restarted vs2005 it works fine, nextday i was trying to debug, its not debugging, why?

# August 6, 2009 5:34 AM

jonathan said:

Thank you!  Problem solved!

# August 9, 2009 11:03 AM

olga said:

you are genious. THANK YOU!!!

# August 10, 2009 8:18 AM

Dhara3011@gmail.com said:

Thanks a lot Abdulla.

Saved lots of time....

# August 10, 2009 9:46 AM

kavitha said:

Thank you very much. It helped me a lot.

# August 11, 2009 5:33 AM

camilo said:

Great. Thanks!

# August 12, 2009 1:59 PM

Ajay said:

This is really awesome...great help mate..

# August 13, 2009 8:29 AM

Mahwish said:

Thnx!

# August 19, 2009 9:43 AM

Shilpa said:

Thanks Abdulla...It helped me a lot !

# August 20, 2009 7:16 AM

Gulrez said:

Thank you bro,,,

I was stuck in the problem and got most valuable solution frm ur side.

# August 21, 2009 10:03 AM

Ganesh_Ranganathan said:

Your solution works!!!

# August 22, 2009 2:45 PM

tmmac said:

muchass gracias si funciono!!!

# August 23, 2009 7:52 PM

Visvesh said:

Awesome ! Thanks a lot . Saved my Day !!

# August 25, 2009 10:50 AM

Josh Stodola said:

Thank you, this worked for me

# August 25, 2009 12:06 PM

Jie said:

Thank you so much. It works!!!

# August 25, 2009 12:31 PM

Matey said:

Great,save me a lot of time. Whish you all the best.

# August 25, 2009 5:59 PM

Gareth said:

Abdulla for president.

# August 26, 2009 5:02 AM

jgoeke said:

You're the man!  

Why oh MS can't get there stuff together, or at least post this solution!

# August 26, 2009 1:52 PM

Ayaz said:

Thx buddy.. ur post has solved one more's problem.. good one

# August 27, 2009 2:17 AM

Prashanth.K.R said:

Great article...Thank you so much.

# August 27, 2009 2:26 PM

Rahul said:

Thanks a lot.. it's really great. could you please let me know how did you find this solutin?

# August 28, 2009 7:17 AM

barry said:

Very cool!  Works like a charm.  You just made a hugh contribution to human kind.

# August 28, 2009 10:09 PM

Basel said:

From Amman, Yeslamoooooooooooooo

# August 30, 2009 3:26 AM

David said:

Thanks, that solve the problem for me. My solution has 5 projects; 4 of which work but the 5th one didn't. Now it will debug. Thanks!

# September 2, 2009 3:14 PM

Simon Hawkin said:

Thanks, Abdulla. Really sad that MS would not make sure the new normal mode IE is back-compatible, or at least issue a note of warning.

# September 3, 2009 12:33 PM

A - South Africa said:

Thank you for this blog post!

Had this issue for a couple of days and it was driving me nuts. As soon as I modified my registry everything was back to normal.

# September 9, 2009 5:38 PM

Abdul Samad said:

May Allah give you success in your both lifes

# September 10, 2009 3:34 AM

Raghuram Beemreddy said:

Thanks a lot. It worked fine.

# September 10, 2009 9:12 PM

Kevin Godden said:

Thanks so much for this, it saved me a whole lot of pain and anguish!

# September 16, 2009 6:16 AM

Alberto said:

Works excellent!. Tested on XP and IE8 with VS2005. Saved a lot of time, fuzzy behaviour before.

Congratulations!

# September 16, 2009 9:04 AM

Mareo Code » Visual Studio 2005: ASP.NET debugger doesn’t work with Internet Explorer 8 installed said:

Pingback from  Mareo Code » Visual Studio 2005: ASP.NET debugger doesn’t work with Internet Explorer 8 installed

# September 17, 2009 4:19 AM

Prasanna said:

Thanks a lot.. Its working perfectly...

# September 17, 2009 7:46 AM

Noam giladi said:

Abdulla, you are the man!

# September 22, 2009 2:10 AM

fhenderson said:

Thanks much for saving me some time posting on a forum and waiting for a reply. This worked right away!

# September 22, 2009 1:57 PM

Héctor (hgs) said:

Just great! This chain of comments has become almost fan mail! Best!

# September 25, 2009 7:01 PM

Gabriel said:

Thanks so much!! that did it!!

# September 28, 2009 3:52 PM

mo said:

thanks! it worked right away!

# September 28, 2009 4:59 PM

James said:

Thanks! This was perfect...

# September 30, 2009 10:26 AM

Kiran said:

Thanks, its perfect solution for problem...

# September 30, 2009 10:41 AM

Nahji Peel said:

awsome.  Was driving me nut!  Thank you!

# October 1, 2009 4:39 PM

Julie Kern said:

Thanks!  Awesome - this was a big problem for me.  

# October 2, 2009 11:45 AM

klod said:

Thanks, man. I've been crazy for weeks with all iexplorer.exe processes running while debugging.

# October 2, 2009 3:17 PM

Pufster said:

So simple once you know, many thanks for this

# October 4, 2009 6:04 PM

Aparna.L.R said:

Thankz! This was perfect.

# October 5, 2009 5:41 AM

Candida said:

Thanks,

   I was going to tear my hair in clumps

# October 6, 2009 7:21 AM

simha said:

Thanks a lot Abdulla.

# October 7, 2009 2:49 AM

Abdul Mannan said:

Dear this is awsome Work..

this got me out of hell. .Thanks Alot

i thought there was some problem with the updates of  vs2005 and will be correct after some-time when identified...

# October 7, 2009 3:09 AM

Niruka said:

Thanks Dude

# October 8, 2009 6:36 AM

Srnivas said:

Perfect.. it was so frustating to attach process to overcome this..

Thanks for solution!!

# October 8, 2009 3:24 PM

Basim said:

thanx very much man

keep the good solutions, i am just after ya  :)

# October 9, 2009 11:06 AM

ilker said:

Thanks very much Abdulla

# October 10, 2009 3:14 AM

Matt said:

thanks - perfect!

# October 10, 2009 9:18 PM

Stephanie said:

This debugger problem has been giving me headaches for weeks.

This absolutely worked.  Dude, you totally rock!  

# October 13, 2009 11:34 AM

majezik said:

thanks a lot :)

# October 15, 2009 3:47 AM

itsik said:

you are a good & smart man

thank you

so simple

# October 16, 2009 11:39 AM

kk said:

thanks for that

# October 20, 2009 7:27 PM

JK said:

THANKS MUCH!

# October 24, 2009 10:17 PM

maqsood said:

Thanks

It worked for me. :)

Microsoft should fix it

# October 28, 2009 5:55 PM

Problem with IE8 and VS – yey Microsoft \o/ « “A erva sempre acaba no meio da viagem” said:

Pingback from  Problem with IE8 and VS – yey Microsoft \o/ « “A erva sempre acaba no meio da viagem”

# October 29, 2009 8:30 AM

Miguel said:

Wow! I've been dealing with this problem for so long that I gave up.

Thanks a lot man! You rock!

# October 30, 2009 1:02 PM

Snehal said:

Thanks a lot

# November 3, 2009 12:42 AM

Ratheesh Kumar R said:

Thanks a lot Buddy...

I solved my probs because

of your article

once more thanks a lot ..

its an awsome work

# November 3, 2009 6:04 AM

Omar said:

Amazzing, it worked for me. Thanks a billion

# November 3, 2009 7:54 AM

KKKK said:

WOW !!! It really worked.

# November 5, 2009 7:27 AM

Krish said:

Thanks! It worked like a charm

# November 5, 2009 9:55 AM

Shahzad Afzal said:

Thank you alot... that really helped me. This bug really killed me almost... i reinstall IIS... tried many options.. but it was so simple.. thanks alot.

# November 6, 2009 2:14 AM

tom said:

thx, extremely efficient solution.

# November 12, 2009 12:29 PM

Abdulla.Abdelhaq said:

Celebration on my first 100 comments :)

Thanks to all :)

# November 12, 2009 2:13 PM

Ashutosh said:

Thanks for the perfect solution.......

# November 13, 2009 2:28 AM

Quan L said:

thanks!

# November 13, 2009 1:31 PM

Shavkat said:

Many thanks! I've been looking for solution for a long time!

# November 14, 2009 6:04 PM

Nyxator said:

Thanks a biggy!!!

You saved me tonnes of headache trying to figure this one out.

Kudos m(_ _)m ... ur da man!

# November 15, 2009 12:28 AM

Nic Martel said:

Sunday Nov. 15th, 2009 2:09AM

.

The behavior described above got corrected automatically, on my XP Pro setup at work... don't know how, except I noticed that when entering or exiting Debug I had to be careful to slow down my clicking and wait... if I go to fast trying to Debug something back to back rapidly... it fails.  It worked for a long time a year or more, and all of the sudden it comes back and I could not resolve it.

BUT CONSIDEER THIS SCENARIO!

I believe the issue I now face is related in the sense that it is due to IE 8, on my brand new setup at home(see below).

The VS Debugger times out after about 1 minute+ debugging even the simplest 'Hello world' .NET VB app

This is a brand new setup... all I did is install and work thru all the issues to get everything to work properly.

- I am able to create projects

- I access the Database from the SQL Server Explorer and make changes to schema and data

- I access the Database thru the site(able to login etc...)

- DEBUG???!!! FORGGGGGET IT! 2 minutes max and YOU ARE OUT!

The Visual Studio Debugger whether in Studio Debug or IIS Debug times out within a 2 minutes mark.

The debugger times out on the simplest VANILLA 1 page 'Hello world' app.

Take note: This is a clean NEW install.

My Current SETUP:  (new setup at home)

- Dual Core 64bit/32bit(x86)

- WINDOWS 7 Pro(latest updates installed)

- Visual Studio 2008 Pro SP1

- Framework 3.5(you know...piggybacked on 2.0, 3.0, SPx...)

- SQL Server Express 2005 (part of the Visual Studio install), SP3 installed on top

- IIS 7.5 comes with WINDOWS 7 Pro (all integrated, does not show in Programs installed or Updates installed, one turns it on by going to windows features)

 Incidentally:  The manager for 7.5 still is listed in program files as the 6 version. (will verify that and see what the discrepancy is)

- Latest version of IE (8...)

# November 15, 2009 2:09 AM

NIc Martel said:

- forgot to mention that I applied the fix above, to no avail.

- Also I ommitted to mention that I have tried all of the suggested configs and setups I found on the internet to no avail.

- and the path stated above to temp ASP.NET files, I was unable to correlate to the WINDOWS 7 mappings.

Hopefully that is that it will take.

# November 15, 2009 2:14 AM

Nic Martel said:

New Discovery:

When I run the app using IIS instead of the VS built-in Web Server, I fails to see my data... I don't know why yet.

Have not investigated.

All I did was to go in Project-MySite Properties-Web TAB and changed it to VS Dev Server... and immediately attempted a login succesfully.

Thus I may have 2 problems.

.

# November 15, 2009 2:39 AM

gary1001 said:

Hi,

I am not to able to debug my application in Win 7 with IE 8.I tried your fix but I see that there is alredy a key existing in the registry with the same name.

What can you suggest?

Thanks.

# November 18, 2009 5:10 PM

Rob said:

This fix works well. Thanks

# November 18, 2009 7:15 PM

Randeep said:

Thanks for your help.. it reduced my task very much

# November 19, 2009 2:33 AM

Jasna said:

Thanks a lot................. I was behind this for the past 2 to 3 weeks, did a lot of browsing.... at last i got it here. thank you so much......

# November 19, 2009 5:43 AM

Abdulla.Abdelhaq said:

RE: gary1001

If you run into the same problem on Vista or newer, you will also need to turn off protected mode.

# November 20, 2009 3:54 PM

Abdullah Khan said:

jazaak Allahu Khair.....

Alhamdulillah worked Absolutely fine

# November 22, 2009 9:26 PM

Kris said:

Man.. thanks a lot.. U r a life saver.

# November 25, 2009 10:21 AM

cramossan said:

It worked perfectly for me. Thanks for the info.!

# November 25, 2009 1:54 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)