Sitecore 7: Database has been closed.

Database has been closed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Database has been closed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: Database has been closed.]
   ICR.SC.Internet.Website.Logic.MaxMind.LookupService.getCountry(Int64 ipAddress)
   ICR.SC.Internet.Website.Logic.MaxMind.LookupService.getCountry(String ipAddress)
   ICR.SC.Internet.Website.layouts.sublayouts.ic.Navigation.LanguageSwitch.
   ICR.SC.Internet.Website.layouts.sublayouts.ic.Navigation.LanguageSwitch.
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, 

Solution:

  1. Go to Website root and check if the Foilder "App_Data" is there
  2. Check if GeoIP.dat file is there. Otherwise load it from here: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
  3. Check Permission. Give acces right to user: NETWORK SERVICE !
  4. enjoy



Comments