Setup, Running, Logged In, but no admin menu!

  1. Avatar of Gabriel

    The setup process went great -got main and user packages through nuget, modified global.ascx/web.config, set up azure db with connection string...

    Site comes up great, but when I log in with the admin credentials, I don't get the admin panel at all, just the home page.

    Any hints on where to start looking?

  2. Avatar of Gabriel

    Digging deeper, I don't see any errors or warnings in the IIS logs, or in the network pane or javascript console of the browser, or the console in Visual Studio. All indications are that everything is working fine, except there's no admin menu - I don't even see it in the page source.

  3. Avatar of Eduard

    Hello, i have the same problem. Installation was succesfull, but after i do F5 and i create admin account and i will not see admin menu on the side of page.

    That is strange. Anyone help?

  4. Avatar of JDC

    If you go to http://localhost:XXXX/login (replacing the x's with your local port), does it ask you to login or redirect you to the home page? That will test if you are logged in.

    If it redirects you to the homepage but you still don't see the side menu, view the page source. Do you see code that has been added to power the CMS UI? It'll look like this: http://s11.postimg.org/5k4zeo8ir/20160315085240.png

  5. Avatar of Gabriel

    Thanks so much for jumping in JDC, I've been looking at this from a number of directions and I haven't made much headway.

    Weird -- I fail the first test, here.

    If I log in using the correct admin user name and password (the form reloads if I use the INCORRECT user name or password) it redirects me to the home page, and if I go back to the http://localhost:XXXX/login URL after that, it shows me the login screen rather than redirecting back to the homepage.

    So it looks like my login isn't completely logging me in?

  6. Avatar of JDC

    I'm wondering if it's because you weren't logged out from a different installation if you're running multiple sites on localhost. What happens if you go to http://localhost:XXXX/logout first? That will log you out completely and then bring you back to the login page.

    Better CMS sets a cookie to stay logged in for one month, and if you have multiple BCMS sites running on localhost they are reading the same cookie.

    I didn't like the way it sets a cookie for one month so I altered the Users module and DLL to read a value from the web.config forms auth section. Now my sites only stay logged in for 2 hours.

    At any rate, the going to logout page and see if that helps.

  7. Avatar of Gabriel

    -- MANY THANKS, JDC! --

    That wasn't it, but you pointed me in the right direction.

    When the procedure still didn't work it got me digging further into the documentation about session management, and I found this nugget down at the bottom of the Cms Roles Provider Documentation (found here: http://www.bettercms.com/documentation/roles-management#cms-roles-provider )

    "Please note, if you have line <remove name="FormsAuthentication" /> in your configuration, remove it otherwise it will disable BetterCms side panel and edit content functionality."

    Which I did have in my web.config. Once I commented that out it works perfectly.

    So thank you JDC, for getting my head in the right space, and Eduard, check for that node in your web.config.

  8. Avatar of JDC

    Awesome news! I didn't know about the roles provider thing as I've always used Forms Auth. I'm glad you're up and running :)

  9. Avatar of Alejandro

    still not working

  10. Avatar of Alejandr

    i am getting an

    Access to the page forbidden.


    2017-02-13 16:43:32.0954 Failed to load page by URL: /404/. Access is forbidden.

    2017-02-13 16:43:32.0954 Unhandled exception occurred in web host application. Access to the page forbidden. System.Web.HttpException (0x80004005): Access to the page forbidden. at BetterCms.Module.Root.Controllers.CmsController.Index() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at

  11. Avatar of alejandro

    SAME ERROR Failed to load page by URL: /404/. Access is forbidden.

  12. Avatar of alex

    Page Not Found System.Web.HttpException (0x80004005): Page Not Found at BetterCms.Module.Root.Controllers.CmsController.Index()

* Mandatory
* Mandatory
* Mandatory

Verify that you are human