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.