Thursday, September 09, 2010
  Search
 
Register
Login
 
Quick Check for Troubleshooting the CodeEndeavor Ajax Templates
I haven’t just installed the the template and created a module out of the box yet. However, I have come across a few things that I know to check and fix and I’m up and running in no time at all. If y...

Find this article and more in the category

Read This Article . . .

Converting a CSS Template To a DotNetNuke Skin
Creating DotNetNuke Skins can be a time consuming task. But, it's really not that hard and it doesn't have to be if you can use templates to help get started. Why not convert some free templates from...

Find this article and more in the category

Read This Article . . .

How to Use the DNNLabelEdit Control
 It's easy to use the DNNLabelEdit control, you know the one you mouse over and edit in place? Yeah, that one. In just a few minutes, you can begin using the control on your sites as well for full on...

Find this article and more in the Module Development category

Read This Article . . .

Simple Intro to the DNN UserInfo Class
 New DNN developers often wonder how to expose information about logged in users to a custom DotNetNuke module. So, I threw together a very simple example to show how easy it is to begin using the bu...

Find this article and more in the DotNetNuke category

Read This Article . . .

Creating new DotNetNuke HTTP Alias Records
 Setting up DotNetNuke to handle serving requests for Portal Alias records is a breeze. You can use these records to direct your site to handle requests for multiple domain names to one website with ...

Find this article and more in the category

Read This Article . . .

How to Install DotNetNuke 5.0 Cambrian and Video
 This video tutorial covers installing using the Custom installation option, with SQL Express and also an external SQL Database. Find out more about which package to download and how to kick off the ...

Find this article and more in the category

Read This Article . . .

How To Customize the Privacy and Terms Links on Your DotNetNuke Portal
Straight out of the box, DotNetNuke already has a lot of things covered. But, what do you do when you are ready to begin customizing your site. Sometimes, it’s not so easy to figure out how to make t...

Find this article and more in the category

Read This Article . . .

New DotNetNuke 5.0 Cambrian Package Writer for Module Developers
Attention developers! DotNetNuke 5.0 Cambrian has a nifty new tool to help developers package their modules nicely to fit with the new “Extensions” manager. Under the old Module Definitions manager, ...

Find this article and more in the category

Read This Article . . .

SERIES: Anatomy of a DNN Web.Config File-connectionStrings
The section holds all the necessary information for database communication from your website. At minimum, there will be at least one connection string for any DotNetNuke website...

Find this article and more in the category

Read This Article . . .

Setting Up Multiple Websites
You can create multiple distinct, (mainly) independent websites with one instance of a DNN installation on your web account. In lamens terms, this means that you can purchase ONE web hosting accoun...

Find this article and more in the category

Read This Article . . .

Recently Added Articles

Minimize
Article List

 

Dude, Where’s my web.config file? Resolve Installation DNN Error Message: BC30451: Name 'Config' is not declared

11/21/2008 1:54:35 AM - By Briana Tarrance

Category: | | Comments 0

 

Sometimes troubleshooting DNN errors can be a royal pain. Fortunately, if you know what you're looking for installation errors are usually pretty easy to resolve. Unfortunately, if you don't know what you're looking for or if you're a DNN Noob, you may be bald by morning.

 

If you've just installed DNN and receive this error as soon as you attempt to open the site in your browser, you may not have a web.config file defined.

Depending on which DNN package you selected to download, you may or may not actually have the file named, "web.config" in your root directory. DNN Starter Packages come with three config files:

  • Web.config
  • Development.config
  • Release.config

You don't need all of the files however, the only one you actually need is the web.config file. The other two allow you to set up different config settings for testing or what not.

 

Now, if you've downloaded the DNN Source Package or Upgrade Package, you are not going to find a "web.config" file. The reason for this is so that you don't accidentally or inadvertantly screw up what you've already got going on. If you download the upgrade package and upload your files over your existing files, guess what? All those customizations you've done to your web.config file are gone and you're a mad mofo! Similarly, the source package includes the Development.config and Release.config files so you can make your adjustments as you're going along.

 

As a result, what happens sometimes is that people download the DNN Package ("there was more than one kind???") and immediately begin to try to run it. If you're using the default setup, typically you can do this…so long as the server can find your web.config file.

 

Check out the project directory in the image below and you can see what I'm talking about. Luckily, it's a super simple solution…simply rename either Development.config or Release.config to "web.config". Or, if it gives you the warm fuzzies to keep all the files you downloaded in tact, just make a copy of one of thm and then rename it.

 

 

Here you can see that I simply chose to rename the Release.config to web.config

 

Now, navigate to your site and Voila! Welcome to either a shiny new DNN installation or the next error to fix! J Either way, you're over this one now.

 

 

   

powered by metaPost

 

 

Related Articles
Installing Active Directory Authentication Package on DotNetNuke
I Need to Modify the What to Install DNN? What in the World is a Web.Config File Anyway??
Everything You Never Wanted to Know About the Config File

 
 
Copyright 2008 by Virtual-Essentials.com Privacy Statement    Terms Of Use