Hi -
in Global.asax.vb, there's this function Application_Start:
Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
If Config.GetSetting("ServerName") = "" Then
ServerName = Server.MachineName
Else
ServerName = Config.GetSetting("ServerName")
End If
End Sub
Global.asax has the following namespaces imported:
Imports DotNetNuke.Security.Roles
Imports DotNetNuke.Services.Log.EventLog
Imports DotNetNuke.Services.Upgrade
And Global.asax.vb itself is under DotNetNuke.Common namespace. I wonder how it can call Config class directly in the code, because Config class is under DotNetNuke.Common.Utilities name space. Is there any settings in the web.config or on install environment to enable that?
I'm asking this question is because I'm getting the "BC30451: Name 'Config' is not declared" error, but I double checked that my web.config is in place and all the dlls are under bin folder.
Thank you very much for any suggestions!
yy