Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 19, 2009 02:41 PM by RaeKC
Feb 14, 2009 06:40 PM|LINK
Server Error in '/MyWebSite' 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.
Line 12: <small>
Line 13: <asp:Image runat="Server" ID="imgProduct" ImageUrl="~/Images/ArrowR3.gif" GenerateEmptyAlternateText="true" />
Line 14: <%# Eval("Title") %> - <%# (this.Page as BasePage).FormatPrice(Eval("UnitPrice")) %> <small>(<%# Eval("Quantity") %>)
Line 15: <br /></small>
Line 16: </ItemTemplate>
Source File: c:\My Documents\MyWebSite\Controls\ShoppingCartBox.ascx Line: 14
Feb 15, 2009 05:33 PM|LINK
When you say "the contact menu item", do you mean the Contact link in the Main menu?
Does this happen when you navigate to any other pages, or just that one?
Feb 16, 2009 01:36 AM|LINK
Yes. I clicked each of the menu items that come with the original set up, "home', forums, store, and each one works except the "Contact" link. It throws that error up above. Its only if something is left in shopping cart when I close the browser and then I
reopen the browser. It reopens with me still logged in even tho I didn't click to keep me logged in. Of course I didn't click "log out" either. Maybe you could try that and see if it happens. I put something in the cart, then don't complete purchase and then
close browser. Then I run it again in browser from default page and clicked all the different menu headers.
Feb 17, 2009 08:57 PM|LINK
Did you do a debug on this?
Feb 19, 2009 02:41 PM|LINK
I need to check on that.