change server

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/2/2010 6:11:57 PM
Gravatar
Total Posts 1

change server

hi!

We are trying to change the aplication to another computer but we get this error:

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

We back up the db and restored in the other computer

after we created a new login with dbo on the db

and finally we changed the names of login and db on the web.config and user.config

can someone tell us what are we doing wrong please

help!

12/2/2010 6:40:09 PM
Gravatar
Total Posts 5

Re: change server

Try having a look here:

http://support.microsoft.com/kb/914277

 

12/2/2010 6:52:10 PM
Gravatar
Total Posts 18439

Re: change server

Hi,

This error message is very clear. It indicates either a mistake in your connection string or the database server is not accessible from the web server.

You should only worry about the connection string in user.config because if it is present that is what it will use, and it is better to keep it in user.config. But when you edit user.config, after you save user.config you need to touch Web.config to make it reload the settings (ie type a space in it and save it, or download it and upload it again), otherwise it won't see your new changes in user.config.

For more information about moving a site from one machine to another, see this document:

http://www.mojoportal.com/moving-an-installation-of-mojoportal-to-a-different-server.aspx

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.