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 connect to database!!!Could not connect to database!!!
Previous
 
Next
New Post
10/1/2006 2:05 AM
 

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

We are using SQL Server 2005  (not express 2005)


If you are NOT using express edition then WHY are you still having it in the connection string ?
It should be data source=. or
data source=(local) or
data source=servername
but  NOT like this Data Source=.\SQLExpress

Do you see the error ?

Also "Giving up" "Quitting" is very easy.
Lets stick on and give it one more try.
I know it works see my site in my signature and there are so many more to tell you that it works.
Come on, cheer up, I know its difficult but the rewards are much better.
Dont quit yet.
Post your connection string here, just the <appsettings> and <connectionstring> sections. (Replace your username and password with * before posting) we will try.
see other realted posts and see how they succeeded.




Regards KM
 
New Post
10/1/2006 4:07 AM
 
Hi KM,

Actually i am getting the same error, so i was wondering if someone can just post up the database script file on the dotnetnuke then people can run that database script file on their databases and just specify the Initial catalog to that database and hopefully everything should just run.. why do u have all this attach database file and app data folder and stuff is there any reason i am wondering.

Thanks,
Ankur
 
New Post
10/2/2006 6:26 AM
 

Hi KM,

 

Thanks for the encouragement, appreciate it.  I didn't give up ;-).  basically this is what happened

I am new to DNN as well as web development/hosting.  So I setup a domain and tried to install DNN 4.0.  This may sound like I am an idiot...I didn't know what database name/user/password to use.  Is it DNN specified DB (specific connection string) that I need to setup in my server or do i use any DB in my server.  I was trying different combinations.  At the same time, I was using SQL 2005 but it was commented in the web.config file.  I think the documentation could be a little more specific for novice users.  Say, we can add a section, "for novice users" so non novice users can skip.

Now, I know the architecture roughly, learnt the hard way and it was frustrating, particularly when the only support here is via forum and a thread posted when you are stuck with a problem takes a day or two to go past the moderator.  I guess nobody gets paid to do it and we get the framework for free, so better appreciate that.

Having passed my DB problem (uncommenting my SQL 2005 section in web.config and using the connection string provided by my host provider) I then got stuck immediately with error in web.config.  It took a long while but it turned out that I was using DNN 4.0 but the server configured my app to use .NET 1.1.  I didn't know DNN 4.0 required .NET 2.0  I had to run some actions at the server to reconfigure my app then I saw that beautiful screen lisitng the progress of the install. HOORAAY!!

Now I am playing round with the core modules and thinking of building a module myself ;-) 

Cheers for your encouragement again

Hassan

 
New Post
10/4/2006 12:10 AM
 
Accually I found out the problem is something with SQL Express as well....

I was getting this error too when i try to create Pesonal site from template

" Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed. "

This is a good solution for me...

http://www.differentpla.net/node/487
 
New Post
10/4/2006 1:34 AM
 

Hey,

U know what ?

Now you get to take on this installation forum.
You are the new keeper of the flame, and show the light to others.

I just uploaded a step by step screen shot guide in pdf format on my site and posted a link here

How to Setup and configure dnn 4-3-5 in pdf format...
http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/107/threadid/75063/scope/posts/Default.aspx

Whoo hoo we have one more believer...
Welcome to the gang !!!

"Experience is what you get when you didnt get what you want"

 


 


Regards KM
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Could not connect to database!!!Could not connect to database!!!


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