Fun with site migration

February 11, 2009 by: B.Harding


Here is my latest headache:

Server Error in ‘/’ Application.


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: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified)

I recently migrated my dedicated server from the worthless company AIT to the cloud computing division of RackSpace. As a result I had to move my SQL database. No Problem I thought. I’ll just edit my web.config and go about my merry business. Well that is when the above error appeared.  This peticular site is dynamically compiled VB site with code in the aspx pages. (no code behind).

The data access layer is handled by some dataset files with XSD extentions. I found that when the files were created the web config connections strings were coppied but not dynamically linked. Each table adpter’s connection sting needed pointed at the web config again. The process was slow due to the now-remote database.

Now that the table adapters have updated their connection strings all is well.

Comments

4 Responses to “Fun with site migration”
  1. da best. Keep it going! Thank you

  2. Kelly Brown says:

    The article is usefull for me. I’ll be coming back to your blog.

  3. Original post by Dmitri Gromov

  4. Amy says:

    da best. Keep it going! Thank you

Leave a Reply

*