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 ...4.0.2 web.config question4.0.2 web.config question
Previous
 
Next
New Post
1/2/2006 10:44 PM
 
Hi.

Im installing 4.0.2 locally with .NET 2.0, IIS 6.0 and
SQL Server 2005 Express. Despite my windows ignorance,
I think ive followed the install pdf
fairly well, but still have a few questions
regarding the web.config setup and database connectivity.
In the install pdf, the appSettings sql connection description looks
like the SQL 2000/2005 legacy version , while the
SQL Server 2005 Express version of the connection string
( from default web.conf) looks like this:

 <appSettings>
 <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>


This value string doesnt have all
the same variables ( Server, Database, uid, pwd) of the example in the pdf,
So should I add them in the same way?

Inotherwords, if

myComputerName=FOO
myDataBaseName=DotNetNuke
myUID=John
myPWD=789Doe

should my new connection string( in appSettings ) look like this?

 <appSettings>
<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
   <add key="SiteSqlServer" value="Server=(FOO);Database=DotNetNuke;uid=john;pwd=789doe; Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>


If this is the correct way and Im still getting
Could not find file 'C:\Inetpub\wwwroot\DotNetNuke\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.
then I know to retrace my steps creating the
database, login, user, etc.

Otherwise any help correcting the above
connection string example, or pointing me to further documentation, is greatly appreciated.
PS The connection strings inside and outside appSettings should both be the same right?

Thanks for your patience.

 
New Post
1/3/2006 9:23 AM
 

It is a bit confusing. If you are running SQL Express 2005 just like you would be running SQL 2000 you can eliminate all of the references to SQL Express in the db and treat it just like your connecting to any other db.

I had the same problem you had becasue I thought I needed the Express stuff in the web.config.

Running 4.0.2 and SQL Express 2005 my web.config looks as follows:

<connectionStrings>
    <!-- Connection String for SQL Server 2000/2005 -->
    <add name="SiteSqlServer" connectionString="Server=(local);Database=dbname;uid=dbuid;pwd=dbpass;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->
    <add key="SiteSqlServer" value="Server=(local);Database=dbname;uid=dbuid;pwd=dbpass;" />
    <add key="InstallTemplate" value="DotNetNuke.install.config" />
    <!--  Alternative Install Templates (included in package)
    <add key="InstallTemplate" value="Club.install.config" />
    <add key="InstallTemplate" value="Personal.install.config" />
    <add key="InstallTemplate" value="SmallBusiness.install.config" />
    -->
    <add key="AutoUpgrade" value="true" />
    <add key="InstallMemberRole" value="true" />
    <add key="ShowMissingKeys" value="false" />
    <add key="EnableWebFarmSupport" value="false" />
    <add key="EnableCachePersistence" value="false" />
    <add key="InstallationDate" value="1/3/2006" />
  </appSettings>


Icthus Technologies

Building Faith on the Internet
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...4.0.2 web.config question4.0.2 web.config question


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