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

Last post 11-11-2005 1:23 PM by dennisouellette. 3 replies.

Sort Posts:

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

    11-10-2005, 4:13 PM
    • Member
      85 point Member
    • dennisouellette
    • Member since 07-30-2002, 5:26 AM
    • Plano, TX
    • Posts 17
    Hello,

    I get this error when I go to the website for the first time:

    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 77: 
    Line 78:             Dim AutoUpgrade As Boolean
    Line 79:             If Config.GetSetting("AutoUpgrade") Is Nothing Then
    Line 80:                 AutoUpgrade = True
    Line 81:             Else

    Source File: E:\DNN4\Website\App_Code\Global.asax.vb    Line: 79
    Dennis Ouellette
  • Re: Compiler Error Message: BC30451: Name 'Config' is not declared.

    11-11-2005, 8:37 AM
    • Member
      105 point Member
    • Eck
    • Member since 11-09-2005, 12:29 PM
    • Posts 21
    Try extracting the install version instead of the Source version.  In order to use the source version, you need to compile the solution in Visual Web Dev (or Visual Studio).

    After you do that, you might get an error about a missing file, "sitesURL.config" (or something close).  You'll find that file in the Config directory of your DNN install.  Just copy that out to the root folder of your DNN install and it should clear up.

    Hope that helps!
  • Re: Compiler Error Message: BC30451: Name 'Config' is not declared.

    11-11-2005, 9:14 AM
    • Member
      85 point Member
    • dennisouellette
    • Member since 07-30-2002, 5:26 AM
    • Plano, TX
    • Posts 17
    That worked!

    But I have another problem. All of the modules when the homepage first appears have the following error:

    Error: Links is currently unavailable.
    DotNetNuke.Services.Exceptions.ModuleLoadException: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. --->

    Any ideas on this?

    Thanks for all your help!
    Dennis Ouellette
  • Stick out tongue [:P] Re: Compiler Error Message: BC30451: Name 'Config' is not declared.

    11-11-2005, 1:23 PM
    • Member
      85 point Member
    • dennisouellette
    • Member since 07-30-2002, 5:26 AM
    • Plano, TX
    • Posts 17
    Fixed. Forgot to edit one line in the web.config file...
    Dennis Ouellette
Page 1 of 1 (4 items)