Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kevin Coster 83 posts 120 karma points
    Jun 08, 2010 @ 12:52
    Kevin Coster
    0

    Server Error Using Poll

    Still having this problem:

    Server Error in '/' 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.]
    Nibble.Umb.Poll.Poll.RenderQuestion() +64
    Nibble.Umb.Poll.Poll.Page_Load(Object sender, EventArgs e) +1538
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627



    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

     

    I cannot see what the hell im doing wrong all nodes are published

    This is in the masterpage:

    <h3>Latest Poll</h3>           
    <p>
    <form runat="server"><umbraco:Macro PollNodeId="1659" DisplayOnly="0" SubmitOnSelect="1" HideSubmit="0" SortResults="1" WidthTotalVotes="0" HideQuestion="0" RandomPoll="0" Alias="Poll" runat="server"></umbraco:Macro></form>
    </p>

    This is in the header:

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    What else am i missing?

  • Jan Fosgerau 65 posts 89 karma points
    Jun 28, 2010 @ 10:21
    Jan Fosgerau
    0

    Got same problem -

    Also i have placed the 

            <asp:ScriptManager runat="server"/>

    dunno if this is your problem

     

    if you have a solution i would also greatly appreciate it

     

  • Jan Fosgerau 65 posts 89 karma points
    Jun 28, 2010 @ 11:36
    Jan Fosgerau
    0

    Ok i solved my problem by pointing to the correct node

    Polls
        Poll <----- THIS IS THE ONE!
           Selection 1
           Selection 2

    Hope this helps

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies