Barbara Rivera - 2009-03-18

Hello:

I have a web application that has 3 tasks that interact with one another. When navigating from Task1 to Task2 within the web form, navigation is successful going forward and backwards. But when I navigate using the web browser back button, and then try to navigate forward within the webform, the web application breaks. It actually breaks in the MVCSharp class library WebformsViewsManager class, method void WebformsView_Init(object sender, EventArgs e) at line "currTask.Navigator.TryNavigateToView(requestedViewInf.ViewName);" with error message "Object reference not set to an inatance of an object".

I tested the same behavior in the Web Application Example for "Task Interaction" provided on the MVC# website (http://www.mvcsharp.org/) and it breaks as well. 

To reproduce, do the following:

1) Open default.aspx
2) click "Award Bonus"
3) Go Back using the web browser "Back" button
4) click "Award Bonus" again
5) the web application will break in MVCSharp method WebformsView_Init at this line: currTask.Navigator.TryNavigateToView(requestedViewInf.ViewName);

How can I resolve this issue?

Thanks.

Barbara