WatchNon-threaded

Forums » Bugs & Problems » Read Thread

Although it's highly unlikely you will find them, post reports about problems or bugs in here.

Storygame cant be accessed if properties are empty

8 years ago

Awhile back I was working on a story. In the middle of the story the page stopped working and came up with an error. I tried to enter the site again and was told the site could not be found. I came back a week later and got access to the site and logged into my account. Once into my stories I get another error. I have no idea if my data was saved after all the work I put into my story.

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:
 

Line 88: cmd.Parameters.Add("@Story_Title", SqlDbType.VarChar, 100).Value = StoryTitle.Text; Line 89: cmd.Parameters["@Story_Title"].Direction = ParameterDirection.InputOutput; Line 90: cmd.Parameters.Add("@Difficulty_Level", SqlDbType.Int).Value = EditorHelper.NullIf(Request.Form[DifficultyLevel.UniqueID]); Line 91: cmd.Parameters.Add("@Maturity_Level", SqlDbType.Int).Value = EditorHelper.NullIf(Request.Form[MaturityLevel.UniqueID]); Line 92: cmd.Parameters.Add("@Category_Id", SqlDbType.VarChar).Value = EditorHelper.NullIf(Request.Form[Category.UniqueID]);


Source File: c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\Properties.aspx    Line: 90

Stack Trace:
 

[NullReferenceException: Object reference not set to an instance of an object.] ChooseYourStory.Stories.Editing.EditorHelper.NullIf(Object o) in c:\BuildMasterAgent\_AGTTMP\_A4\_S11\SRC\ChooseYourStory\Stories\Editing\EditorHelper.cs:187 ASP.my_adveditor_properties_aspx.SaveChanges() in c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\Properties.aspx:90 ASP.my_adveditor_properties_aspx.SecondaryNavigation_BeforeNavigate(Object sender, EventArgs e) in c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\Properties.aspx:75 ASP.SecondaryNavigation.btn_Click(Object sender, EventArgs e) in c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\SecondaryNavigation.ascx:54 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +152 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3803


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

Cant access my work

8 years ago

Oh, that? Well, when you open the editor, you have to wait until the page fully loads and the text box appears, before you can try to navigate to the other pages of the editor. If you don't you will get that error message. Don't ask me why. That's just how it works.

Cant access my work

8 years ago

Ok that makes sense. My internet is running slow for some reason lately. I have access to my work now. Except It didn't save from the time I was working last week :( oh well.

Cant access my work

8 years ago

Which line was highlighted?

Cant access my work

8 years ago

dont remember