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
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:8

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
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2505


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
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:8

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
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2505


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
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:8

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
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2505


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

Create new 'host' user? by jonathanbrickman0000
I have a DNN 4.7 web site successfully migrated to a new server.  There is only one hitch:  the 'hos...
RE: split copyrgt option in two lines by jncraig
You can put a in the copyright text. This may or may not put other text (to the right of the copyr...
RE: Can't Login! Login Page can't be accessed... by jncraig
Try: http://localhost/DNN/login.aspx http://localhost/DNN/?ctl=login If neither of those ge...
RE: HOw to upload site from localserver to www.mysite.com by jncraig
View this tutorial:How to transfer a localhost DotNetNuke installation to a live websitePay special ...
RE: Nightmare with SKINS... by jncraig
Before you get in too far, you might want to take a look at:An Introduction to the Principles of Dot...
RE: Nightmare with SKINS... by dougieladd
Hi Joe...thank you for that...I kind of assumed that was the case. As I understand it the skin comes...
HOw to upload site from localserver to www.mysite.com by aniket.rasal
Dear Friends,       I have created site. Its wolring fine on my local machine.But when i upload the ...
RE: DotNetNuke 4.9.1 and 5.0.0 by leesykes
It is on the Extensions page as well - named 'Batch Install Extensions' stefan blogged about it here...
How to Change fckeditor alignment by aniket.rasal
Hello Friends,       I am creating site with customized skin. In that i want to change the alignmen...
RE: DotNetNuke 4.9.1 and 5.0.0 by leesykes
Talk about hiding things - it took me a while even though it was staring me in the face!In the Contr...
RE: DotNetNuke 4.9.1 and 5.0.0 by leesykes
This post is worth a read in the main dnn forumsHaving upgraded, one thing that is confusing is wher...
RE: DotNetNuke 4.9.1 and 5.0.0 by leesykes
Hello, I've just been experimenting with this upgrading a fresh 4.6.2 (default installation no ex...
Can't Login! Login Page can't be accessed... by durationinc
Hi guys,I develop a website using DotNetNuke 4.9.1. I can't login after I did some modifications on ...
split copyrgt option in two lines by meenu
in dnn0408 website,I added copyright option in admin page settings.now my option is like this"Copyri...
PopUp Page by meenu
hiin my dnn0408 website i added one page named "PopUpMap".....in page settings of Popup page i selec...
RE: link to outlook by meenu
hi joei did the settings...working fine...thanks...
RE: Navigating between modules by Germaine
Hi Hi, anyone out there who can help me in this?? thanks
RE: New Logo cant display by Germaine
Hi Joe, yes I have a filed name Logo.png in the portal's root directory. I have added it into my pro...
Child portal to live site by psgrzelak
Hi all, I am new to the DNN universe but I have administered sites with Front page and Dreamweaver. ...
RE: PDF File Content by dongoldwater
I have reports that are strictly pdf files and want to incorporate them in a module. Can I insert t...
AppTheory
RSS Feeds