Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8180057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:08:04+00:00 2026-06-07T00:08:04+00:00

I having a very weird problem for my asp project. My project can run

  • 0

I having a very weird problem for my asp project. My project can run smoothly when I test on my localhost .But when i deploy to the server

It give me this error

        ApplicationException: Object reference not set to an instance of an object.]
       LewreERP_MixsolProject.Module.Sales.SalesOrder.SalesOrderListing.createGridView() in C:\Users\user\Desktop\30052012\LewreERP_MixsolProject\Module\Sales\SalesOrder\SalesOrderListing.aspx.cs:309
       LewreERP_MixsolProject.Module.Sales.SalesOrder.SalesOrderListing.Page_Load(Object sender, EventArgs e) in C:\Users\user\Desktop\30052012\LewreERP_MixsolProject\Module\Sales\SalesOrder\SalesOrderListing.aspx.cs:148
       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) +91
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boole

an includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

Here is my back-end coding

protected void Page_Load(object sender, EventArgs e)
{
    try
    {
        if (!Page.IsPostBack)
        {

        }


    }
    catch (Exception ex)
    {
        logger.Error(ex.Message);
        throw;
    }
}

private void assignCmdBtn()
{
    //if (hfListStatus.Value == gbcSalesOrder.SNew)
    //{

    //}
    //else
    //{

    //}



}







protected void btnSearch_Click(object sender, EventArgs e)
{
    try
    {


    }
    catch (Exception ex)
    {
        logger.Error(ex.Message);
        throw;
    }
}

protected void btnSearchClear_Click(object sender, EventArgs e)
{
    try
    {


    }
    catch (Exception ex)
    {
        logger.Error(ex.Message);
        throw;
    }
}

protected void imgBtnLeft2_Click(object sender, ImageClickEventArgs e)
{


}

protected void ingBtnRight2_Click(object sender, ImageClickEventArgs e)
{

}

protected void ddlRowPerPage_SelectedIndexChanged(object sender, EventArgs e)
{

}

protected void btncAdd2_Click(object sender, EventArgs e)
{


}

protected void btncDelete_Click(object sender, EventArgs e)
{

}

protected void imgBtnLeft_Click(object sender, ImageClickEventArgs e)
{

}

protected void ingBtnRight_Click(object sender, ImageClickEventArgs e)
{

}

protected void btnGvPage2_Click(object sender, EventArgs e)
{

}

protected void btnGvPage_Click(object sender, EventArgs e)
{

}

protected void lnkNew_Click(object sender, EventArgs e)
{

}



protected void btncAdd_Click(object sender, EventArgs e)
{


}


protected void gvSaleOrder_RowCommand(object sender, GridViewCommandEventArgs e)
{

}

protected void gvSaleOrder_RowDataBound(object sender, GridViewRowEventArgs e)
{

}




protected void lnkCancel_Click(object sender, EventArgs e)
{

}



protected void lnkConfirmed_Click(object sender, EventArgs e)
{
}

protected void lnkPartialShip_Click(object sender, EventArgs e)
{

}

protected void lnkFullyShip_Click(object sender, EventArgs e)
{

}

protected void lnkComplete_Click(object sender, EventArgs e)
{

}

private void countTotalItem()
{


}



//Refresh all the page status
protected override void OnPreRender(EventArgs e)
{
    try
    {



    }
    catch (Exception ex)
    {
        logger.Error(ex.Message);
        throw;
    }
}

My front-end

   <%@ Page Title="" Language="C#" MasterPageFile="~/Module/SharedPage/ProjectManagement.master"
    AutoEventWireup="true" CodeBehind="SalesOrderListing.aspx.cs" Inherits="LewreERP_MixsolProject.Module.Sales.SalesOrder.SalesOrderListing" %>

<%@ Register Assembly="LewreERP_MixsolProject" Namespace="blcCustomControl" TagPrefix="cc1" %>
<%@ Register Src="../../SharedPage/Master/messageAlertUC.ascx" TagName="messageAlertUC"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageContent" runat="server">

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table style="width: 100%">
            <tr>
                <td class="titleContainer">
                    <table class="table100">
                        <tr>
                            <td class="icon">
                                <asp:Image ID="Image2" runat="server" ImageUrl="~/Styles/images/icon04.gif" />
                            </td>
                            <td class="title">
                                Sales Order
                            </td>
                            <td class="tableAlignRight">
                                <span class="titleSpecialHelp"><a href="">Need Help?</a></span> <span class="titleSpecialHelp">
                                    |</span> <span class="titleSpecialHelp"><a href="">Printable View</a></span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="rightColumnModule1">
                    <table width="100%">
                        <tr>
                            <td class="rightColumnModule2DetailColon" style="width: 10%">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="rightColumnModule2">
                <td class="rightColumnModule2TitleContainer">
                    <table class="rightColumnModule2Table">
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td class="tableAlignRight">
                                &nbsp;<asp:LinkButton ID="lnkNew" runat="server" OnClick="lnkNew_Click">New</asp:LinkButton>
                                &nbsp;&nbsp;|
                                <asp:LinkButton ID="lnkConfirmed" runat="server" OnClick="lnkConfirmed_Click">Confirmed</asp:LinkButton>
                                &nbsp;|
                                <asp:LinkButton ID="lnkPartialShip" runat="server" OnClick="lnkPartialShip_Click"> Partial Shipped</asp:LinkButton>
                                &nbsp;|
                                <asp:LinkButton ID="lnkFullyShip" runat="server" OnClick="lnkFullyShip_Click">Fully Shipped</asp:LinkButton>
                                &nbsp;|
                                <asp:LinkButton ID="lnkComplete" runat="server" OnClick="lnkComplete_Click">Completed </asp:LinkButton>
                                &nbsp;|
                                <asp:LinkButton ID="lnkCancel" runat="server" OnClick="lnkCancel_Click"> Cancelled</asp:LinkButton>
                                &nbsp;|
                              <%--  <asp:LinkButton ID="lnkDelete" runat="server" OnClick="lnkDelete_Click">Delete</asp:LinkButton>
                                &nbsp;--%>
                               <asp:LinkButton ID="lnkTotal" runat="server" OnClick="lnkTotal_Click" 
                                    Visible="False">Total List</asp:LinkButton>
                                &nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="tableAlignRight">
                                <asp:Panel ID="Panel5" runat="server" DefaultButton="btnSearch">
                                    &nbsp;&nbsp;&nbsp;</asp:Panel>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="rightColumnModule2">
                <td class="rightColumnModule2Content">
                    <asp:Panel ID="pnPageTextInput0" runat="server" HorizontalAlign="Right" Height="31px"
                        DefaultButton="btnGvPage2">
                        <table style="width: 100%">
                            <tr>
                                <td style="height: 26px" align="left">
                                    &nbsp;</td>
                                <td style="height: 26px">
                                    /<asp:Button ID="btnGvPage2" runat="server" BorderStyle="None" Height="18px" OnClick="btnGvPage2_Click"
                                        Width="36px" Style="display: none" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <br />
                    </asp:Panel>
                    <asp:Panel ID="pnPageTextInput" runat="server">
                    </asp:Panel>
                    <asp:Panel ID="pnAccessLevel" runat="server" HorizontalAlign="Center" DefaultButton="btnGvPage">
                        <table style="width: 100%">
                            <tr>
                                <td style="height: 14px">
                                </td>
                                <td style="height: 14px">
                                </td>
                            </tr>
                            <tr>
                                <td width="33.3%">
                                </td>
                                <td width="33.3%">
                                    &nbsp; &nbsp;</td>
                                <td align="right" width="33.3%">
                                    /<asp:Button ID="btnGvPage" runat="server" BorderStyle="None" Height="18px" OnClick="btnGvPage_Click"
                                        Width="36px" Style="display: none" />
                                </td>
                            </tr>
                        </table>
                        &nbsp;</asp:Panel>
                </td>
            </tr>
        </table>
        <div class="rightColumnModule2">
            <!-- end of rightColumnModule1 -->
            <!-- end of rightColumnModule2 -->
        </div>
    </ContentTemplate>
</asp:UpdatePanel>

I very sure I already delete a function name createGridView() and i also comment all the function which in the pageLoad method.

I try clear and rebuild the solution , but still retain the same error.
Please help . thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:08:05+00:00Added an answer on June 7, 2026 at 12:08 am

    The line

    Object reference not set to an instance of an object

    is telling you that one of the variables in your program is null.

    The line

    LewreERP_MixsolProject.Module.Sales.SalesOrder.SalesOrderListing.createGridView() in C:\Users\user\Desktop\30052012\LewreERP_MixsolProject\Module\Sales\SalesOrder\SalesOrderListing.aspx.cs:309

    is telling you which line in your source code has a variable with a null value.

    In all likelihood the issue is not that you’re no longer running on localhost, but rather the code taking a different path or data in the database being different on this new server.

    Update

    In your comment you say that you already deleted createGridView(). However, that function is clearly running on the server.

    That means that you don’t have the most recent code running on the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a very weird problem that for the life of me I can
I am having a very weird problem with building a SQL Server 2008 Database
I am having a very weird problem that I've never had before when using
I'm having a very weird problem with a vector in my application. Details... I
i having a very weird problem now . I has separate 2 jquery js
I am having a weird problem that I hope you can help me with.
I'm having a very weird problem with radio buttons in JQuery Mobile. I'm populating
I am having this weird problem where everything seems to work as expected but
I'm having a very strange problem with statuicon. I'm doing on a simple project
I'm having a very weird problem.I'm working on an assignment that involves building a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.