Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

VS Debugging Issue with IE8

microsoft.public.internetexplorer.general






Speedup My PC
Reply
  #1 (permalink)  
Old 06-10-2009
JohnHorb
 

Posts: n/a
VS Debugging Issue with IE8
Not sure whether this belongs here or under VS2008, but since it seems to
relate to IE8....

Since upgrading from IE7 to IE8, when attempting to start an ASP.NET
application for debugging from VS2008, I frequently get 'Unable to start
program <app name>. Element not found'. The browser opens, but remains
'Connecting..'. The only way to close the browser is via task manager. If I
try several times, eventually the app will start successfully. After this, as
long as I do not exit VS, I seem to be able to restart consistently. The same
happens regardless of whether I use the 'development' browser or localhost.
I've tried suggestions to ensure 'protected mode' is off and localhost is
added to the 'trusted sites', but to no avail. I have never experienced this
issue with IE7. Is this a known 'feature' and is there a workaround? I'm
using VS2009 SP1 on Vista 32 bit.

Regards

John
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-10-2009
JohnHorb
 

Posts: n/a
RE: VS Debugging Issue with IE8
VS2009 SP1 should of course read VS2008 SP1

"JohnHorb" wrote:

> Not sure whether this belongs here or under VS2008, but since it seems to
> relate to IE8....
>
> Since upgrading from IE7 to IE8, when attempting to start an ASP.NET
> application for debugging from VS2008, I frequently get 'Unable to start
> program <app name>. Element not found'. The browser opens, but remains
> 'Connecting..'. The only way to close the browser is via task manager. If I
> try several times, eventually the app will start successfully. After this, as
> long as I do not exit VS, I seem to be able to restart consistently. The same
> happens regardless of whether I use the 'development' browser or localhost.
> I've tried suggestions to ensure 'protected mode' is off and localhost is
> added to the 'trusted sites', but to no avail. I have never experienced this
> issue with IE7. Is this a known 'feature' and is there a workaround? I'm
> using VS2009 SP1 on Vista 32 bit.
>
> Regards
>
> John

Reply With Quote
  #3 (permalink)  
Old 06-10-2009
rob^_^
 

Posts: n/a
Re: VS Debugging Issue with IE8
Hi John,

Remove local host from your Trusted sites zone. You don't need it as IE will
automatically detect intranet sites.

First, open IE from the VSIDE with a page that does work and use
Tools>Internet Options - Advanced tab, uncheck "Automatically recover from
rendering errors with Compatibility View",
optional - uncheck "Enable automatic crash recovery*"

Tools>Compatibility View Settings - (optional) uncheck "Include updated
website lists from Microsoft" , "Display all websites in Compatibility
View", and depending if you are developing for an IE Intranet site "Display
intranet sites in Compatibility View"

You have to change IE settings here because it is running with the asp.net
debug user account. Stop the VS debug session then re-launch your problem
page with the new settings in effect.


Your error message "Element not found" indicates that you are trying to
manipulate an element on your page that has not yet been created in the DOM.
This occurs in IE8 because of the way it builds the DOM as the page is
loaded. Possibly you are using an AJAX update panel and trying to setfocus
on an input field in the page load event.

The steps I outlined above should enable you to load the page and then use
the Developer tool to debug the error.

Regards.

"JohnHorb" <JohnHorb@discussions.microsoft.com> wrote in message
news:E3DBC32E-E7BF-4C4E-A5D2-4B5BB2D7A3D7@microsoft.com...
> Not sure whether this belongs here or under VS2008, but since it seems to
> relate to IE8....
>
> Since upgrading from IE7 to IE8, when attempting to start an ASP.NET
> application for debugging from VS2008, I frequently get 'Unable to start
> program <app name>. Element not found'. The browser opens, but remains
> 'Connecting..'. The only way to close the browser is via task manager. If
> I
> try several times, eventually the app will start successfully. After this,
> as
> long as I do not exit VS, I seem to be able to restart consistently. The
> same
> happens regardless of whether I use the 'development' browser or
> localhost.
> I've tried suggestions to ensure 'protected mode' is off and localhost is
> added to the 'trusted sites', but to no avail. I have never experienced
> this
> issue with IE7. Is this a known 'feature' and is there a workaround? I'm
> using VS2009 SP1 on Vista 32 bit.
>
> Regards
>
> John


Reply With Quote
  #4 (permalink)  
Old 06-11-2009
JohnHorb
 

Posts: n/a
Re: VS Debugging Issue with IE8
rob^_^

Thanks for your response. I've tried your suggestions, but to no avail. I've
also tried setting various .aspx pages, and even a trivial .html page, in my
project as the start page, in case it was an issue with a specific page, but
I get the problem with all of them. The only thing I can think of which might
be relevant is that the project was originally developed under VS2003, then
upgraded. Could it be anything to do with (e.g.) the !DOCTYPE settings?

I should emphasise that the application runs fine under IE8 outside the VS
environment (apart from the 'frameset' issue I posted about separately).

Regards

John


"rob^_^" wrote:

> Hi John,
>
> Remove local host from your Trusted sites zone. You don't need it as IE will
> automatically detect intranet sites.
>
> First, open IE from the VSIDE with a page that does work and use
> Tools>Internet Options - Advanced tab, uncheck "Automatically recover from
> rendering errors with Compatibility View",
> optional - uncheck "Enable automatic crash recovery*"
>
> Tools>Compatibility View Settings - (optional) uncheck "Include updated
> website lists from Microsoft" , "Display all websites in Compatibility
> View", and depending if you are developing for an IE Intranet site "Display
> intranet sites in Compatibility View"
>
> You have to change IE settings here because it is running with the asp.net
> debug user account. Stop the VS debug session then re-launch your problem
> page with the new settings in effect.
>
>
> Your error message "Element not found" indicates that you are trying to
> manipulate an element on your page that has not yet been created in the DOM.
> This occurs in IE8 because of the way it builds the DOM as the page is
> loaded. Possibly you are using an AJAX update panel and trying to setfocus
> on an input field in the page load event.
>
> The steps I outlined above should enable you to load the page and then use
> the Developer tool to debug the error.
>
> Regards.
>
> "JohnHorb" <JohnHorb@discussions.microsoft.com> wrote in message
> news:E3DBC32E-E7BF-4C4E-A5D2-4B5BB2D7A3D7@microsoft.com...
> > Not sure whether this belongs here or under VS2008, but since it seems to
> > relate to IE8....
> >
> > Since upgrading from IE7 to IE8, when attempting to start an ASP.NET
> > application for debugging from VS2008, I frequently get 'Unable to start
> > program <app name>. Element not found'. The browser opens, but remains
> > 'Connecting..'. The only way to close the browser is via task manager. If
> > I
> > try several times, eventually the app will start successfully. After this,
> > as
> > long as I do not exit VS, I seem to be able to restart consistently. The
> > same
> > happens regardless of whether I use the 'development' browser or
> > localhost.
> > I've tried suggestions to ensure 'protected mode' is off and localhost is
> > added to the 'trusted sites', but to no avail. I have never experienced
> > this
> > issue with IE7. Is this a known 'feature' and is there a workaround? I'm
> > using VS2009 SP1 on Vista 32 bit.
> >
> > Regards
> >
> > John

>
>

Reply With Quote
  #5 (permalink)  
Old 06-11-2009
rob^_^
 

Posts: n/a
Re: VS Debugging Issue with IE8
Hi John,

Try adding an entry in your VS Browsers list for IE (noAddons)

Right Click on a aspx or html file in Solution Explorer and select Browse
with.. from the context menu.

Click Add

Filename: "C:\Program Files\Internet Explorer\iexplore.exe" -extoff
(Copy and paste exactly assuming that iexplore.exe is in the same folder as
mine)
Friendly Name: IE noAddons

Click OK, You will be prompted that the file name is invalid. Click NO
!important.

Set IE noAddons as your default browser...... now when you launch your web
from VS it will use the default IE noAddons.

(Tip: you may also like to add other browsers to your VS browser list so you
can test for cross browser compatibility)

There are some popular IE Addons that inject markup into pages. The WOT (Web
of Trust) is one that comes to mind that may be causing errors when you load
a localhost file.

Check for updates from the Vendors for any Addons that you have installed.
If you are running VS Test, no-addons mode may stop the test execution.

You can also disable Toolbars and BHO's. Without any IE windows open, go
Start>Control Panel>Internet Options - Advanced tab, uncheck "Enable
third-party browser extensions" and save your changes. The next time you
open IE either from the desktop or from VS, Toolbars and BHO's will be
disabled.

If you are testing your own .net IE Addons, then no-addons mode won't work.
There is a known issue with running .net addons compiled with different
versions of the .net framework, but any addon you develop should test the
domain property of the current document and ignore local host.

Regards.

"JohnHorb" <JohnHorb@discussions.microsoft.com> wrote in message
news:C35FA446-FD0E-4337-A4D8-D1C13A5E7972@microsoft.com...
> rob^_^
>
> Thanks for your response. I've tried your suggestions, but to no avail.
> I've
> also tried setting various .aspx pages, and even a trivial .html page, in
> my
> project as the start page, in case it was an issue with a specific page,
> but
> I get the problem with all of them. The only thing I can think of which
> might
> be relevant is that the project was originally developed under VS2003,
> then
> upgraded. Could it be anything to do with (e.g.) the !DOCTYPE settings?
>
> I should emphasise that the application runs fine under IE8 outside the VS
> environment (apart from the 'frameset' issue I posted about separately).
>
> Regards
>
> John
>
>
> "rob^_^" wrote:
>
>> Hi John,
>>
>> Remove local host from your Trusted sites zone. You don't need it as IE
>> will
>> automatically detect intranet sites.
>>
>> First, open IE from the VSIDE with a page that does work and use
>> Tools>Internet Options - Advanced tab, uncheck "Automatically recover
>> from
>> rendering errors with Compatibility View",
>> optional - uncheck "Enable automatic crash recovery*"
>>
>> Tools>Compatibility View Settings - (optional) uncheck "Include updated
>> website lists from Microsoft" , "Display all websites in Compatibility
>> View", and depending if you are developing for an IE Intranet site
>> "Display
>> intranet sites in Compatibility View"
>>
>> You have to change IE settings here because it is running with the
>> asp.net
>> debug user account. Stop the VS debug session then re-launch your problem
>> page with the new settings in effect.
>>
>>
>> Your error message "Element not found" indicates that you are trying to
>> manipulate an element on your page that has not yet been created in the
>> DOM.
>> This occurs in IE8 because of the way it builds the DOM as the page is
>> loaded. Possibly you are using an AJAX update panel and trying to
>> setfocus
>> on an input field in the page load event.
>>
>> The steps I outlined above should enable you to load the page and then
>> use
>> the Developer tool to debug the error.
>>
>> Regards.
>>
>> "JohnHorb" <JohnHorb@discussions.microsoft.com> wrote in message
>> news:E3DBC32E-E7BF-4C4E-A5D2-4B5BB2D7A3D7@microsoft.com...
>> > Not sure whether this belongs here or under VS2008, but since it seems
>> > to
>> > relate to IE8....
>> >
>> > Since upgrading from IE7 to IE8, when attempting to start an ASP.NET
>> > application for debugging from VS2008, I frequently get 'Unable to
>> > start
>> > program <app name>. Element not found'. The browser opens, but remains
>> > 'Connecting..'. The only way to close the browser is via task manager.
>> > If
>> > I
>> > try several times, eventually the app will start successfully. After
>> > this,
>> > as
>> > long as I do not exit VS, I seem to be able to restart consistently.
>> > The
>> > same
>> > happens regardless of whether I use the 'development' browser or
>> > localhost.
>> > I've tried suggestions to ensure 'protected mode' is off and localhost
>> > is
>> > added to the 'trusted sites', but to no avail. I have never experienced
>> > this
>> > issue with IE7. Is this a known 'feature' and is there a workaround?
>> > I'm
>> > using VS2009 SP1 on Vista 32 bit.
>> >
>> > Regards
>> >
>> > John

>>
>>

>

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
windows debugging tool j lunis microsoft.public.windows.vista.performance maintenance 3 03-19-2009 23:33
Script Debugging for IE7 in Vista Patient Guy microsoft.public.windows.vista.general 0 07-13-2008 14:46
Debugging Stop 07E Marcus microsoft.public.windows.vista.general 0 07-04-2008 17:53
Debugging priveleges Moody Marco microsoft.public.windows.vista.performance maintenance 1 03-31-2007 00:41
Debugging tools Jeff microsoft.public.windows.vista.general 0 02-28-2007 22:16




All times are GMT +1. The time now is 23:12.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120