Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » GetPageview() returns "GetPage requires a page ID greater than zero"

GetPageview() returns "GetPage requires a page ID greater than zero"

Jan Schultz
Reply

Hi,

I'm using Dynamicweb 9.2.6. (I have not tested this on 9.2.7 or 9.2.8, but from looking at the bug list, i would not think it has been fixed).

Dynamicweb.Frontend.PageView.GetPageview(); method to loads a Pageview context.

I use it together with the ExtranetLogin class to log user in.

Between Dynamicweb 8 and 9 this method has however changed, and now till always result in the following error:

"GetPage requires a page ID greater than zero, page ID was 0"

 

If we look at the call-stack, it's pretty easy to see this occurs because Dynamicweb.Frontend.PageView.GetPageview() internally calls

Dynamicweb.Frontend.PageView.GetPageviewByPageID(0, false);

If you decide to just remove this public method, please let me know :)

 

/Jan


Replies

 

You must be logged in to post in the forum