hi,
this is not a reply for ur question.
actually i want to ask u another question.
i am working on asp .net web application. whenever i try to use uipab on it
i get an error
like
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 113: private SessionMoniker GetSessionMoniker()
Line 114: {
Line 115: SessionMoniker sessionMoniker = SessionMoniker.GetFromSession(
new Guid( Session[CurrentTaskKey].ToString()));
Line 116: return sessionMoniker;
Line 117: }
Source File: C:\Program Files\Microsoft Application Blocks for .NET\User
Interface Process 2.0\Code\Microsoft.ApplicationBlocks.
UIProcess\Views\WebFormView.cs Line: 115
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
Microsoft.ApplicationBlocks.UIProcess.WebFormView.GetSessionMoniker() in
C:\Program Files\Microsoft Application Blocks for .NET\User Interface
Process 2.0\Code\Microsoft.ApplicationBlocks.UIProcess\Views\WebFormView.
cs:115
Microsoft.ApplicationBlocks.UIProcess.WebFormView.WebFormView_Load(Object
sender, EventArgs e) in C:\Program Files\Microsoft Application Blocks for .
NET\User Interface Process 2.0\Code\Microsoft.ApplicationBlocks.
UIProcess\Views\WebFormView.cs:108
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
i think u may have an answer to this.
thank u so much
aparna
bryan@newsgroups.nospam - 20 Sep 2005 14:32 GMT
Hi -
I'm no UIAPB expert, but I think you need to start a task before
you try to navigate. I was getting a similar error and it was because
I was trying to navigate before I called one of the static Startxxx
methods on the UIPManager class. I am using graph-based navigation in
my app, so I called UIPManager.StartNavigationTask("MainNavGraph") and
things started to work.
Cheers,
Bryan