Agile-Works / appleseedapp

Automatically exported from code.google.com/p/appleseedapp
0 stars 0 forks source link

Multi DB Support #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I`am new to mvc - still learning howto

As far as I understand user and roles now handled
not by rainbow but by mvc (aspnet_user and so on).

So there is new things appeard - membership, roleManager, profile, siteMap, 
caching

All use direct pre-defined Connectstring name in web.config
and this means multidbsuport no longer working
(but exist as a parameter in web.config)

multidb means there is multi connectionstring in web.config
with pattern [portalalias]_Connectionstring

So are you going to continue with multidb support or not?

Original issue reported on code.google.com by DVDobrov...@gmail.com on 26 Feb 2011 at 1:37

GoogleCodeExporter commented 9 years ago
The current user system in Appleseed is the same that was created for Rainbow 
2.0.

The only difference is that we have bug tested it heavily and fined tuned it 
for the portal.  ASPNETDB Membership is fully supported.

Multiportal works as it did under Rainbow.  You define urls in the web.config 
with portal alias and the portal can host multiple portals under one 
installation.

Please continue these conversations on our support forum :

http://appleseedapp.com/support/

Original comment by rams...@gmail.com on 27 Feb 2011 at 2:41

GoogleCodeExporter commented 9 years ago
It doesnot

this section of membership provider
// Initialize SqlConnection.
            //ConnectionStringSettings ConnectionStringSettings = ConfigurationManager.ConnectionStrings[config["connectionStringName"]];

config["connectionStringName"] - this is a connect string names from web.config
ex 

<membership defaultProvider="AppleseedMembershipProvider">
            <providers>
                <clear />
                <add name="AppleseedMembershipProvider" type="Appleseed.Framework.Providers.AppleseedMembershipProvider.AppleseedSqlMembershipProvider, Appleseed.Framework.Providers.AppleseedSqlMembershipProvider" connectionStringName="ConnectionString" applicationName="Appleseed" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
            </providers>
        </membership>

so code take "ConnectString" as a connectstring name not 
"portalalias_ConnectString"

works then I change it in allprovider to 

            // Initialize SqlConnection.
            //ConnectionStringSettings ConnectionStringSettings = ConfigurationManager.ConnectionStrings[config["connectionStringName"]];

            //if (ConnectionStringSettings == null || ConnectionStringSettings.ConnectionString.Trim().Equals(string.Empty))
            if (Config.ConnectionString.Trim().Equals(string.Empty))
            {
                throw new AppleseedMembershipProviderException("Connection string cannot be blank.");
            }

            connectionString = Config.ConnectionString;  // !!!!!!!!!!!!!!!!!!

Original comment by dmitriy....@cetschool.com on 27 Feb 2011 at 3:06

GoogleCodeExporter commented 9 years ago
Like I said before.  Please carry this conversation to the forums where we can 
better assist you.

This issue tracker is for bugs only.  It seems you are talking about connection 
strings with ASPNETMEBERSHIP which IS Supported and NOT a bug.

Perhaps this forum : http://appleseedapp.com/support/#/categories/migrating

Original comment by rams...@gmail.com on 27 Feb 2011 at 3:11

GoogleCodeExporter commented 9 years ago
I think this is a bug that is why i write here

Original comment by dmitriy....@cetschool.com on 27 Feb 2011 at 3:59

GoogleCodeExporter commented 9 years ago
Please state the ways to produce the bug or the issue.

The name Multidb support doesnt give enough info to solve your issue.

It sounds to me that you are trying to do multiple databases with 1 
installation.  We only support 1 DB with multiple portals.  As I see from your 
code, yes you easily can do what you are asking .  This not a bug but a 
feature.  

For now,  We are simply supporting 1 Database with 1 to unlimited portals.  In 
the future yes we could do some kind of multidb option but for now that is 
overkill.

Original comment by rams...@gmail.com on 27 Feb 2011 at 10:14