Server Error in '/' Application.
Specified cast is not valid.
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.InvalidCastException: Specified cast is not valid.
Source Error:
Line 34: case "FollowLink":
Line 35: {
Line 36: StoryStateReturnValues ret = State.FollowLink(int.Parse(Request.Form["pbValue"]));
Line 37: switch (ret)
Line 38: {
|
Source File: c:\Websites\ChooseYourStory\ChooseYourStory.com\Story\Viewer\Default.aspx Line: 36
Stack Trace:
[InvalidCastException: Specified cast is not valid.]
ChooseYourStory.Stories.StoryState.getChapterStartPageId(Int32 chapterId) in c:\BuildMasterAgent\_AGTTMP\_A4\_S11\SRC\ChooseYourStory\Stories\StoryState.cs:188
ChooseYourStory.Stories.StoryState.FollowLink(Int32 linkId) in c:\BuildMasterAgent\_AGTTMP\_A4\_S11\SRC\ChooseYourStory\Stories\StoryState_PublicInterface.cs:242
ASP.story_viewer_default_aspx.OnLoad(EventArgs e) in c:\Websites\ChooseYourStory\ChooseYourStory.com\Story\Viewer\Default.aspx:36
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Yeah, can anyone explain why this happens?