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.7 installation gets completed but when u launch the default website it shows the following errDNN 4.7 installation gets completed but when u launch the default website it shows the following err
Previous
 
Next
New Post
11/27/2007 12:40 AM
 

Anyone who have faced this error and got solution or suggestion pls reply.

DNN 4.7 installation gets completed but when u launch the default website it shows the following error:

 

Server Error in '/DNN' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.UI.Skins.SkinDefaults..ctor(SkinDefaultType DefaultType) +189
DotNetNuke.Common.Globals.get_DefaultSkin() +31
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +2799
DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +82
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2897
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
New Post
11/27/2007 2:29 AM
 

Did you try to restart the application, e.g. by adding a blank to an end of a line in your web.config and saving the file?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/27/2007 4:12 AM
 

yes........i have done that but still the same error comes.........there must be some  solution for this...pls suggest......thanks for responding!.......

 
New Post
11/27/2007 4:53 AM
Accepted Answer 

 

Here is some sourcecode for your problem (in stack order)

public static SkinDefaultsget_DefaultSkin()

{
    if (_defaultSkin == null)
    {
    }
    return _defaultSkin;
}
 
 
publicSkinDefaults(SkinDefaultType DefaultType)
{
    string str2 = Enum.GetName(DefaultType.GetType(), DefaultType).ToLower();
    string filename = Path.Combine(Globals.ApplicationMapPath, "DotNetNuke.config");
    XmlDocument document = new XmlDocument();
    document.Load(filename);
    XmlNode node = document.SelectSingleNode("/configuration/skinningdefaults/" + str2);
    this._folder = node.Attributes["folder"].Value;
    this._defaultName = node.Attributes["default"].Value;
    this._adminDefaultName = node.Attributes["admindefault"].Value;

}

As far as I can see the only thing that can give nulls (Nothings) that are not verified here is the XmlDocument.SelectSingeNode or the XmlNode.Attributes
Because the default DotNetNuke.config does not contain the /configuration/skinningdefaults section it is obvious that SelectSingleNode returns null that is used further in the code

My Suggestions:

1. Do not rely on default skins
2. Add in DotNetNuke.config <skinningdefaults folder="something" default="somethingelse" admindefault="somethingmore" /> inside <configuration>...</configuration> in your DotNetNuke.config file

Good luck!


Regards, Ion
 
New Post
11/28/2007 1:13 AM
 

Thanks Ion...........default.aspx ran successfully and it took me to dnn local website which is working properly.

As u suggested, i just changed the default skin values.

Below i  have written the changed values.
viz.<skininfo folder="/DNN-Gray/" default="Vertical Menu - Fixed Width.ascx" admindefault="Vertical Menu - Fixed Width.ascx" />

Default values for skin info folder was DNN-Blue and both default were Horizontal menu

Thanks a lot!..........

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.7 installation gets completed but when u launch the default website it shows the following errDNN 4.7 installation gets completed but when u launch the default website it shows the following err


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