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 ...Web.config Connection String HelpWeb.config Connection String Help
Previous
 
Next
New Post
2/15/2010 6:31 AM
 

I am trying to install DNN 5.2 community addtion.  I am getting stuck on the connection strings in the web.config file.  Here is what the web.config looks like:

<connectionstrings>
    <!-- Connection String for SQL Server 2005/2008 Express -->
      <add providername="System.Data.SqlClient" connectionstring="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" name="SiteSqlServer"></add>
    <!-- Connection String for SQL Server 2005/2008
    <add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;" providerName="System.Data.SqlClient" />
    --><connectionstrings>
<appsettings>
     <!-- Connection String for SQL Server 2005/2008 Express - kept for backwards compatability - legacy modules -->
        <add value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" key="SiteSqlServer"></add>
     <!-- Connection String for SQL Server 2005/2008 - kept for backwards compatability - legacy modules
        <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>
    -->

Here is the database info:

Database Name: DB_xxxxxx
Database Server: xxxxxx.com
Database User: DB_xxxxxxx_user

Connection String:

"Data Source=xxxxxxx.com;Initial Catalog=DB_xxxxxx;User ID=DB_xxxxxx_user;Password=******;Integrated Security=False

 

Can anyone help me?  I seem to be screwing something up and I am not able to connect to the database.

Thanks.  

Take  care,

Edited by moderator to fix formatting of web.config nodes and remove specific server, database, and userid information.

 
New Post
2/15/2010 9:10 AM
 

The problem is in the positioning of the comment markers (<!-- . . . -->) in the web.config. In their present location, the active connection strings are those used for attaching the .mdf file database, not the SQL Server 2005/2008 connection string that is used when specifying the database name, userid and password.

However, rather than editing the web.config file manually, I recommend that you allow the installer wizard to run. There, you will be able to specify your database information and test your database connection. The correct information will then be written by the installer wizard into the web.config file.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Web.config Connection String HelpWeb.config Connection String Help


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