Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Config.GetSetting("AutoUpgrade")Config.GetSetting("AutoUpgrade")
Previous
 
Next
New Post
2/19/2006 10:32 PM
 

I initially downloaded the "Source" version of DNN 4.0.2.  After getting past the connecton string and permissions issues, I got this compile error:

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

Reviewing the little information actually availble in the forum about this (there is a blog entry by Charles Nurse which mentions this)  The blog entry says:

There are two common causes for not being able to find the assembly.

1. In Visual Studio 2003 (for Visual Basic but not C#), the project file contained a number of commonly used Imports statements - ie Imports Statements that were used by all .vb files in the project.  As .NET 2 websites do not have a project file, these default Imports statements have been moved to the web.config file.

eg
       
           
               
               

Thus if release.config has not been copied/renamed to web.config, the compiler will not be able to find the "Config" class, as the project does not have an Imports statement referencing the correct namespace..

2. If working with the Source release - the assemblies need to be built, before the site can be run..  (This is normal behaviour for source releases, (for instance Linux, Apache etc), although it is quite surprising how many people expect the source package to work out of the box).

But, he never clearly indicated what actually was missing in web.config.  From other Google searches, It seemed that I should add:

         <add namespace="System.Configuration"/>

to web.config and recompile all of the modules.I never could get VS 2005 (Premium Partner Version) to handle/accept "vbproj" files,  so I could do the assemblies.

I never could get/modify VS 2005 (Premium Partner Version) to accept/translate the DNN source, since DNN ris in "vbproj" format.

So, I punted.  I download the "Install" DNN 4.0.2 and made my web.config changes.

I still get the same error.

Someone thought I might still have a permissions problem with localmachine\ASPNET, but I don't see one.  I am using a XP SP2 platform with SQL Server 2005 and V2 .NET

I hesitate to eat/use lots of forum space uploading web.config, the IIS screens and the SQL screens with having a better idea of what is causing this problem.

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Config.GetSetting("AutoUpgrade")Config.GetSetting("AutoUpgrade")


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out