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
11/14/2006 12:57 PM
 
Hello all --

I am feeling completely worthless trying to get 4.3.5 installed on a Windows 2003 Server.  I created a new Website at C:\Inetpub\dnn.  Then I unzipped the contents of the 4.3.5-Install.zip to that folder.  Opened up Visual Studio Express and did the Ctrl+F5 thing, it said it completed.  Then it opened a web browser and I was greeted with "Could not connect to database".  I didn't make any changes to any files.  Any ideas?  I have tried this on multiple machines with exactly the same result.

Thanks in advance,

Tim
 
New Post
11/14/2006 9:34 PM
 

You didn't mention if you created the database before you did the install. You have to create a database by the name of DotNetNuke, create a user that has the role of db_owner and put that user in the 'uid=' and the password in the 'pwd=' part of the connection strings in the web config. There are two places to do that.  Thats one way that works sometimes. Though I must admit I am confused myself at this point. I can get the web site to come up but I can't get the .Net projects to work in Visual Studio. So I'm not totally there myself.

Tom

 
New Post
11/14/2006 11:31 PM
 

"I didn't make any changes to any files"

That could be the problem ... you must edit the web.config file to provide the connection string.

Find areas that look like this and change DBServerName, MyDBName,UserWithDBO_privs and ThatUsersPWD to the correct values.

  <connectionStrings>
    <add
      name="SiteSqlServer"
      connectionString="Server=DBServerName;Database=MyDBName;uid=UserWithDBO_privs;pwd=ThatUsersPWD;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="SiteSqlServer" value="Server=DBServerName;Database=MyDBName;uid=UserWithDBO_privs;pwd=ThatUsersPWD;"/>


pmgerholdt
 
New Post
11/20/2006 2:50 PM
 

Apologies for my uninformed response.

I am or was still stuck in the non-SQLExpress world. Had a bit to learn and was in the middle when I wrote that.

Still learning, for that matter ...


pmgerholdt
 
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