none
C# Webform project can be debugged in VS 2013 but not in VS 2015

    Question

  • When I attempt to debug a WebForm project in VS 2015 I'm redirected to "Account/Login?ReturnUrl=%2f".  In VS 2013 it loads the Default.aspx without issue.  The project is configured to use Windows authentication.

    Because the project is setup to use Windows Authentication there isn't an Account/Login page so the redirect returns a 404 error.

    What can I do to fix the problem in VS 2015?

    Thursday, June 9, 2016 1:23 AM

Answers

  • Hi RMGalliher,

    Do you mean that the same project works well in VS2013, but not in VS2015?

    If so, whether you install the two VS version in the same machine?

    >>Because the project is setup to use Windows Authentication there isn't an Account/Login page so the redirect returns a 404 error.

    (1) Please make sure that you set the correct .aspx file as the start up page in your VS2015 solution explorer window.

    (2)Please test it in other VS2015 machine, so we could know that whether it is related to your VS IDE, please install the update 2 for your VS2015.

    (3)If they are not the same app, since it seems that there are different ways or requirements to configure the Windows authentication for web app, maybe you could check the following documents for more detailed information:

    http://www.codeproject.com/Articles/94612/Windows-Authentication

    http://www.mikesdotnetting.com/article/216/windows-authentication-with-asp-net-web-pages

    In addition, since the ASP.NET has his own supported forum, if possible, , you could ask this question in the ASP.NET forum: http://forums.asp.net, you could share a simple sample in your new thread using one drive, if then, you could get an answer more quickly and professional from the ASP.NET Experts or community members.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.

    Microsoft does not control these sites and has not tested any software or information found on these sites;

    Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.

    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by RMGalliher Monday, June 13, 2016 9:22 PM
    Friday, June 10, 2016 2:20 AM
    Moderator

All replies

  • Hi RMGalliher,

    Do you mean that the same project works well in VS2013, but not in VS2015?

    If so, whether you install the two VS version in the same machine?

    >>Because the project is setup to use Windows Authentication there isn't an Account/Login page so the redirect returns a 404 error.

    (1) Please make sure that you set the correct .aspx file as the start up page in your VS2015 solution explorer window.

    (2)Please test it in other VS2015 machine, so we could know that whether it is related to your VS IDE, please install the update 2 for your VS2015.

    (3)If they are not the same app, since it seems that there are different ways or requirements to configure the Windows authentication for web app, maybe you could check the following documents for more detailed information:

    http://www.codeproject.com/Articles/94612/Windows-Authentication

    http://www.mikesdotnetting.com/article/216/windows-authentication-with-asp-net-web-pages

    In addition, since the ASP.NET has his own supported forum, if possible, , you could ask this question in the ASP.NET forum: http://forums.asp.net, you could share a simple sample in your new thread using one drive, if then, you could get an answer more quickly and professional from the ASP.NET Experts or community members.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.

    Microsoft does not control these sites and has not tested any software or information found on these sites;

    Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.

    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by RMGalliher Monday, June 13, 2016 9:22 PM
    Friday, June 10, 2016 2:20 AM
    Moderator
  • To clarify I have both VS 2013 and VS 2015 installed on my machine.

    This problem was occurring when opening and running an older project.  The work was originally done in VS 2013 and since then the office has upgraded to VS 2015.  The issue was discovered by another developer who opened the project so that he could make some small changes the business requested.

    When he ran the application from VS 2015 it returned a 404 error.  Looking at the URL it looked like it was trying to use Forms authentication despite the WebApp being configured for Windows authentication.

    The change that corrected the problem was to add the following key to the appSettings section.

    <add key="EnableSimpleMembership" value="false" />


    • Edited by RMGalliher Monday, June 13, 2016 9:39 PM Formatting
    Monday, June 13, 2016 9:38 PM