locked
strange situation - unexplained error object is not set to an instance.... RRS feed

  • Question

  • User379720387 posted

    From WebMatrix I hit run and expect my site to open as usual. Get the above error message for this line:

    Line 64:         <ul class="nav navbar-nav navbar-left">
    Line 65:                 @{
    Line 66:                 string[] userRoles = Roles.GetRolesForUser();
    Line 67:                 }
    Line 68:             @if (!WebSecurity.IsAuthenticated)

    Hmmmm... the live site works as it should.

    I rename Default, Sitelayout, webconfig, appstart and pagestart and download these files from the live site.With beyondcompare I see that the live site files are identical to the ones I have renamed.

    Live site works, local site fails in sitelayout, all the same files.

    I am not logged at either site, computer was restarted.

    What am I missing here??

    Thursday, December 11, 2014 9:12 PM

Answers

  • User-735851359 posted

    hello,

    try to logout.

    Right click the Logut.cshtml file in the Account folder, and select Launch in browser.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 12, 2014 1:13 AM
  • User379720387 posted

    That did it! Thanks.

    Just realized I could have also deleted all the ASP.net temp files.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 12, 2014 8:37 AM

All replies

  • User-735851359 posted

    hello,

    try to logout.

    Right click the Logut.cshtml file in the Account folder, and select Launch in browser.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 12, 2014 1:13 AM
  • User379720387 posted

    That did it! Thanks.

    Just realized I could have also deleted all the ASP.net temp files.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 12, 2014 8:37 AM