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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN Error - Connection To The Database FailedDNN Error - Connection To The Database Failed
Previous
 
Next
New Post
6/5/2015 3:36 PM
 
Thanks
 
New Post
7/4/2017 5:38 PM
 
I have the same problem. I just went to restore my local copy and got the db connection error discussed above.

DNN Error

Connection To The Database Failed

I have deleted and recreated my user with no luck. I even tried using the SA credentials and am still not able to connect the site to the database.

Anything else I should be trying?

Thanks.

JoAnn
 
New Post
7/4/2017 6:43 PM
 
Since I posted this, I created a new application, used the same connection string from the web.config of my dnn site in this new application and am able to connect and output data from a table in the same database. I don't think it is the user. Any other ideas?

Thanks.

JoAnn
 
New Post
7/4/2017 6:48 PM
 
also, I created a stand alone page on the dnn site with only this in the page_load

try
{
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString);
}

catch (Exception ex)
{
Response.Write(ex);
Response.End();
}
and I still get the generic

DNN Error

Connection To The Database Failed

No idea where to go with this. Any help would be much appreciated.

JoAnn
 
New Post
7/8/2017 2:30 AM
 
If you did the following:
1. backup full db on production server
2. copy db.bak file to development server
3. restore with option overwrite on dev-database
***this next step is important***
4 run sql script to resync db-user with login user on database (GUIDs will not match)

USE [db-name]
GO
EXEC sp_change_users_login 'update_one', '[login-name]', '[db-user]'
GO

Hope this helps...
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN Error - Connection To The Database FailedDNN Error - Connection To The Database Failed


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