+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / multiple websites, one database - cmsstartup.aspx redirects to login page

multiple websites, one database - cmsstartup.aspx redirects to login page

8 posts, 0 answered
  1. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    05 Jan 2010
    Link to this post
    Hi

    I am trying to create various websites using one database.  I am having the following problems:

    1.  The user guide says nothing about multiple websites that use one database, despite what one of your moderators says on these forums.

    2.  The lists module items are shared between databases.  This, I presume, is due to the fact that a default provider is being used for the lists.  However, I can find nothing in the documentation that tells me how to add a provider and give it a distinct applicationName attribute.

    [Note:  This is the sort of thing that would be nice to have in video documentation.]

    3.  When I try to add an admin user for a new app, I go to <my project>/sitefinity/cmsstartup.aspx, as recommended by the moderators of this forum.  However, this only results in a redirect to the login page, so I can neither login nor add a new user for that application.  I have given all the security providers distinct applicationName attributes.

    [Note:  One thing I could do is:  a.  login to the default app.  b.  create a user.  c.  open the database, and edit the application id for that user.  d.  Logout, and login to the new application.  Would this work?]

    4.  Is using one database for multiple sites the recommended practice?  What is the best use of server resources?

    Thanks

    Andrew
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Jan 2010
    Link to this post
    Hi Andrew Wrigley,

    Please check this post where you can find sample how to set different applicationName for Lists Run Multiple Community Editon Sites from one SQL2009 Database?
    Administrators of each web site should be created before you are making any changes to the applicationName of RoleProvider, MembershipProvider or Profile provider.

    Using one database for multiple websites is not recommended except you have specific projects that require this.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    05 Jan 2010
    Link to this post
    Ivan

    You say:

    "Administrators of each web site should be created before you are making any changes to the applicationName of RoleProvider, MembershipProvider or Profile provider."

    How do I do this?

    Thanks

    Andrew
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Jan 2010
    Link to this post
    Hello Andrew Wrigley,

    It is obvious - change the applicationName to the desired value, then create the website, otherwise you will not be able to login.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    05 Jan 2010
    Link to this post
    Ivan

    Sorry, it is not obvious to me.  Are you suggesting that I:

    1.  Create the project.
    2.  Edit the web.config to add the applicationName attribute for the <cms /> provider
    3.  Then run the website that will bring up cmsstartup.aspx.

    If so, it all fails when I try to attach to the database.  I get the following error:

    System.InvalidOperationException: Failed to map the path '/'.

    Thanks Andrew
  6. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    05 Jan 2010
    Link to this post
    I am now getting the following error stack trace:

    [NullReferenceException: Object reference not set to an instance of an object.]Telerik.DataAccess.AspnetProviders.Role.GetUsers() +104Telerik.DataAccess.AspnetProviders.TelerikRoleProvider.GetUsersInRole(String roleName) +34Telerik.Security.UserManager.GetUsersInRole(String roleName) +32Telerik.Cms.Web.AdministratorPane.ValidateMembership() +82Telerik.Cms.Web.AdministratorPane.RaisePostBackEvent(String eventArgument) +45System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    It sounds like there are no users for that app which is correct.  So why the error?

    Andrew
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Jan 2010
    Link to this post
    Hello Andrew Wrigley,

    I am not able to reproduce the problem setting two projects to point to the same database? Could tell us the steps you follow and changes you have made that caused the error. Have you completed all steps in Sitefinity's Startup Wizard?

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    05 Jan 2010
    Link to this post
    Ivan

    I have given up and created a separate database.

    Thanks

    Andrew
Register for webinar
8 posts, 0 answered