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 ...Problem with restore DNN3 / SQL Server Express 2005Problem with restore DNN3 / SQL Server Express 2005
Previous
 
Next
New Post
6/11/2009 4:01 PM
 

Hi,

at first I have to say I am not really familiar with DNN and I still use DNN Version 3.???

Last week I had to reinstall my webserver (windows server 2003). Now I have to restore one DNN-website from a backup I made before.

The problem is that DNN cant connect to the database and displays this error:
****
Installing DotNetNuke
Upgrade Error: ERROR: Could not connect to database specified in connectionString for SqlDataProvider
Server Error in '/' Application.
SQL Server does not exist or access denied.

....
****
I can see that DNN redirect to this path ".../Install/Install.aspx?mode=Install"


If I try to open the site again the following error appears (the content is the same) and there is no redirect to the install path:

****
DotNetNuke Upgrade Error
The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

SQL Server does not exist or access denied.

****

Thats what I did before reinstall windows:
- made a backup of the Database (Sql Server Express 2005)
- made a copy of the complete DNN directory
- exported the IIS configuration for this website

Thats what I did after reinstall windows:
- created a database named "DNN3" and made a restore from the backup file (no errors)
- created a DNN directory (the same path I used before) and copied the "old" files into this directory
- imported the IIS configuration for this website (from an XML-file)
- unregistered ASP.Net 2.0
- registered ASP.Net 1.1 and activated it in IIS


Of course it seems there is something wrong with the web.config / connectionstring. But the web.config is the same as before.
The database is available (via SQL Server Management Studio Express) and the user exists in the database.
I am wondering about the connectionstring in the web.config
    ...
  <appSettings>
    <add key="SiteSqlServer" value="Data Source=127.0.0.1,1433;Network Library=DBMSSOCN;Initial Catalog=dnn3;User ID=MYUSER;Password=MYPW;" />
    ...
and there is no "connectionstring"-element!?!?!?
The SAME web.config worked before reinstall! So why now no more?

Please help me. I have no idea whats wrong or missing.

 
New Post
6/11/2009 5:10 PM
 

you need to alter the 2 SiteSqlServer values to match your new database.

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/12/2009 3:59 AM
 

thank you for your replay.

I thought the database is the same after restore so I can use the same connectionstring / web.config. The servername, directories, databasename and UserID/Password are all the same as before.

Ok. I will try to find the correct connectionstring now.

 
New Post
6/12/2009 8:43 AM
 

ah, sorry, i hadn't realised it was a restore with all the same credentials. In that case then you're likely to have missed a setting e.g.you key is <add key="SiteSqlServer" value="Data Source=127.0.0.1,1433;Network Library=DBMSSOCN;Initial Catalog=dnn3;User ID=MYUSER;Password=MYPW;" />  (the value part is used as the connection string), is a little unusual e.g.you're explicitly setting the network library to DBMSSOCN .THis means the connection will only work if you've installed the win32 winsock tcp/ip netlib with your sql install ( http://support.microsoft.com/kb/238949). From memory, only the named pipes netlib installs by default, so you may want to check that out.

Most people do not force the netlib for this reason and leae the sitesqlserver strings similar to this:

<

add key="SiteSqlServer" value="Data Source=(local);Initial Catalog=mydb;User ID=myuser;Password=mypassword" />

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Problem with restore DNN3 / SQL Server Express 2005Problem with restore DNN3 / SQL Server Express 2005


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