Non-threaded

Forums » Bugs & Problems » Read Thread

Post reports about problems or bugs in here.
This bug was closed 9/22/2006: duplicate of "variable overflow bug"

i keep getting this error in a game

19 years ago

primates game about monkeys when i die i get this error...

Server Error in '/' Application.

Value was either too large or too small for an Int32.

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.OverflowException: Value was either too large or too small for an Int32.

Source Error:

Line 35: 			case "FollowLink":
            Line 36: 				{
            Line 37: 					StoryStateReturnValues ret = State.FollowLink(int.Parse(Request.Form["pbValue"]));
            Line 38: 					switch (ret)
            Line 39: 					{

Source File: d:\Users\alexp\Websites\ChooseYourStory.com\Story\Viewer\Default.aspx    Line: 37

Stack Trace:

[OverflowException: Value was either too large or too small for an Int32.]
            System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +2751909
            System.Int32.Parse(String s) +20
            ChooseYourStory.Stories.StoryState.isVariableNotRestricted(Variable var, VariableRestriction restriction) in C:\Projects\ChooseYourStory\WebSolution\ChooseYourStory\Stories\StoryState.cs:206
            ChooseYourStory.Stories.StoryState.PostProcess_Links() in C:\Projects\ChooseYourStory\WebSolution\ChooseYourStory\Stories\StoryState_PostProcess.cs:36
            ChooseYourStory.Stories.StoryState.PostProcess() in C:\Projects\ChooseYourStory\WebSolution\ChooseYourStory\Stories\StoryState_PostProcess.cs:187
            ChooseYourStory.Stories.StoryState.FollowLink(Int32 linkId) in C:\Projects\ChooseYourStory\WebSolution\ChooseYourStory\Stories\StoryState_PublicInterface.cs:255
            ASP.story_viewer_default_aspx.OnLoad(EventArgs e) in d:\Users\alexp\Websites\ChooseYourStory.com\Story\Viewer\Default.aspx:37
            System.Web.UI.Control.LoadRecursive() +47
            System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
            


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 

 

nate