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 ...Cannot copy Dev DNN 6.2 site to productionCannot copy Dev DNN 6.2 site to production
Previous
 
Next
New Post
9/4/2012 11:24 PM
 

Hello, I really need some help here, am totally stumped on something basic I must be missing or, something in 6.2 which doesn't allow an easy copy of database, site content to make a production site from a dev site.

I get this:

The Auto option has been disabled as the DotNetNuke Application cannot connect to a valid SQL Server database. You can continue to use either of the other two Wizard options and configure the Database settings at the appropriate Wizard step.

This is because when I browse to the site I just copied and set up in IIS 7, for God only knows what reason, the site tries to install itself.

I have done:

  1. Copy the content folder and renamed it Production_Non_SSL to just get the site working as http://, etc.
  2. Created an SQL 2008 R2 DB (our version is SQL Workgroups).  The db name is Production_Non_SSL
  3. Edited the web config above, changing the db name in all connection strings
  4. For the static IP I'm using, edited the Portal Alias table accordingly for all portals of the copied site
  5. Set up IIS to connect to the content, for the moment, not applying the SSL Cert
  6. Browsed to the IP, which went righ to http://209.213.120.92/Install/Install... and NOT to the home page. :)
    1. Note, I can in fact browse to a testpage.html in the directory of the Production_Non_SSL/Website/ path.  So ... the database HAS to be working.  Else, the Portal 0 alias would not be working ... I'm sure that's not a leap in logic but then again, this has me frustrated.
  7. By the way, set up the Website folder with IIS Default App Pool having Modify Access and NetworkService having full control.
  8. Verified the copied database has the NT Authority Service and Default App Pool in it from the backup I used to restore over the database
    1. Note, I thought of removing/re-adding both users in SQL but since I get the error these are DB Principals and can't be removed, the assumption is they must be valid users.  That is, it used to be that sometimes the users were incorrect since another db backup (from development site) was used to restore over the site.  Since I can't delete the users, my assumption is SQL has them correctly set up and this might be the reason things are not working.

From the above, it seems I've covered the bases.  When I moved the 4.9.0 site over to our new server I did the same process for that DNN Version.  Upgraded it to 6.2.0 easily and got it working perfectly.  Now, it's time to make the production site and I've never had so many headaches.

It has to be something easy was missed.  Well, the machine keys are right, connection strings are right, etc.  Web config, db, permissions, etc. are in order.

Please someone info me what I've missed.  It is something bsic as this isn't rocket science so ... I've sucked it up that it's going to be an obvous answer.

Thanks!

Mike

 
New Post
9/5/2012 3:17 AM
 
according to the install wizard showing up, there are issues accessing the database, most likely the connection strings in web.config do not match the instance name, database name or login credentials. also make sure, TCP/IP client has been installed and enabled for both, sql server and client.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/9/2012 1:34 PM
 

Sebastian,

 Thanks for getting back.

Here's the connection string.  I've tried this with " . " and as " localhost " as the sql instance.

<add name="SiteSqlServer" connectionString="Data Source= . ;  Initial Catalog=Production_Non_SSL;  Integrated Security = true; Connect Timeout = 0" providerName="System.Data.SqlClient" />

I copied the Catalog name by right clicking the database and using "Rename" to copy it and then paste it into the web.config.  TCIP for sql server and client I think are a non issue since other databases are working with their respective DNN sites.

I'm sure it's a silly oversight or just some minor change in how DNN is set up now vs. how I've learned it since 3.x -- a really easy "Oh ... we do this now ...:" sort of thing.

At any rate, no joy on trying the instance name thing.  Thanks though.  Any other hiccups you've seen as oversights -- as we call them in English "Duh's " ?

 

Thanks,

 

Mike

 
New Post
9/9/2012 4:26 PM
 

My best approach would be:

1. copy your web portal to your sever, make the necessary file permissions  (Network Services is a MUST)

2, Create a website from the IIS pointing to the physical location of your website.

3. Make sure the server IP binds to the domain name, both www. and .

4. DO NOT create an empty DB  to restore your dnn db, it will not work. Click databases and then restore database and give it a name and locate your backup file, and will will create a new database from your back up file.

5. Go to Security then Logins then New Login then Login Name then SQL Server  authentication (give it a password)

Then click on User Mapping,  then User Mapped to this login, click the name of your database, then the next window click on dbo_owner.

5. change the connection string tp ooint to your server, if you are using SQL server web edition or others (NOT SQL Express), the server name if it is on the same machine is (local) and not localhost

 

 
New Post
9/10/2012 6:05 AM
 
When you move a database from one sql installation to another (detach and attach), you will end up with an orphaned database owner.
Create a new user in the destination sql server, make the new user db_owner and change account and password in web.config.
I vaguely remember you're better off selecting a different account name for the new db_owner.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Cannot copy Dev DNN 6.2 site to productionCannot copy Dev DNN 6.2 site to production


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