Products

Solutions

Resources

Partners

Community

About

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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dreaded  "If Config.GetSetting("ServerName") = "" Then" Error!!!dreaded "If Config.GetSetting("ServerName") = "" Then" Error!!!
Previous
 
Next
New Post
9/2/2009 10:22 AM
 

Hi Guys,

I'm experienceing the dreaded "If Config.GetSetting("ServerName") = "" Then" error or BC30451: Name 'Config' is not declared. 

I'm currently using the source code version of DNN5.1.1 and moving it from a development area to a performance testing server. I've built the item in Visual Studio before transfering the files to the different server (no probs there) and I've moved the same build to a seperate server and all is well.
 
On my performance testing server (the one that's giving me such headaches) I have made sure that all files were copied over, a build was done in Visual Studio, IIS is setup correctly, I have made sure all permissions are correclty set. I have also ran the following:
 
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -u
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
 
The performance testing box isn't 64 bit (to my knowledge) nor is the SQLserver it is connecting too.
 
I've spent days trying to sort this does anyone have any ideas? Please!
 
Mike
 
New Post
9/2/2009 10:31 AM
 

You need to put a web.config file in the root of the website project.  Just make a copy of the release.config file to do so.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
9/2/2009 10:45 AM
 

Hi Will, Thanks for the advice. I do have a web.config file in the root - I don't have a release.config though.Would adding a release.config help?

 
New Post
9/2/2009 11:15 AM
 

Have you ran the site through another build after putting the web.config in place?  The release.config is not required, but it is good to have as a backup of the config file.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
9/3/2009 4:31 AM
 

Hi Will,

I've put the new web.config on top of the old one and amended the DB stings, etc... nothing seems to work! This has me stumped!

If it assists I know the Databases server is 64 bit whilst the webserver is 32, will this raise any issues?

Anybody?

MS

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dreaded  "If Config.GetSetting("ServerName") = "" Then" Error!!!dreaded "If Config.GetSetting("ServerName") = "" Then" Error!!!


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