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 ...DNN 4.00 and SQL Express 2005DNN 4.00 and SQL Express 2005
Previous
 
Next
New Post
3/12/2006 5:57 PM
 

I'm not sure the db file should be created automatically. In any case you can create it by hand. The best thing you can do is to also install the SQL Server Studio Express, from here: http://www.microsoft.com/downloads/details.aspx?familyid=82AFBD59-57A4-455E-A2D6-1D4C98D40F6E&displaylang=en

This is a management tool for sql express 2005, which allows you to connect to sql express, and add new databases. When you are adding a new database, you can do either of two things:

  • create a new db, and make sure it is created in the \App_Data\ folder of your DNN install, and make sure you name the db Database.mdf. You don't have to change anything in the webconfig of DNN
  • create a new db in the default sql express data directory, and change the connection string in the webconfig to something like this:
    "Server=.\SQLExpress;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL\DATA\DotNetNuke.mdf;Database=DotNetNuke;Trusted_Connection=Yes;"
    Where C:\Program Files\Microsoft SQL Server\MSSQL\DATA\DotNetNuke.mdf  is the exact file name of your database file, this way dnn will use your database as if it were a real db (which it is of course)

HTH

Cheers,

Erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
3/12/2006 11:30 PM
 

Hey Iceberg

I have successfully installed dnn 4.0 on windows 2000. A key to my success was the tools that I found to help me get this installed.

Tools are:

  1. Sql Sever Express 2005 ( you already have)
  2. SQL Server Management Studio Express CTP
  3. Microsoft Visual Web Developer 2005 Express Edition
  4. Ensure that Dot 2.0 frame work is installed
  5. Starter kit from this site.

Things to watch for:

  1. Review permission settings on the folders
  2. Setting up of the database in SSE 2005, review the instructions on this part.
  3. Read all that you can!!!!

It took me a few times to get this set up. Hope this helps!

Gerald
 
New Post
3/15/2006 3:56 PM
 

I've created a new DB named DNN in SSE, but now .... where Can I set the name of the DB in web.config... and how to config web.config for use SQL Server 2005 Express

I've installed FMK 2.0
created the virtual folder with fmk 2.0
give the ASP.NET full controll access to DNN folder...

 
New Post
3/15/2006 6:23 PM
 

well maybe i missed the point here completely. but maybe this helps:
I had also the error with cannot find the database.mdf file.
I wanted to use the SQL2005 Express (or good ol' MSDE) and not some database.mdf file
Download SQL Express from microsoft. here 

i made DNN 4.0.2 running this way:

In the original file we have two connection strings the database connection to the mdf (default enabled) and the one i want to use with the SQL Express.(disabled) The most simple way i found to use a SQL service was to remove the blue parts and place/remove the comment signs. Inside the web.config: (renamed release.config)

  <connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add
      name="SiteSqlServer"
      connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
      providerName="System.Data.SqlClient" />
    <!-- Connection String for SQL Server 2000/2005 *PLACE  END COMMENT SIGN HERE*
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
      providerName="System.Data.SqlClient" />
   --> *AND REMOVE THE ONE HERE*
  </connectionStrings>
  <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;"/>
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules *PLACE  END COMMENT SIGN HERE*

    <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>
    --> *AND REMOVE THE ONE HERE*
    <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"/>
  </appSettings>

 Comment is from here <!-- to --> this

After changing everything i just got an error that the install could not find the SiteUrl.config. i had to copy it manually from the \config folder to the website root. It works fine and i did not get the error some people after installation. (some people have a site up and running, but no contents will be displayed. (red error messages inside the modules about links.)

I hope that this will help some people a little further.

 
New Post
3/15/2006 9:35 PM
 
Hey Iceberg

Ok so you have SSE 05 installed and you have created the database. In the web config file as shown by Arpat there is two area's to edit.

Where Arpat has highlighted in red  fill in the server name, database name, user ID of the database and the password. As you can see there is two areas to fill in.

"Server=(local);Database=DotNetNuke;uid=;pwd=;"

Once you have this configured to dont forget to add the database.mdf while in the VS 2005.

Let me know how this works out.

Gerald


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.00 and SQL Express 2005DNN 4.00 and SQL Express 2005


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