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 ...Stuck with installationStuck with installation
Previous
 
Next
New Post
7/28/2007 12:37 PM
 

Hi -

I'm sure its something simple, but i have now been hours trying to get DNN installed. Its my first ever go, and have so far managed to get over the hurdles of permissions and things with help of the forum. But I don't seem to be able to get the database connection string working.

I have a clean install of DNN 4.5.5. and SQLEXPRESS and have the following connectionstring in my web.config file.

 connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
      providerName="System.Data.SqlClient"

and under appsetting: <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

Whenever I enter the url of my local install localhost/dotnetnuke (dotnetnuk is virtual dir on iss) it either directs me to dotnetnuke/install/underconstruction.htm or it gives me the error :

DotNetNuke Error: - Version 04.05.05


An attempt to attach an auto-named database for file C:\Documents and Settings\antoine.stinissen\My Documents\DF\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

 

What am I doing wrong?

Many thanks for any help.

rgds,

Antoine

 
New Post
7/29/2007 3:53 AM
 

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/29/2007 11:11 AM
 

Thanks. Done all the things as written in the blog. However now get the following error:

 

The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception

 

Installing DNN is surely not for the faint hearted. I have searched the forum on the above error but am non the wiser really.

Any suggestion on what the cause might be?

Thanks,

Antoine

 
New Post
8/3/2007 12:53 AM
 

This may seem obvious, but check to make sure that your connection string entry in the web.config is not commented out - they are all commented out in the standard release.config, so you have to remove the XML comments from around the one you're using.

So for example, you need to change this

    <!-- Connection String for SQL Server 2000/2005
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
      providerName="System.Data.SqlClient" />
   -->

to this

    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
      providerName="System.Data.SqlClient" />

 
New Post
8/3/2007 11:22 PM
 

So true...

I too was stuck with this and uncommenting the comments really put me in a huff.... when i foud out that i had not done it :-0

Thanks a ton.

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Stuck with installationStuck with installation


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