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 ...HELP!!! I am getting an ERROR!!HELP!!! I am getting an ERROR!!
Previous
 
Next
New Post
2/12/2007 4:59 PM
 

Ok, I am about to pull my hair out.  I have followed the instructions just as they are in the Install PDF, and I am getting this error:

Error Installing DotNetNuke

Current Assembly Version: 04.04.01

ERROR: Could not connect to database specified in connectionString for SqlDataProvider

I have researched on here regarding this, and people say that the connection string is not right or whatever.  Well, there's only a few spots to change, and I have triple checked; there isn't anything misspelled.

Please help.  I just want to try this out, and so far, I am not that impressed because I cannot even get it up and running.

Thank you.

 
New Post
2/12/2007 5:59 PM
 

Some more info would help. What kind of database are you connecting to (SQL2000, SQL2005, SQLExpress)? What OS are you running this on? Can you connect to the database with the credentials you supplied in the web.config outside of DNN?

 
New Post
2/12/2007 6:07 PM
 

Sorry. . . It's been a long day. . .

Yes.  I can connect with the credentials that I used in the web.config file.

I'm on a Windows 2003 box with SQL 2000.

I literally followed the instructions step-by-step, and I get that error.  And I have checked to see if SQL will allow remote connections, and it will.  The NTFS permissions are fine, which by the way, is not always NETWORK SERVICE, it is also ASPNET.  But in either case, they're fine.

I did try it on my local machine (Windows XP) with SQLEXPRESS, and it seems to work, but not on the 2003 box, with SQL 2000.

Any help would be greatly appreciated.  And after I get this up and running, I want to allow people to log-in, using Active Directory, but that's later.

Thanks!

 
New Post
2/12/2007 6:13 PM
 

Yeah more info would help but this is usually a problem with commenting (placing <!-- -->tags) out the wrong db connection string in the web.config file or incorrect db password or name.

 

-Mark 

 
New Post
2/12/2007 6:30 PM
 

Ok, ok. . . I found the problem, and it is a typo on DNN's part, not mine.  The directions aren't as explicit as some would think. . .

By default, the SQLSERVER string is commented out, but the close comment "-->" is on another line return.  I did not see it (like I said, long day).  If you're using SQL2000 or 2003, comment the SQLEXPRESS line, and make sure that the other line is not commented out.

<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
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
      providerName="System.Data.SqlClient" />
   -->
  </connectionStrings>

That was the problem and it works now.  It may also be that I used Notepad, rather than something else as well.

I knew if I walked away for a while and came back, I would see something.

Thanks,

D

P.S. - And don't make fun of me.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...HELP!!! I am getting an ERROR!!HELP!!! I am getting an ERROR!!


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