Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am always facing the foll. error when I debug a .Net web application in Visual Web Developer Express 2010. I'm using IE 8

Unable to start program http://localhost:1802/Userlogin.aspx
Element not found.

Have anyone of you faced such issue, if so pls suggest a solution.
Posted
Comments
Herman<T>.Instance 3-Aug-11 4:51am    
what happens when you change 1802 in 1804?
CyborgForever 3-Aug-11 4:56am    
How to change the port no
Herman<T>.Instance 3-Aug-11 4:57am    
in the browser address bar
CyborgForever 3-Aug-11 4:59am    
This happens while debugging, the browser is blank "Windows internet explorer" with nothing on address bar, as soon as this opens its navigates to Webapplication VWD 2010 and pops this dialog box with error
Herman<T>.Instance 3-Aug-11 5:03am    
could you add the complete exception text?

1 solution

Does this thread help at all?

http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/78040c76-1bdb-45d2-ae14-320202067ea2/[^]



In IE 8
Go into tools internet options.

Click on security
Clieckon trusted sites

Add localhost as a trusted site.
Make sure protected mode checkbox is unchecked
Click OK
 
Share this answer
 
Comments
CyborgForever 3-Aug-11 5:17am    
it sayd "only site with https:// prefix can be added to trusted sites, when I try to add localhost and I dont have the option at all display as protected...
Dylan Morley 3-Aug-11 5:20am    
Try to turn off protected mode

Go to tools, then click on the security tab. Look for a box with a check named 'enabled protected mode', Untick that box and click apply, then restart Internet Explorer.

See this image for where it is

http://www.ctimls.com/Support/KB/Error%20Fixes/ie7-enable_protected_mode.png
CyborgForever 3-Aug-11 5:32am    
No I dont find any checkboxes present in that security for either of the options like trusted sites restricted sites etc.,I found that I get this issue when I debug the application without saving, thinking that VWD will autosave my aspx. Is there any way to set autosave when I debug. But when I give control S and then Debug its working fine with the same port number which I've already specified.
CyborgForever 3-Aug-11 6:21am    
I think the administrator has blocked the option of turning the protected mode off for the user. Is that the only option to avoid this problem
Dylan Morley 3-Aug-11 6:27am    
There seem to be a few other suggestions. e.g.

0 down vote accepted


Tools > Internet Options > Advanced Under the Browsing Section --- Uncheck the "Disable Script Debugging (Internet Explorer)

Disable automatic crash recovery in IE via 'Internet Options' -> 'Advanced' -> 'Browsing'.

However, if you're being locked down by a group policy you might not be able to change these settings?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900