Non-threaded

Forums » Bugs & Problems » Read Thread

Post reports about problems or bugs in here.
This bug was closed 7/30/2006: fixed

Testing saves

19 years ago
 

Server Error in '/' Application.

Invalid length for a Base-64 char array.

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.FormatException: Invalid length for a Base-64 char array.

Source Error:

Line 14: 			if (Request.QueryString["RestoreSave"] == "yes")
            Line 15: 			{
            Line 16: 				State = StoryState.CreateFromSave(User.Identity.Name, int.Parse(Request.QueryString["StoryId"]));
            Line 17: 			}
            Line 18: 			else

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

Stack Trace:

[FormatException: Invalid length for a Base-64 char array.]
            System.Convert.FromBase64String(String s) +0
            ChooseYourStory.Stories.StoryState.LoadFromString(String saveString) in C:\Projects\ChooseYourStory\WebSolution\ChooseYourStory\Stories\StoryState_ToFromString.cs:59
            ChooseYourStory.Stories.StoryState.CreateFromString(String storyState) in C:\Projects\ChooseYourStory\WebSolution\ChooseYourStory\Stories\StoryState.cs:62
            ChooseYourStory.Stories.StoryState.CreateFromSave(String username, Int32 storyId) in C:\Projects\ChooseYourStory\WebSolution\ChooseYourStory\Stories\StoryState.cs:42
            ASP.story_viewer_default_aspx.OnLoad(EventArgs e) in d:\Users\alexp\Websites\ChooseYourStory.com\Story\Viewer\Default.aspx:16
            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

I got this error when  Itried to load a save on my unpublished game: The tower.  I wanted to haev a save so i could test each chapter without having to play from teh start

Testing saves

19 years ago
DUDE I HAVE THREE SAVES. Two of them do that (the proposal and The tower) and my sw save brings me to a linkless page.

Testing saves

19 years ago

hmm ... ok i'm on it

Testing saves

19 years ago
I dotn wanna go through 200 pages so that i can test one chapter everytime and I dont wanna test teh whole game at once because then its really easy to get careless.

Testing saves

19 years ago

Try the save that partially worked (i.e. didn't give you the Yellow Error). I figured out what was wrong wit hthat and fixed it.

Now on to figure out the save erros.

Testing saves

19 years ago
GJ alexp.

Testing saves

19 years ago

try again for all three

Testing saves

19 years ago
Tower doesn't owrk. read pm