Name Config is not Declared

A new DotNetNuke installation gave the error Name Config is not declared.

The full error message is as given below:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30451: Name 'Config' is not declared.

Source Error:

Line 66:
Line 67: Dim AutoUpgrade As Boolean
Line 68: If Config.GetSetting("AutoUpgrade") Is Nothing Then
Line 69: AutoUpgrade = True
Line 70: Else

Source File: C:\Inetpub\wwwroot\App_Code\Global.asax.vb    Line: 68

To resolve this error I copied the file relase.config and renamed it to to web.config. The connection details regards the SQL database were edited accordingly.