Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Using one DB with two installsUsing one DB with two installs
Previous
 
Next
New Post
11/19/2006 5:56 PM
 

Hi there!  I'm trying to install DNN onto IIS and have it use SQL 2005.  I'm trying to work out how to install multiple sites, each with their own web site, but utilizing a single database.  I'm modifying the objectQualifier tag in the web.config to try to have them each create their own tables.  What I've found is that everything works well on the DB side except for the aspnet_ tables.  Those don't seem to be recreated every time for each objectQualifier specified.

Ultimately, I'm trying to reduce the costs by utilizing my databases to their full space potential.

Am I barking up the wrong tree here, or is there a way I can accomplish this?

Thanks in advance!

Wayne

 
New Post
11/19/2006 7:00 PM
 

the aspnet_* tables are used by the microsoft memberrole component, and are designed to be a single install. The portalid is automatically stored in them to support virtualisation. If you use seperate objectQualifier's , then you can set the key="InstallMemberRole" value="false" tag in the web.config, so that installation does not try to reinstall them.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
11/20/2006 9:45 PM
 

Great, that opened a few doors for me.  Thanks!  I am however still experiencing some issues getting two installs to go smoothly.  The first always goes smooth, it's the second one that continues to be a little thorn in my side.

What I am doing is this:

  1. The first site contains no objectQualifier value, so the tables are created without any extension.
  2. The second, I append an objectQualifier value, authupgrade is set to false as is InstallMemberRole
  3. During install, I err out with this

    DotNetNuke Upgrade Error

    The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

    ERROR: Could not connect to database.

    The stored procedure 'dbo.amg_GetPortalAliasByPortalID' doesn't exist.
  4. I dug a little into this and have come out with something I hope makes sense...lol

I took a look at the SQL tables that were made and found only one table was created for the second install, amg_Versions.  A little further digging resulted in finding the install scripts for the database objects.  In looking at the first few lines of 00.00.00.SqlDataProvider I see that table Version is renamed to {objectQualifier}Version.  This seems to jive with the error I continue to see on the second site install.  So, during the second install, the SQL install scripts found an existing table named versions

if exists (select * from dbo.sysobjects where id = object_id(N'Version') and OBJECTPROPERTY(id, N'IsTable') = 1)

And then continues of to:

if '{objectQualifier}' <> ''
begin
    EXECUTE sp_rename N'{databaseOwner}Version', N'{objectQualifier}Version', 'OBJECT'

Now, I would hope that object qualifier is populated, since I've provided it in the config.  But following this seems to point to a bug maybe?  I'm still becoming familiar with the inner-workings of DNN, so instead of possibly chasing a rabbit down a hole, I'd like to see if anyone agrees/disagrees with this.

My questions are:  If this is a common issue, where can I find info to help me resolve this?  It seems to me at this point I can call this a bug, but I can't since I'm not that familiar with the system yet.  :)

Thanks Cathal for the assist earlier!  And thanks in advance to any that choose to respond.

Cheers!

Wayne

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Using one DB with two installsUsing one DB with two installs


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out