Rename Database

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi All,

I renamed the DB from nopcommerce to another name.  Changed the connection string in \AppData\Settings.txt and reset IIS.  Surprisingly it didn't work, instead throwing the following error message.

The page cannot be displayed
The page you requested could not be accessed for some reason. It may be a temporary error on the other end, or you may have asked for an invalid page. The error message below may help you diagnose the problem.

Error Information:

Error Code: 404
Error Message: The file requested was not found on this server

So, I changed the name back, reset the connection string but unfortunately still getting the same error, so obviously screwed something up.



Regards,
Paul
7 years ago
Hi Paul,

You need to know the exact exception. You can try to login to your server by RDP and open the website there. You can also change customErrors attribute to be Off and see the exception in your browser (https://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.85).aspx).

Once you know the exact exception, you will have more information to fix the problem.

Potential issues:

1. Typo in database name.
2. Database hasn't been renamed yet.
3. Database server IP change.
4. Database authentication failure.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.