You need to Register for free and Login to post a message in the forum.

Forum

Subject: dotnetnuke compiler error
Prev Next
You are not authorized to post a reply.

Author Messages
wdarnellg
Nuke Newbie
Nuke Newbie
Posts:7

22 May 2008 9:35 AM  
I am trying to transfer my dotnetnuke files from localhost to my live account. I have followed the steps from the discountasp.net kb article Q10382 and the dnncreative videos. I am getting the following error when I try to connect to the page.

Compiler Error Message: BC30451: Name 'Config' is not declared.
 
Line 65:         ''' -----------------------------------------------------------------------------
Line 66:         Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Line 67:             If Config.GetSetting("ServerName") = "" Then
Line 68:                 ServerName = Server.MachineName
Line 69:             Else
 
Does anyone have any help for this? Thanks.
jncraig
Nuke Master I
Nuke Master I
Posts:1844

22 May 2008 11:13 PM  
Chances are your new installation isn't connecting to the database server. Check BOTH connection strings in web.config.

Joe Craig
DNN Creative Support
Subscribe to the website
wdarnellg
Nuke Newbie
Nuke Newbie
Posts:7

23 May 2008 1:53 PM  
It seems to have been that the web.config file didn't reference the system.configuration namespace. I had to manually add it.
Thank you for the suggestion.
jncraig
Nuke Master I
Nuke Master I
Posts:1844

24 May 2008 11:14 AM  
Where/how did you add this?

I've never seen that sort of thing in a DotNetNuke web.config file.

Joe Craig
DNN Creative Support
Subscribe to the website
wdarnellg
Nuke Newbie
Nuke Newbie
Posts:7

26 May 2008 11:13 PM  
Sorry for the delay in reply. I was in error. I did add the namespace reference to the web.config file, and I mistakenly thought it worked because I was next presented with a 'generic dotnetnuke error page'. I assumed that the compiler moved past the app_start sub, therefore was working at that step. Needless to say, I am new at this, and my programming needs lots more training. I actually discovered that quite a few files didn't ftp to my site, and I had to upload them one at a time. My site is up. ( www.heartoftexastennis.com ). I am still seeking some solutions to some issues, like the date and time diplaying different than the utc central time zone that I am in, but you were right that I wasn't connecting to the database server due to missing files.
I have spent the past couple of days on the United States Memorial Day Holiday causing the delay in my reply. I appreciate your help.
jncraig
Nuke Master I
Nuke Master I
Posts:1844

27 May 2008 8:19 AM  
You shouldn't need to do ANY programming to run  a DotNetNuke site, unless you are creating special purpose modules for very special needs.  There are many, many modules available, so I suggest that you always look to them first.

As for time zone, there are several places where time zone information is set.  The site can have a time zone, and each user also has a time zone.  The idea is that logged in users should see dates and time appropriate for their locales.  The site time is set in Site Settings.  The user's time is set in the User Profile.

I hope that you had a nice Memorial Day weekend.  Here in Maryland, the weather was almost perfet.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > dotnetnuke compiler error



ActiveForums 3.7

Latest Forum Posts

RE: Set print button to be off by default by jncraig
As noted elsewhere, you can use a container that doesn't include those features. You can also edi...
RE: Can't edit settings by robax
This appears to be happening because of McAfee products. I'm testing it now. Rob
Set print button to be off by default by hollis3162
One of my templates has 8 modules on it.  I don't want 8 print buttons and I don't want 8 visibility...
RE: FCKEditor and dynamic css by DavidWSnow
Didn't touch and FCKedit files. originally I all I had to do was follow Lee's tutorial on the FCKedi...
need help to show breadcrumb in different way by smyagnik
hi.. i m new to DNN & i m makeing intanet site in DNN  i want the information regarding the page ...
RE: Subscriber token? by jncraig
I'm glad that was useful. If you "module" doesn't do any data access, the code if really simple. ...
RE: FCKEditor and dynamic css by jncraig
Did you modify one of the FCK editor's files to do this? If so, you probably overwrote that when yo...
RE: Can't edit settings by jncraig
I haven't seen that problem with IE, but I'm always finding differences. Using an XHTML skin is usu...
RE: Can't edit settings by Liz
You have hit the nail on the head. I was using IE 7, just tried it in FF and it works fine. Must be ...
RE: GoDaddy by greenflash
Hello aggiedan97, i have experience hosting multiple domains under a single dnn portal, for Godaddy ...
RE: GoDaddy by aggiedan97
Does anyone have any experience with hosting multiple domains on a single dnn portal @ Godaddy? I h...
RE: Subscriber token? by johnr
ok... at first I was a bit intimidated by the prospect of making a module!  Geez... it is "SuperSimp...
RE: Open menu links in new window? by ericb1
This forum re-names attachment files, so the old skin is called '171818187454.zip' and the new skin ...
RE: Open menu links in new window? by ericb1
Thank you so much for your help, I really appreciate it.  Ididn't realize that the code I tried to p...
RE: Upgrading Problemo by mgordon
Thanks Joe.  That did the trick.  A shame I have to update all the various skin .ascx files, but, he...
FCKEditor and dynamic css by DavidWSnow
I used to be able to have my styles from the skin.css be used inside the FCKedit while I was editing...
RE: Module menu skinning issue by jncraig
Try a different container and see if it works.
RE: Security Roles won't work for registered users by daniela
I have installed dnn 4.8.2 to realized my site but I have this problem: I have created role group an...
RE: Module menu skinning issue by dp6ai
I'm using blankcontainer.ascx there's not much to it and no css: ...
RE: Showing error after changing the settings in Container by jncraig
Some other things that you can do are: Look at the event log for a more detailed report and post ...
AppTheory
RSS Feeds