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 ...Could not find file Could not find file 'C:\DotNetNuke\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.
Previous
 
Next
New Post
5/30/2006 10:13 AM
 

This is my first DNN installation - 4.0.3 to be exact.  Here's the installation error I'm getting:

Could not find file 'C:\DotNetNuke\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\DotNetNuke\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.

Stack Trace:

[FileNotFoundException: Could not find file 'C:\DotNetNuke\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2012701
   System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) +488
   DotNetNuke.Data.SqlDataProvider.GetProviderPath() +220
   DotNetNuke.Common.Globals.GetUpgradeStatus() +335
   DotNetNuke.Common.Global.CheckVersion() +187
   DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) +316

I look for the DotNetNuke_template.mdf, and sure enough, it's not there.  If the file is required, was it missing from my INSTALL package?  Any help would be very much appreciated.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
5/30/2006 3:46 PM
 
I believe I found a solution, which I'll be attempting over the next few days.  If I find it resolves the error above, I'll follow-up with more...

If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
5/31/2006 7:22 PM
 

Installing DotNetNuke 4 on Windows 2003 Server Running SQL Server 2005 Express Edition

If you have attempted to install DotNetNuke 4.0.x on a Windows Server 2003 running SQL Server 2005 Express Edition, you may experience errors such as 'can't find database_template.mdf'.  Here are the exact steps that may help you to complete a DotNetNuke installation without errors.  Obviously, DotNetNuke runs under a variety of system configurations.  For this installation particularly, I have the following system:

Microsoft Windows Server 2003 
Microsoft Internet Information Server (IIS 6)
Microsoft SQL Server 2005 Express Edition
Microsoft .NET Framework 2

When I got the above configured and running OK, I continued with the following steps:

1.      Download DotNetNuke 4.0.x INSTALL package from http://www.dotnetnuke.com

2.      Extract the ZIP package into a folder on the IIS server, e.g. c:\DotNetNuke

3.      Inside root level of c:\DotNetNuke folder, rename release.config to web.config

4.      The web.config file is very customizable (see DotNetNuke Installation Docs).  But by default, DotNetNuke 4 is configured to run with SQL Server 2005 Express Edition and you can get a successful DNN installation without changing any web.config settings.

5.      Configure Permissions for the c:\DotNetNuke folder:

1.      Highlight the c:\DotNetNuke folder, then Right-Click

2.      Sharing and Security > Security

3.      Add the account NETWORK SERVICE, and grant the account Read, Write and Change permission

6.      Create a Virtual Directory that can be accessed from within one of your IIS websites.

1.      Highlight the c:\DotNetNuke folder, then Right-Click

2.      Sharing and Security > Web Sharing

3.      Share on: [select website to host DotNetNuke]

4.      Share This Folder (radio-button)

5.      Alias: DotNetNuke (with default Access Permission: Read; App Permission: Scripts)

7.      Two final steps require you to create a database in App_Data folder, and add the missing file ‘database_template.mdf’ so the installation does not fail with that error.

8.      Khalil Abu-Dahab put these files into a ZIP that you can download from his blog site located at (http://it.yu.edu.jo/portals/0/hosted/DotNetNuke_SQLExpress.zip). After you download it, extract it over the c:\DotNetNuke folder and the files within the ZIP should be extracted to the appropriate folder/subfolder locations.  WARNING: There is a risk involved in downloading and using files from unknown and unproven sources.  That risk is your own responsibility to bear.

9.      You’re ready to browse to http://localhost/VirtualDirectory, and let the DotNetNuke installation begin!

 

---

 

If your system does not 'take' to my instructions, these two posts could be useful for your installation:

 

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/107/threadid/21459/scope/posts/Default.aspx

 

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/107/threadid/39895/scope/posts/Default.aspx

 

      One post is spawned from the other (as my post was built from Khalil Abu-Dahab's). These instructions vary slightly from mine, but what you might appreciate as I do is the numbered, detailed steps.  Whatever you do, keep with it.  I had numerous unsuccessful DNN installation attempts (for weeks) before I found a working installation sequence. Rest if you need to, but if you don't quit, you will be rewarded with a succesful installation - and it's worth it.

 

To help you get a vision for what you're looking to achieve in the way of a successful DotNetNuke 4.0.x installation, here's what DNN success looks like: www.lesscomputertime.com/dotnetnuke

 

Tikkune

 


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
6/1/2006 10:06 AM
 

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
6/1/2006 11:36 AM
 
Tikkune,

From the installations that I have done, I have noticed that when you get the error of a missing
"database_template.mdf" file, its usually because of a problem with the database connection or permissions.  That file is not really missing if the installation settings are correct, you will just get that error if a step was missed or done incorrectly during the install process.  I used to get that error, but after I figured out what I did wrong with my database connetion, I never got that missing "database_template.mdf" error again.  I think that the best solution is to not just find and download that file online, but you might want to find out what congifuration problem caused you to get that error in the first place.  If you patch it with a file that you get online, it might work fine, but you dont know what might not work correctly within your portal because whatever caused that error in the first place.  My personal opinion is to not patch an errored install, but to try to perform an install with no errors to avoid unknown problems later on.

Keep in mind that I am comming from a network and server administrators view, and not from a programmers view of this problem.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Could not find file Could not find file 'C:\DotNetNuke\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.


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