BuyItSellIt Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Server Errors when adding products Expand / Collapse
Author
Message
Posted 12/3/2007 12:19:04 PM
BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 5/11/2008 10:00:57 PM
Posts: 130, Visits: 130
I keep getting the following server error when adding a product.  Thanks

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:

Line 1015:                    'entry.GBaseAttributes.AddTextAttribute("rating", CType(Gattributeform1.FindControl("rating"), TextBox).Text)Line 1016:                    InsertParams.Add("@google_attributename4", SqlDbType.VarChar).Value = "rating"Line 1017:                    InsertParams.Add("@google_attributevalue4", SqlDbType.VarChar).Value = CType(Gattributeform1.FindControl("rating"), TextBox).TextLine 1018:                    InsertParams.Add("@google_attributename5", SqlDbType.VarChar).Value = ""Line 1019:                    InsertParams.Add("@google_attributevalue5", SqlDbType.VarChar).Value = ""

Source File: E:\app.buyitsellit.com\admin\addproduct.aspx.vb    Line: 1017

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]   admin_addproduct.prod_savebutton_Click(Object sender, EventArgs e) in E:\app.buyitsellit.com\admin\addproduct.aspx.vb:1017   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

Post #343
Posted 12/3/2007 2:51:23 PM


BISI Admin

BISI Admin

Group: Administrators
Last Login: Today @ 10:44:54 AM
Posts: 1,162, Visits: 2,423
I've corrected this issue.

---------------------
Tomas
Post #352
Posted 12/3/2007 7:22:28 PM
BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 5/11/2008 10:00:57 PM
Posts: 130, Visits: 130
Thanks
Post #375
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 9:16pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.156. 8 queries. Compression Disabled.