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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error in using Skin Error in using Skin
Previous
 
Next
New Post
1/29/2011 2:35 AM
 
Error A critical error has occurred.
Object reference not set to an instance of an object.


This error come when i use this  code in my site

<div id="menu">
 <object id="dnnNAV" codebase="NAV" codetype="dotnetnuke/server">
  <param name="ProviderName" value="DDRMenuNavigationProvider" />
  <param name="IndicateChildren" value="false" />
  <param name="ControlOrientation" value="Horizental" />
        <param name="CSSControl" value="MenuBarHorizontal"/>
 </object>
</div>

can any one  explain this why this error come when i write this code.



Complete code is shown here.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml...">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Medisave</title>
<link href="skin.css" media="screen" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="header"><img src="images/header.gif" width="290" height="77" /></div>
<div id="menu">
 <object id="dnnNAV" codebase="NAV" codetype="dotnetnuke/server">
  <param name="ProviderName" value="DDRMenuNavigationProvider" />
  <param name="IndicateChildren" value="false" />
  <param name="ControlOrientation" value="Horizental" />
        <param name="CSSControl" value="MenuBarHorizontal"/>
 </object>
</div>
<div id="banner">
  <table width="auto" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1024" height="300">
        <param name="movie" value="images/Banner Medisave.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="8.0.35.0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="images/Banner Medisave.swf" width="1024" height="300">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="8.0.35.0" />
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/do..." alt="Get Adobe Flash player" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object></td>
    </tr>
  </table>
</div>
<div id="Container">
  <div id="ContentPane" runat="server" ></div>
</div>
<div id="RightPane">
  <div id="RightPane" runat="server" ></div>
</div>
<div id="footer">
 <object id="dnnLINKS" codebase="LINKS" codetype="dotnetnuke/server">
     <param name="CssClass" value="links" />
     <param name="Level" value="Root" />
     <param name="Separator" value="&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;" />
 </object>
  <p class="txt">All rights are reserved.</p>
</div>

</body>
</html>





css for this is


@charset "utf-8";
body {
 background-color: #DDD;
 margin: 0px;
 font-family: Calibri;
}
#header {
 height: 100px;
 width: 100%;
 background-repeat: repeat;
 background-color: #BBD77C;
}
#banner {
 background-color: #FFF;
 height: auto;
 width: 100%;
}
#Container {
 background-color: #DDD;
 float: left;
 height: auto;
 width: 85%;
}
#RightPane {
 float: right;
 height: auto;
 width: 14%;
 margin-top: 15px;
 background-repeat: no-repeat;
 border-right-width: 0px;
 border-bottom-width: 0px;
 border-left-width: 0px;
 border-right-style: none;
 border-bottom-style: none;
 border-left-style: none;
 border-top-color: #FFF;
 border-right-color: #FFF;
 border-bottom-color: #FFF;
 border-left-color: #FFF;
 background-color: #CCC;
 border-top-width: 0px;
 border-top-style: none;
}
.newsheading {
 font-family: Calibri;
 font-size: 16px;
 font-style: normal;
 font-weight: bold;
}

#footer {
 background-color: #BBD77C;
 height: 100px;
 width: 100%;
 float: right;
 margin-top: 15px;
 text-align: right;
}
#Rightpaneheader {
 background-image: url(images/Content_header.gif);
 background-repeat: repeat;
 height: 35px;
 width: 100%;
}

#menu {
 height: 30px;
 width: 100%;
 background-color: #BBD77C;
}
#Containerhead {
 background-image: url(images/Content_header.gif);
 background-repeat: repeat;
 height: 35px;
 width: 70%;
 margin-top: 15px;
 margin-left: 15px;
}
#containerText {
 height: auto;
 width: 95%;
 margin-left: 20px;
 font-family: Calibri;
}
#ct {
 font-family: Arial, Helvetica, sans-serif;
 font-size: 12px;
 float: right;
 width: 60%;
}

#products {
 height: auto;
 width: 95%;
 margin-top: 10px;
 margin-left: 20px;
}
.txt {
 font-family: Calibri;
 font-size: 13px;
 font-style: normal;
 font-weight: normal;
}
#news {
 height: 25%;
 width: 100%;
 margin-right: 0px;
 margin-bottom: 0px;
 margin-left: 4px;
}

.headingtext {
 font-family: Calibri;
 font-size: 13px;
 font-weight: bold;
 text-align: left;
}
.Headings {
 font-family: Calibri;
 font-size: 18px;
 font-style: normal;
 font-weight: bold;
 padding-top: 10px;
}





 

 
New Post
1/31/2011 6:16 AM
 
Can any one reply to me i am in big trouble
 
New Post
1/31/2011 7:07 AM
 
is this code from your skin or a non-DNN page?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/31/2011 7:13 AM
 
i am making skin for my site. all went ok. but when i add menu code in it then it show this error. A critical error has occurred. Object reference not set to an instance of an object. i am not able to understand that why this is going wrong
 
New Post
1/31/2011 8:30 AM
 
do you have the menu component properly installed?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error in using Skin Error in using Skin


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