Error "Server Error in '/" Application." while browsing the site which was restored using the Full farm backup

Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine

In this Scenario, the Farm level backup was taken moving the configdb on to the new SQL server, then restoring the Farm level backup on the SharePoint Farm.

Now when you try to browse the site, you get an above error.

Then remove the content database from the site and re attach using the stsadm –o command you still tend to see the above error

The best way to resolve the issue

Run the configuration wizard and disconnect SharePoint server from the farm.

Then Run the configuration wizard again and choose to join to the existing SharePoint farm.

Then create a new Site, detach the content database which was created while creating a site

Add the production content database to the site using

stsadm –o addcontentdb –url < > - databasename < >

Now you should be able to browse the sites