Cannot modify a PublishedContentRequest once it is read-only (v7.5.3)
Did anything change in regards to how we should implement IContentFinders in the latest version? An upgraded site is returning the following exception:
Cannot modify a PublishedContentRequest once it is read-only
But I noticed that contentRequest.ConfigureRequest() is now obsolete and so that has been updated to contentRequest.Prepare() but the error is still present.
Following a comment from @zpqrtbnk on Twitter I removed contentRequest.Prepare() and the error has gone!
The previous implementation has been there for so long I can't recall why we were originally calling contentRequest.ConfigureRequest() however I have a bit more testing to do but it seems to now be resolved.
@Stephen, if you can clarify with an answer as to why the contentRequest.Prepare() isn't needed I will mark it as the solution, thanks.
Cannot modify a PublishedContentRequest once it is read-only (v7.5.3)
Did anything change in regards to how we should implement IContentFinders in the latest version? An upgraded site is returning the following exception:
This was the implementation:
But I noticed that
contentRequest.ConfigureRequest()is now obsolete and so that has been updated tocontentRequest.Prepare()but the error is still present.Any help or direction would be appreciated.
Cheers, Simon
Are you sure that contentRequest.ConfigureRequest()/ontentRequest.Prepare() is required? ,I think it's will call automatically
@Yakov you are correct it seems. Thank you.
Following a comment from @zpqrtbnk on Twitter I removed
contentRequest.Prepare()and the error has gone!The previous implementation has been there for so long I can't recall why we were originally calling
contentRequest.ConfigureRequest()however I have a bit more testing to do but it seems to now be resolved.@Stephen, if you can clarify with an answer as to why the
contentRequest.Prepare()isn't needed I will mark it as the solution, thanks.is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.