If you go to Portfolio in StockTrader and click sell, here is what I see in my browser
Server Error in '/trade' Application. -------------------------------------------------------------------------------- The MaximumValue 0 cannot be less than the MinimumValue 1 of SellQuantityRangeValidator. 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.Web.HttpException: The MaximumValue 0 cannot be less than the MinimumValue 1 of SellQuantityRangeValidator. 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: [HttpException (0x80004005): The MaximumValue 0 cannot be less than the MinimumValue 1 of SellQuantityRangeValidator.] System.Web.UI.WebControls.RangeValidator.ValidateValues() +2046352 System.Web.UI.WebControls.RangeValidator.ControlPropertiesValid() +16 System.Web.UI.WebControls.BaseValidator.get_PropertiesValid() +44 System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +38 System.Web.UI.Control.PreRenderRecursiveInternal() +108 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394 -----Original Message----- From: Ben Dewey [mailto:[email protected]] Sent: Thursday, June 25, 2009 2:57 PM To: '[email protected]' Subject: RE: Sell function not working properly Avantika, Can you elaborate on the error that you are receiving? I'll take a look tonight and see if I'm getting the same issues. -Ben -----Original Message----- From: Avantika Agrawal [mailto:[email protected]] Sent: Thursday, June 25, 2009 5:22 PM To: [email protected] Subject: Sell function not working properly I just updated my code from the SVN repository and there was an update to StockTrade.aspx.cs in the .NET implementation, which modified two lines of code for the sell function. It's lines 72 and 73 in particular which were changed from holding.quantity to holding.quantityDouble.ToString(). For some reason this was causing an error when I tried to sell stocks on StockTrader. Is anyone else seeing this problem? The problem was fixed when I reverted back to the old code. This may just be a problem with my code. Let me know if anyone is having this problem as well. Thanks, Avantika
