Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.0.3 Install Errors - Object Reference Not SetDNN 4.0.3 Install Errors - Object Reference Not Set
Previous
 
Next
New Post
4/24/2006 2:07 PM
 

I have DNN 4.0.3 sourcecode and it complied successfully. I am getting "Object refernce not set" error when I try to load default.aspx page.

The error is generated in Install.aspx at the following line. I am running on Windows XP Professional and both ASPNET and NETWORK SERVICE (according to other threads) both has full permission on website directory. Also, I noticed that the source code zip file download does not include web.config file but running it locally added the web.config file.  Is there anything needs to be done here? What did I miss in configuration? Any thoughts on this error? I would appriciate the help!

' create random keys for the Membership machine keys

xmlConfig = Config.UpdateMachineKey(xmlConfig)

Catch ex As Exception

strError += ex.Message

End Try

 
New Post
4/24/2006 3:34 PM
 

Never mind. Fixed it. I copied the Releases.config and replace the content of  web.config file with Releases.config file. I modified database connection strings in <appsettings> and <connectionStrings> section to point to my local sql server database. Installation worked like a charm afterwords.

 

 
New Post
4/30/2006 4:27 PM
 

Had the same problem with same DNN version on same platform and the same solution to fix the problem.

However it worries me,  because I do not have a clue where this problem comes from and I fear that same problems might occure for similar occasions without being noticed. So whenever somebody has a clue where this problem is originating I would be happy to know as well.

kind regards

René

 
New Post
5/1/2006 9:06 AM
 
If you're upgrading, there may be new providers or other features identified in the web.config that you don't have. If these aren't there, there will be object reference issues.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
5/2/2006 5:35 AM
 

I have taken a little time now to analyze the issue in more detail and here is what I have found in my environment (not sure whether my findings will apply to  general solution as well):

1. Where the problem occures:

in the config.UpdateMachineKey function the following statement has set the xmlMachineKey to "Nothing" which in the following will finally cause the problems described:

Dim xmlMachineKey As XmlNode = xmlConfig.SelectSingleNode("configuration/system.web/machineKey")

2. Why does this problem occure

When analysing my web.config I have found in the first line the <configuraiton> node has been "enriched" with an "additional" xmlns attribute as follows:

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

With is different from the "empty" <configuration> tag proposed by the initial release.config.

Some testing then verified that the SelectSingleNode function will return "Nothing" when this xmlns attribute is present (I am not sure whether this is a generic bug in ASP.NET 2.0 or not).

3. Solution:

I have removed the xmlsn attribute from the <configuration> tag so that it is <configuration> alone that makes the first line of web.config and Hurra! all works fine now!

4. Pending Question

a) cause of the "enriched" <configuration> tag

Currently I do not have a clue how this xmlsn attribute has come into the <configuration> tag. Maybe it has come with a 3rd party XML tool that is "overcorrecting" missing attributes. As I am just using Microsoft and Adobe standard development tools the solution might not be to far searched. If you have an idea - just let me know.

b) According to my view the SelectSingleNode() function should be able to deal with such "enriched" as well and must not return "Nothing" when dealing with it. Maybe I am wrong, maybe its a general bug in ASP.NET.

So if you are an expert in this - any comments are welcome!

Kind regards

Rene

 

 

 

 

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.0.3 Install Errors - Object Reference Not SetDNN 4.0.3 Install Errors - Object Reference Not Set


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