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 ...Cannot connect to database on hostCannot connect to database on host
Previous
 
Next
New Post
7/5/2007 4:10 PM
 

Hi,

This is my first DNN installation.

I downloaded the latest starter kit last week and fell in love with the platform over the next couple of days, put together a new site on my local machine using SQL 2005.

Yesterday I uploaded the site and the database to my hosting provider, but now I cannot connect to the database!?

I've worked with the provider and checked the connection strings, everything is correct. When I browse to my site in IE (7) the DNN I receive the following message:

'Cannot open database "{DatabaseName}" requested by the login. The login failed. Login failed for user {UserName}

I'm using the same login details I have used in another SQL based site this provider is hosting for me so I know the login details are correct.

When I go to the installation wizard and use the custom or typical method, the file permissions test is passed. I then get to the 'Configure Database Connection' page. Everything is already filled in for me (I have set the connection details in the web.config file). All details have been checked and are correct, yet I receive the following error:

'Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 11
Number: 4060
Message: Cannot open database "{DatabaseName}" requested by the login. The login failed.

Index #: 1
Source: .Net SqlClient Data Provider
Class: 14
Number: 18456
Message: Login failed for user ',{UserName}.'

So I return to the start and select the Auto method. As soon as I click next I get the following error:

'Error Installing DotNetNuke

Current Assembly Version: 04.05.03

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

below is the relevant sections of my web.config file; which apart from changing the server name works on my local machine.

<

connectionStrings>

<

add name="SiteSqlServer" connectionString="Server={ServerName};Database={DatabaseName};uid={UserName};pwd={Password};;" providerName="System.Data.SqlClient" />

</

connectionStrings>

<

appSettings>

<

add key="SiteSqlServer" value="Server={ServerName};Database={DatabaseName};uid={UserName};pwd={Password};">

</

appSettings>

Of course this is the string provided in the Starter Kit so I expect this to be fine.

Te only thing I can think of is that my provider has not set up the database user correctly although from the conversation we've had it sounds like they have.

Does any one have any ideas?

Thanks

MartyNZ

 
New Post
7/6/2007 1:25 AM
 

Thanks. This is now sorted.

 
New Post
2/23/2008 4:33 PM
 

Any chance in posting your solution please?  That's one of the beauties of a forum, finding solutions to things.  Unfortunately I'm struggling on this same problem so if you could let us know how you fixed it that would be great, cheers.

 
New Post
2/23/2008 4:41 PM
 

It's okay now, I found out what my problem was.  I was using "localhost" as the servername.  I'm using the Plesk admin system and when I went to create the database for the 50th time, it actually said the name of the server I should be using underneath type, "Database server".

All sorted now.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Cannot connect to database on hostCannot connect to database on host


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