AndyC, Thank you very much for your response.
I tried the code below. But it didn't work.
When I execute FirstPage.mcml from MCMLPad through MediaCenter,
I received UnhandledAddInException.
Attempt to build an object of type 'HistoryOrientedPageSession' failed.
StackTrace:
Microsoft.MediaCenter.Hosting.PageSession..ctor()
Microsoft.MediaCenter.Hosting.HistoryOrientedPageSession..ctor()
...
If I execute the page below from MCMLPreviewToolLaucher, I received Fatal Runtime error after I clicked "NextPage".
Exception: AddInHost cannot be null (InvalidOperationException)
Stack:
Microsoft.MediaCenter.Hosting.Infrastructure.McpfState.get_AddInUiHost()
Microsoft.MediaCenter.Hosting.PageSession.EnsureFullscreenSession()
Situation is almost the same even if I locate the files on the web server.
Do I misunderstand something? I'm using Vista(TM) RC1 Build 5600.
I'm so close to goal. This would be the last problem. But not so much time left. Any help is really appreciated.
Kenichiro,
PS:
I thought that PageSession is kind of runtime environment. And MCML was executed on top of it.
So I felt uncomfortable to instantiate PageSession object from MCML.
I might be wrong though.
--FirstPage.mcml--
<Mcml xmlns="http://schemas.microsoft.com/2006/mcml"
xmlns:host="assembly://Microsoft.MediaCenter/Microsoft.MediaCenter.Hosting"
xmlns:me="Me">
<UI Name="NavigateTest">
<Properties>
<host:HistoryOrientedPageSession Name="Session"/>
</Properties>
<Locals>
<ClickHandler Name="Clicker"/>
<NavigateCommand Name="NavCommand" Source="file://NextPage.mcml" Session="[Session]"/>
</Locals>
<Rules>
<Default Target="[Input.KeyInteractive]" Value="true"/>
<Default Target="[Clicker.Command]" Value="[NavCommand]"/>
</Rules>
<Content>
<Text Content="NextPage" Color="White"/>
</Content>
</UI>
</Mcml>
--NextPage.mcml--
<Mcml xmlns="http://schemas.microsoft.com/2006/mcml"
xmlns:host="assembly://Microsoft.MediaCenter/Microsoft.MediaCenter.Hosting">
<UI Name="BackPageTest">
<Locals>
<ClickHandler Name="Clicker"/>
</Locals>
<Properties>
<host:HistoryOrientedPageSession Name="Session"/>
</Properties>
<Rules>
<Changed Source="[Clicker.Invoked]">
<Actions>
<DebugTrace Message="Go to Prev Page (Session.BackPage) Invoke"/>
<Invoke Target="[Session.BackPage]"/>
</Actions>
</Changed>
</Rules>
<Content>
<Text Content="Go to prev page" Color="White"/>
</Content>
</UI>
</Mcml>