MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Not working for me anymore... :/ (Zatvorena) (Mono Support )

11866 put(a) pogledan, 3 odgovor(a) 26.5.2014. 15:07:16Kreirao(la) stevescotthome
stevescotthome

stevescotthome

26.5.2014. 15:08:56
Hey I just noticed the viewstate provider isn't working...NO idea why :/

We have it setup to use the Sql provider...and if I query the DB I DO see entries in there, but LoadPageStateFromPersistenceMedium doesn't seem to ever get called when I debug.

public class CustomViewStatePage : System.Web.UI.Page
{
    private System.Web.UI.PageStatePersister _pageStatePersister = null;
 
    protected override System.Web.UI.PageStatePersister PageStatePersister
    {
        get
        {
            if (_pageStatePersister == null)
                _pageStatePersister = ViewStateConfiguration.GetPageStatePersister(this.Page);
            return _pageStatePersister;
        }
 
    }
 
    protected override object LoadPageStateFromPersistenceMedium()
    {
        try
        {
            return base.LoadPageStateFromPersistenceMedium();
        }
        catch (Exception ex)
        {
            //Handle the missing viewstate by returning the empty state pair
            System.Web.UI.PageStatePersister pageStatePersister = new System.Web.UI.HiddenFieldPageStatePersister(this.Page);
            Debug.WriteLine(ex);
            return new System.Web.UI.Pair(pageStatePersister.ControlState, pageStatePersister.ViewState);
        }
    }
}
Ovaj sadržaj još nije ocijenjen. 
50 Reputacija 7 Ukupno objava
khorvat

khorvat

27.5.2014. 6:40:34
Can you please provide us with the WAO ViewState configuration from Web.config, WAO version number and error logs if any ?

Thanks 
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
stevescotthome

stevescotthome

27.5.2014. 13:48:13
Closed, someone deleted the license file from bin (eugh)
Ocjena 5,00, 1 glas(ova). 
50 Reputacija 7 Ukupno objava