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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN copy vs installDNN copy vs install
Previous
 
Next
New Post
8/27/2012 2:16 AM
 
web.config

add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /

 

 
New Post
8/27/2012 5:46 AM
 
if you attach the database in sql server, please use database=DatabaseName;" syntax, otherwise you may omit "|DataDirectory|"

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/27/2012 5:56 AM
 

Localhost everytime redirects to 127.0.0.1 and can only access from your maschine, not over the web. If you want to use a real domain you have to edit the Binding and add a domain e.g. www.domain.com and domain.com on your IIS. Also you have to add thise domains to the alternate mapping into your portal settings you can find on Admin or system in your DNN instance.

Most times the SQL Server by a hoster is not local and used SQL login instead of Windows security about the SQL server is on a 2nd Maschine and not on an Active Directory Domain Controller! This means you have to setup a SQL user to your SQL Server, bind this user for use to your database as dbowner with standard schema dbo.

AttachDbFilename=|DataDirectory|Database.mdf means the data are in a file database you can find in your DNN root path\App_Data folder. Of cause using the Windows login security here you need a local SQL Server (Express) and you must have set the right permissions for access!

Example for SQL Server Login:

< add name="SiteSqlServer" connectionString="Server=sql.hoster.com;Database=DotNetNuke;uid=username_here;pwd=password_here;" providerName="System.Data.SqlClient" >< /add >

 
New Post
8/27/2012 7:59 AM
 
Matthias, i don't want to use domain name, i just want to copy files and database from 1 PC to another PC which both have localhost IIS. I want to run the same DNN with portals and contents. In both PCs i have SQLExpress and i want to use WIndows Authentication.

What are the steps behind copying files and folders from PC1 to PC2 when the connection string looks right for the both PCs?
 
New Post
8/27/2012 8:11 AM
 
if you are using same database connection, all you need to do is stop the source web site, copy all files to target and restart web site. Please make sure, both sites are running same version of .Net framework, otherwise you need to adopt web.config.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN copy vs installDNN copy vs install


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