[Mono-dev] ASP.NET Server.Transfer

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Nov 7 21:04:24 EST 2005


On Mon, 2005-11-07 at 14:22 -0200, Fabio Yasusi Yamamoto wrote:
> Hi
> 
>     Does anybony knows if "Server.Transfer( "page.asp", true )" work on 
> mono?
> 
> if i set the second argument to false  it work
> 
> The problem occur  every time i try to use the parameter TRUE, and the 
> destination page has a <asp:> tag.

> System.InvalidCastException: Cannot cast from source type to destination type.
> in <0x00035> System.Web.UI.StateBag:LoadViewState (System.Object savedState)
> in <0x00031> System.Web.UI.Control:LoadViewState (System.Object savedState)

Just for the record, this is now fixed in svn. It was an interesting bug
that has been there forever and showed up when calling Server.Transfer
when Page.IsPostBack was true.

Thanks for the test case.

-Gonzalo





More information about the Mono-devel-list mailing list