ASP.NET Webpage never loading - debug from VS (2015, 2017)











up vote
0
down vote

favorite












I have a very strange problem I'm fighting with since VS 2015 (maybe even 2013).
Now I'm working with VS 2017 and it still occurs.



Here is the situation.
I have a legacy web application (Webforms, later enhanced by integrating webapi REST with javascript/html client code, some WCF endpoints, etc).



I build and start debug session from within VS (I do debug/testing mostly with Chrome and FF, rarely with IE/Edge/etc.), and I use IIS Express.



Most of the time the application debug session starts just fine - the page loads in browser and I can either debug server side in VS / client side in browser's debug tools.



But sometimes, the page actually never completes loading, and no matter how long I wait, it just stays locked on "loading..." message.



The only solutions I found are:
- either restart PC
- or (in Chrome), start browser in new identity.
- switch to a different browser (e.g. after starting with Chrome, open page in FF - or vice-versa).



When the page loads normally, the VS's Output Debug window displays various tracing / debug messages or progress of loading various dlls.



VS Output Debug when page loads and executes ok



However, as soon as the problem described above starts to happen, the VS Output Debug starts to log msgs like



The thread <#nnnn> has exited with code 0 (0x0).


VS Output Debug when page no longer loads



When this starts to happen, no matter what I do (except starting browser in new identity / change browser / restarting PC) I can no longer debug.
No matter if I totally close and restart the browser, clear cache, close and restart VS / IIS. Nothing helps.



The situation mentioned above occurs at very random intervals.
Sometimes I can work and debug for days (I suspend / hibernate the PC at the end of the day, resume next days, end everything works ok).
However other times the issue occur after just starting few debug sessions, and on occasions, even after a full shutdown / restart, at very first debug session, this happens.



I have lived with it for long time, but sometimes is very annoying.



Anyone have experienced a similar issue?
Any idea what is causing it, and is there is any fix / workaround?



Thank you










share|improve this question
























  • msdn.microsoft.com/en-us/library/…
    – Lex Li
    Nov 8 at 13:44















up vote
0
down vote

favorite












I have a very strange problem I'm fighting with since VS 2015 (maybe even 2013).
Now I'm working with VS 2017 and it still occurs.



Here is the situation.
I have a legacy web application (Webforms, later enhanced by integrating webapi REST with javascript/html client code, some WCF endpoints, etc).



I build and start debug session from within VS (I do debug/testing mostly with Chrome and FF, rarely with IE/Edge/etc.), and I use IIS Express.



Most of the time the application debug session starts just fine - the page loads in browser and I can either debug server side in VS / client side in browser's debug tools.



But sometimes, the page actually never completes loading, and no matter how long I wait, it just stays locked on "loading..." message.



The only solutions I found are:
- either restart PC
- or (in Chrome), start browser in new identity.
- switch to a different browser (e.g. after starting with Chrome, open page in FF - or vice-versa).



When the page loads normally, the VS's Output Debug window displays various tracing / debug messages or progress of loading various dlls.



VS Output Debug when page loads and executes ok



However, as soon as the problem described above starts to happen, the VS Output Debug starts to log msgs like



The thread <#nnnn> has exited with code 0 (0x0).


VS Output Debug when page no longer loads



When this starts to happen, no matter what I do (except starting browser in new identity / change browser / restarting PC) I can no longer debug.
No matter if I totally close and restart the browser, clear cache, close and restart VS / IIS. Nothing helps.



The situation mentioned above occurs at very random intervals.
Sometimes I can work and debug for days (I suspend / hibernate the PC at the end of the day, resume next days, end everything works ok).
However other times the issue occur after just starting few debug sessions, and on occasions, even after a full shutdown / restart, at very first debug session, this happens.



I have lived with it for long time, but sometimes is very annoying.



Anyone have experienced a similar issue?
Any idea what is causing it, and is there is any fix / workaround?



Thank you










share|improve this question
























  • msdn.microsoft.com/en-us/library/…
    – Lex Li
    Nov 8 at 13:44













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a very strange problem I'm fighting with since VS 2015 (maybe even 2013).
Now I'm working with VS 2017 and it still occurs.



Here is the situation.
I have a legacy web application (Webforms, later enhanced by integrating webapi REST with javascript/html client code, some WCF endpoints, etc).



I build and start debug session from within VS (I do debug/testing mostly with Chrome and FF, rarely with IE/Edge/etc.), and I use IIS Express.



Most of the time the application debug session starts just fine - the page loads in browser and I can either debug server side in VS / client side in browser's debug tools.



But sometimes, the page actually never completes loading, and no matter how long I wait, it just stays locked on "loading..." message.



The only solutions I found are:
- either restart PC
- or (in Chrome), start browser in new identity.
- switch to a different browser (e.g. after starting with Chrome, open page in FF - or vice-versa).



When the page loads normally, the VS's Output Debug window displays various tracing / debug messages or progress of loading various dlls.



VS Output Debug when page loads and executes ok



However, as soon as the problem described above starts to happen, the VS Output Debug starts to log msgs like



The thread <#nnnn> has exited with code 0 (0x0).


VS Output Debug when page no longer loads



When this starts to happen, no matter what I do (except starting browser in new identity / change browser / restarting PC) I can no longer debug.
No matter if I totally close and restart the browser, clear cache, close and restart VS / IIS. Nothing helps.



The situation mentioned above occurs at very random intervals.
Sometimes I can work and debug for days (I suspend / hibernate the PC at the end of the day, resume next days, end everything works ok).
However other times the issue occur after just starting few debug sessions, and on occasions, even after a full shutdown / restart, at very first debug session, this happens.



I have lived with it for long time, but sometimes is very annoying.



Anyone have experienced a similar issue?
Any idea what is causing it, and is there is any fix / workaround?



Thank you










share|improve this question















I have a very strange problem I'm fighting with since VS 2015 (maybe even 2013).
Now I'm working with VS 2017 and it still occurs.



Here is the situation.
I have a legacy web application (Webforms, later enhanced by integrating webapi REST with javascript/html client code, some WCF endpoints, etc).



I build and start debug session from within VS (I do debug/testing mostly with Chrome and FF, rarely with IE/Edge/etc.), and I use IIS Express.



Most of the time the application debug session starts just fine - the page loads in browser and I can either debug server side in VS / client side in browser's debug tools.



But sometimes, the page actually never completes loading, and no matter how long I wait, it just stays locked on "loading..." message.



The only solutions I found are:
- either restart PC
- or (in Chrome), start browser in new identity.
- switch to a different browser (e.g. after starting with Chrome, open page in FF - or vice-versa).



When the page loads normally, the VS's Output Debug window displays various tracing / debug messages or progress of loading various dlls.



VS Output Debug when page loads and executes ok



However, as soon as the problem described above starts to happen, the VS Output Debug starts to log msgs like



The thread <#nnnn> has exited with code 0 (0x0).


VS Output Debug when page no longer loads



When this starts to happen, no matter what I do (except starting browser in new identity / change browser / restarting PC) I can no longer debug.
No matter if I totally close and restart the browser, clear cache, close and restart VS / IIS. Nothing helps.



The situation mentioned above occurs at very random intervals.
Sometimes I can work and debug for days (I suspend / hibernate the PC at the end of the day, resume next days, end everything works ok).
However other times the issue occur after just starting few debug sessions, and on occasions, even after a full shutdown / restart, at very first debug session, this happens.



I have lived with it for long time, but sometimes is very annoying.



Anyone have experienced a similar issue?
Any idea what is causing it, and is there is any fix / workaround?



Thank you







asp.net visual-studio debugging iis-express






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 7 at 19:24

























asked Nov 7 at 19:17









bzamfir

2,40894277




2,40894277












  • msdn.microsoft.com/en-us/library/…
    – Lex Li
    Nov 8 at 13:44


















  • msdn.microsoft.com/en-us/library/…
    – Lex Li
    Nov 8 at 13:44
















msdn.microsoft.com/en-us/library/…
– Lex Li
Nov 8 at 13:44




msdn.microsoft.com/en-us/library/…
– Lex Li
Nov 8 at 13:44












1 Answer
1






active

oldest

votes

















up vote
0
down vote













The messages in your output log reporting:



The thread <#nnnn> has exited with code 0 (0x0)


Just indicates that the thread has exited safely and is very normal to see this in correctly working code. In fact it would be abnormal to not see this as you will end up using all available threads.



From what you have explained I would suggest that you need to look at the extensions you have installed in your browsers. I typically will use a vanilla profile (blank profile with no modifications / extensions) so that my debugging is not affected by any modifications the extensions can make.



I would also monitor your system's CPU and memory usage. Are either of these being maxed out?






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53196310%2fasp-net-webpage-never-loading-debug-from-vs-2015-2017%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    The messages in your output log reporting:



    The thread <#nnnn> has exited with code 0 (0x0)


    Just indicates that the thread has exited safely and is very normal to see this in correctly working code. In fact it would be abnormal to not see this as you will end up using all available threads.



    From what you have explained I would suggest that you need to look at the extensions you have installed in your browsers. I typically will use a vanilla profile (blank profile with no modifications / extensions) so that my debugging is not affected by any modifications the extensions can make.



    I would also monitor your system's CPU and memory usage. Are either of these being maxed out?






    share|improve this answer

























      up vote
      0
      down vote













      The messages in your output log reporting:



      The thread <#nnnn> has exited with code 0 (0x0)


      Just indicates that the thread has exited safely and is very normal to see this in correctly working code. In fact it would be abnormal to not see this as you will end up using all available threads.



      From what you have explained I would suggest that you need to look at the extensions you have installed in your browsers. I typically will use a vanilla profile (blank profile with no modifications / extensions) so that my debugging is not affected by any modifications the extensions can make.



      I would also monitor your system's CPU and memory usage. Are either of these being maxed out?






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        The messages in your output log reporting:



        The thread <#nnnn> has exited with code 0 (0x0)


        Just indicates that the thread has exited safely and is very normal to see this in correctly working code. In fact it would be abnormal to not see this as you will end up using all available threads.



        From what you have explained I would suggest that you need to look at the extensions you have installed in your browsers. I typically will use a vanilla profile (blank profile with no modifications / extensions) so that my debugging is not affected by any modifications the extensions can make.



        I would also monitor your system's CPU and memory usage. Are either of these being maxed out?






        share|improve this answer












        The messages in your output log reporting:



        The thread <#nnnn> has exited with code 0 (0x0)


        Just indicates that the thread has exited safely and is very normal to see this in correctly working code. In fact it would be abnormal to not see this as you will end up using all available threads.



        From what you have explained I would suggest that you need to look at the extensions you have installed in your browsers. I typically will use a vanilla profile (blank profile with no modifications / extensions) so that my debugging is not affected by any modifications the extensions can make.



        I would also monitor your system's CPU and memory usage. Are either of these being maxed out?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 at 11:08









        KELF

        556




        556






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53196310%2fasp-net-webpage-never-loading-debug-from-vs-2015-2017%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Tangent Lines Diagram Along Smooth Curve

            Yusuf al-Mu'taman ibn Hud

            Zucchini