Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

Last post 07-29-2009 4:35 PM by clduvall. 9 replies.

Sort Posts:

  • Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    01-04-2006, 11:08 AM
    • Member
      170 point Member
    • willc
    • Member since 08-24-2002, 11:00 AM
    • Posts 36

    Occasionally (the worst kind of bug) we get the following popup error in IE6 "Internet Explorer cannot open the Internet site, Operation aborted "  when you click on a menu item that has a dynamic child menu and continue to hover over the menu. It is more common on a slower machine. It is very sporatic on my machine - I reproduced it  perhaps once in a 100 tries, but another developer here gets it more like 1 in 10 tries. It seems to be related to control trying to alter the Dom  when the page has not completed loading.

    There used to be a similar problem with the menu in DotNetNuke - http://forums.asp.net/641014/ShowPost.aspx

    Is there any fix to this bug?

    Thanks

     

  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    01-04-2006, 6:16 PM
    • Contributor
      4,347 point Contributor
    • dannychen
    • Member since 08-24-2004, 12:17 PM
    • Redmond, WA
    • Posts 840
    • AspNetTeam
      Moderator
    Are you using the ASP.NET 2.0 Menu control or some other menu?  Can you paste a sample page with some instructions to reproduce your issue?
    --
    Danny
    disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    01-05-2006, 11:32 AM
    • Member
      170 point Member
    • willc
    • Member since 08-24-2002, 11:00 AM
    • Posts 36

    Danny

    Yes, it is the Asp.net 2 Menu control in a MasterPage. I will post a sample.

    Thanks

  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    01-31-2006, 3:15 PM
    • Member
      95 point Member
    • hensleyrob
    • Member since 12-20-2005, 8:18 PM
    • Amelia, OH
    • Posts 19

    I also have this problem although my menu isn't in a master page. It only happens when I put the mouse of the menu before the page is finished loading (which leads me to believe that's the issue, the page just isn't fully loaded yet).

    Is there a way to not let the menu show until the page is fully loaded, or any other way around this?

    Thanks,

    Rob

  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    02-01-2006, 8:05 AM
    • Member
      95 point Member
    • hensleyrob
    • Member since 12-20-2005, 8:18 PM
    • Amelia, OH
    • Posts 19

    Let me rephrase that. Mine may be in a master page depending on how you look at it. Well, the more Ii think about it then I guess mine too is in a master page (it's in a user control which is on the master page). Is this what's causing the problem, havnig the menu in the master page? Is there a fix for this that we know of yet or is it something we just have to live with? Thanks again and sorry for the confusion.

    Thanks,

    Rob

  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    02-01-2006, 8:56 AM
    • Member
      95 point Member
    • hensleyrob
    • Member since 12-20-2005, 8:18 PM
    • Amelia, OH
    • Posts 19

    Sorry to post agin so quickly, I was just looking through the source html that is generated for the page I'm getting the error on and noticed the code for my two menu controls is at the VERY bottom of the source. When I say code I mean the JavaScript that's used for the menu. It seems to me like this chunk of code should be generated before the menu control on the page rather then at the VERY end. Is there anyway to have this control generate it's code first (some page event, prerender, anything?) Or a way to tell ASP to generate the javascript at the top of the code rather then the bottom. Again, sorry to post again already, just trying to figure this out. Thanks!

    Thanks,

    Rob

  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    07-02-2007, 2:47 AM
    • Member
      20 point Member
    • sivamyneni
    • Member since 05-07-2007, 5:20 AM
    • Posts 24

    HI,

     I am also facing the same probelm. when i click on some hyperlink of my page sometimes its disaplyingthat internet explorer cannot open the internet site. some times it works fine. Please help me

    Thanks,

    SivaMyneni

    Siva.Myneni
  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    10-29-2007, 11:07 AM
    • Member
      30 point Member
    • ca4nul
    • Member since 10-11-2007, 11:47 AM
    • Posts 22

    Hi all

    any body find solution of this error. please let me know.

  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    05-08-2008, 2:32 PM
    • Member
      6 point Member
    • jaireth
    • Member since 06-07-2007, 3:41 PM
    • Posts 3

    This error is caused by executing javascript that in anyway changes an element on the page that has not completed loading. The greater issue is, that in this case that element/javascript is in the autogenerated code of the .NET menu. What I have done to fix this issue is to enclose my menu in a div. Give that div an ID and set it display:none. Then in your onload code call a function to set the display of the menu to inline or block (whatever your needs are).

     For example:

     <body onload="f_onload();">
          <div id="divMenu1" style="display: none;">
              <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal"></asp:Menu>
          </div>
          <script type="text/javascript" defer="defer">
            function f_onload() {
              var divMenu1=document.getElementById("divMenu1");
              var divMenu2=document.getElementById("divMenu2");
              divMenu1.style.display='inline';
              divMenu2.style.display='inline';
            }
        </script>    
    </body>

     This way, when your user goes to the site, the menu isn't displayed until after the page is finished loading. It is not displayed for only a moment, but that's the moment in which this error occurs.

  • Re: Menu Error - Internet Explorer cannot open the Internet site, Operation aborted

    07-29-2009, 4:35 PM
    • Member
      11 point Member
    • clduvall
    • Member since 05-28-2009, 10:49 AM
    • Posts 20

    Instead of displaying/hiding the menu, I placed a semi-transparent overlay div over the menu header then removed it in a similar fashion.   This got rid of some of the menu flicker.


    On body load :

    var do = $get('documentOverlay');
    if( do ) do.style.display = 'none'; 


    The overlay was styled as position: absolute.

Page 1 of 1 (10 items)