Server Error in '/' Application.

Specified argument was out of the range of valid values.
Parameter name: You must provide a valid genre code

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.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: You must provide a valid genre code

Source Error:


Line 59:                 blnSuccess = true;
Line 60:             } else {
Line 61:                 throw new ArgumentOutOfRangeException("You must provide a valid genre code");
Line 62:             }
Line 63:         } catch (SqlException ex) {

Source File: e:\inetpub\wwwroot\991\App_Code\Artist\Genre.cs    Line: 61

Stack Trace:


[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: You must provide a valid genre code]
   Genre.Load(String code) in e:\inetpub\wwwroot\991\App_Code\Artist\Genre.cs:61
   Genre..ctor(String code) in e:\inetpub\wwwroot\991\App_Code\Artist\Genre.cs:25
   Com.NineNineOne.Web.Artist.Artist.BuildGenreList() in e:\inetpub\wwwroot\991\App_Code\Artist\Artist.cs:276
   Com.NineNineOne.Web.Artist.Artist.get_GenreList() in e:\inetpub\wwwroot\991\App_Code\Artist\Artist.cs:418
   Buy_ProductListing.SetupGenres() in e:\inetpub\wwwroot\991\Buy\ProductListing.aspx.cs:711
   Buy_ProductListing.Page_Load(Object sender, EventArgs e) in e:\inetpub\wwwroot\991\Buy\ProductListing.aspx.cs:187
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0