Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Deployment > Admin login not working public

Admin login not working public

  • Posted on Feb 14, 2010 (permalink)

    Hi all!

    If this question was allready posted, please, redirect me to the solution. I searched the forum, but didnt find anything to solve the problem.

    I installed the latest Sifinity (currently trial, but have key) on production server. As i logged in admin part on the server (where sifinity is) everything is ok, but when i access it from another machine (not part of server domain), login is unsuccessfull. Even more, no error or information message is shown.

    I checked the installation instructions and knowledge base, but was unsuccessfull. Cause i think, that this is some small trick or some settings (i set the roles correctly as stated in setup guidance and also access - and authentication is set to Forms), could you please help me with some guidance or links?

    Thank you and all best,
    Bojan V.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Feb 14, 2010 (permalink)

    Hello bojanv,

    Check whether FormsAuthentication is enabled and there are no any domain or another restrictions. You can attach the project in Visual Studio and see what actually is going wrong in the Login form code behind ~/Sitefinity/Login.aspx.cs. Check whether Login1_LoggedIn event is accessed. There is a string variable redirectUrl which specify the relative path of the url where you should be redirected.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

    Reply

  • Posted on Feb 15, 2010 (permalink)

    Hi Ivan!

    Thank you for your response. FormsAuth is enabled and we didnt set any restrictions. Could you please elaborate what kind of restrictions do you have in mind?

    Unfortunately, this is a production machine, so  to install vs is not option. I can send you a project, if you wish.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Feb 15, 2010 (permalink)

    Hi bojanv,

    If you can reproduce the problem on local host then you can send the project to us( provide us with external link, attach the project to this ticket or open bug report and attach the project there). I believe that the problem comes from your host server or you have not migrated all files. Sitefinity login form works fine at my end.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

    Reply

  • Answer BobTabor avatar

    Posted on Aug 8, 2010 (permalink)

    I realize this is 6 months late, however for those who might be encountering the same issue, here's how I solved it.  In fact, I've seen manifestations of this in many different posts, but each time stated just a little bit differently.  If you are experiencing weirdness with login after pointing a real domain to your site, this might clear it up for you.

    The symptoms are that as you create a new site using the Sitefinity Project Manager, you can log into your site locally using a URL similar to:

    http://localhost/YOURSITENAME/Sitefinity/Login.aspx

    BUT when you then point IIS 7 to the folder:

    C:\Program Files\Telerik\Sitefinity3.7\WebSites\YOURSITENAME

    ... and, if it's a developer machine, setup your hosts to point 127.0.0.1 to http://www.YOURSITENAME.com ... then this no longer works:

    http://www.YOURSITENAME.com/Sitefinity/Login.aspx

    It will accept your credentials, but just refreshes ... no error messages, etc.  However, if you were to put in THE WRONG CREDENTIALS it will show you an error.

    How to fix:

    In your web.config, find the:

    <forms name=".ASPNET" loginUrl="~/sitefinity/login.aspx" protection="All" timeout="1440" path="/" />

    And change it to:

    <forms domain="YOURSITENAME.com" name=".ASPNET" loginUrl="~/sitefinity/login.aspx" protection="All" timeout="1440" path="/" />

    In other words, just add the domain="YOURSITENAME.com" and it should work.

    Good luck!

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Deployment > Admin login not working public