Microsoft Content Management Server - "Server error. Contact the site administrator." on Searches.GetByGuid in unp

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > February 2007 > "Server error. Contact the site administrator." on Searches.GetByGuid in unp





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author "Server error. Contact the site administrator." on Searches.GetByGuid in unp
sorenander@gmail.com

2007-02-16, 7:16 am

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com