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 ...Weird DNN db move problemWeird DNN db move problem
Previous
 
Next
New Post
8/5/2009 11:03 AM
 

 I'm trying to move a DNN database from our dev environment SQL Server [2005] to our production environment SQL Server [2008]. I've done this fo several other DNN instances on our network without a hitch, so I'm at a loss for why this time is a problem.

The DNN instance I'm moving the database for is a DNN 4.9.1 site running on IIS6/Windows Server 2003.

 

Original Configuration - works fine

192.168.200.12 is the dev environment db server [SQL Server 2005]

web.config - both the connectionStrings and appSetttings connection strings point to

connectionString="Server=192.168.200.12;Database=dnndb;uid=user;pwd=pass"

Database Move

  • detach db from dev db server
  • copy to production db server
  • attach to production db server [SQL Server 2008]
  • add a new user for the db server in [server]/Security
  • add a new database user associated with the new server user
  • verify that the newly created user/password has access to the server and database with SSMS
  • Modify web.config connection strings in the DNN installation

connectionString="Server=192.168.100.20;Database=dnndb;uid=user2;pwd=pass2"

  • Stop/Restart web Site
  • Browse to DNN Site - looks fine

Next, I detach db from original dev db server and refresh DNN site default page in browser  and I get the following error:  A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

I refresh the page again and from then on, I get: Cannot open database "dnndb" requested by the login. The login failed. Login failed for user 'user'.

If I then shut down the dev environment db server and refresh the DNN site default page, I get the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

I have also tried stopping and restarting the specific web site as well as stopping and restarting the entire IIS web service and the problem persists after the restarts.

About the only thing different about this website from the other DNN sites that we have in production is that this site is using the AliCommerce 2.1.5 DNN module.

Any ideas on troubleshooting or fixing this would be appreciated.

 

 
New Post
8/5/2009 12:10 PM
Accepted Answer 

 AliCommerce stores the connection string in its own config file, so you need to make sure that is also updated.  It should be located in \DesktopModules\AliCommerce\Config\nhibernate.config.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
12/18/2009 9:10 PM
 

Thank You! I ran into the same issues this afternoon and couldn't figure out the problem. Changed connection string in /DesktopModules/AliCommerce/config/nhibernate.config and we back in business.

Kelly

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Weird DNN db move problemWeird DNN db move problem


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