Non-threaded

Forums » Bugs & Problems » Read Thread

Post reports about problems or bugs in here.
This bug was closed 5/31/2014: Per Berzerka, Yeah, it happens when you Script a $DEST # but forget to put the "@P" on it.

Mouldy Oldiez Bug.

13 years ago

 

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?

Mouldy Oldiez Bug.

13 years ago

Yeah, it happens when you Script a $DEST # but forget to put the "@P" on it.

Example:

$DEST := @P100 (correct)
$DEST := 100 (causes the error)

Mouldy Oldiez Bug.

13 years ago

Well, it's not my story, so who gives a damn?

Mouldy Oldiez Bug.

13 years ago

"Yeah, can anyone explain why this happens?"

Apparently you do.

Mouldy Oldiez Bug.

13 years ago

Okay, just a bit.