CMS Error while approving.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > CMS Error while approving.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    CMS Error while approving.  
Murty


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:18 PM

I have the following code (using CMS api) to Approve a posting.. The code is
working fine in many environments. It is failing in couple of environments.
Any ideas on why it is failing?

Sample Code:

postingToBeSorted.SortOrdinal = newSortOrdinal;
string tempValue = postingToBeSorted.CustomProperties[0].Value;
postingToBeSorted.CustomProperties[0].Value = tempValue;
postingToBeSorted.Submit(); this.CmsAppContext.CommitAll();
postingToBeSorted.Approve(); this.CmsAppContext.CommitAll();
postingToBeSorted.ReleaseOwnership(); this.CmsAppContext.CommitAll();

Error logged:

Exception:
Microsoft.ContentManagement.Publishing.CmsInvalidObjectStateException
Message: Posting is not ready for approval.  This action can only be
performed if this posting is ready for approval.
Source: Microsoft.ContentManagement.Publishing at
Microsoft.ContentManagement.Publishing.Posting.Approve()






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:59 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register