| Stefan Goßner [MSFT] 2007-02-16, 7:16 am |
| Hi Soren,
either this GUID is not valid - or there is a database inconsistany.
For the latter you would need to open a support case to get it fixed.
Btw: please check for the method below if the braces are in URL encoded form
or not.
Cheers,
Stefan
<sorenander@gmail.com> wrote in message
news:1171624235.044999.24960@v45g2000cwv.googlegroups.com...
> Hi,
>
> I'm facing a "Server error. Contact the site administrator." when
> executing Searches.GetByGuid([guid correctly formatted in braces]).
>
> Searches.GetByGuid is executed on a CmsApplicationContext in
> unpublished mode.
>
> Relevant code lines:
> Guid archivedNewsItemGuid = new
> Guid(Request.QueryString["ArchivedNewsItemGuid"]);
> CmsApplicationContext cmsContext =
> BrowseContext.CreateUnpublishedMode(); // Custom method
> Posting unpublishedPosting =
> (Posting)cmsContext.Searches.GetByGuid(archivedNewsItemGuid.ToString());
> //
> Error!
>
> What causes this error, please?
>
> Kind regards,
> Soren
>
|