Thursday, September 09, 2010
  Search
 
Register
Login
 
How to Install and Configure ActiveDirectory Provider for DotNetNuke 5.0
 The directions for installing and configuring extensions in DotNetNuke 5.0 are very similiar, but slightly different than from previous versions. Here's how to install the ActiveDirectory authentica...

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 DotNetNuke category

Read This Article . . .

Setting Up the DotNetNuke Side of Multi-Websites
Ok, so by now you know that DotNetNuke can handle multiple websites, but you still want to know why. Well, it’s pretty easy once you know how to do it, but it can be pretty confusing to some who are ...

Find this article and more in the category

Read This Article . . .

More Ways to Install DotNetNuke Modules with the URL Method
While DotNetNuke has a built in mechanism for installing modules, there is another method you can use as well. This is a great alternative to use especially when you are trying to install larger mod...

Find this article and more in the category

Read This Article . . .

I Need to Modify the What to Install DNN? What in the World is a Web.Config File Anyway??
 If you're wondering what in the world a web.config file is, then wonder know more. . .in about 5 minutes, you'll know more than you do now and be well on your way to moving forward.

Find this article and more in the Web.Config 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 . . .

Adding Google AdSense with Video
Adding Google AdSense to your DotNetNuke portal has never been easier. By default, a Google AdSense module is added the list of installed modules when your DNN portal is first created. It's easy to ...

Find this article and more in the Modules 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 . . .

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 . . .

Customize Your DotNetNuke Installation
Do you ever get tired of installing DotNetNuke just to go and change the same properties over and over? Why not just customize your install and skip the drudgery all together…

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