Server Error in '/' Application.

Value cannot be null.
Parameter name: String

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.ArgumentNullException: Value cannot be null.
Parameter name: String

Source Error:


Line 30: 			else
Line 31: 			{
Line 32:                 var sid = int.Parse(Request.QueryString["StoryId"]);
Line 33:                 Tables.Games_Extended game = MagDataFactory
Line 34:                     .ExecSql<ChooseYourStory.WebApplication.Data.Mag.Tables.Games_Extended>

Source File: c:\Websites\ChooseYourStory\ChooseYourStory.WebApplication\green\Story\Viewer\Default.aspx    Line: 32

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: String]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14524524
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   ASP.story_viewer_default_aspx.OnLoad(EventArgs e) in c:\Websites\ChooseYourStory\ChooseYourStory.WebApplication\green\Story\Viewer\Default.aspx:32
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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