Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
I have a form that upon postback creates a new page. The first time after loading the page, this works fine. The second time I get the login screen. The log reveals an Access Denied line, but if i log in with whatever account or just enter the url of the page again it works. The access denied only appears after a second postback.
The form is loaded by a page (11931 in the log below), which has a contanier for the pages created (11932). The new page created under 11932 in the first postback is 12025 and in the second 12026. Each time a page is created, the "main" page 11931 is also updated. The error occurs because of this (if I don't update 11931 it does not occur, no matter how many times I post the form), but not when the page is updated (as seen in the log).
I suspect that the underscores after the page ID:s are related to the version of the page? However I can't work them out. Is is possible that my code somehow causes EPiServer to load the wrong version of 11931 (not the updated one) when the page posts back? When 11931 is loaded after saving it varies between sessions, which is also confusing.