Problems Approving Posting
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 > Problems Approving Posting




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

    Problems Approving Posting  
markgeeuk@googlemail.com


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


 
06-11-07 12:17 PM

Hi,

I've been experiencing a problem approving a specific posting.
Whenever I try and approve the page (as an Administrator) I get the
error "Server Error: Contact the site administrator" displayed in the
console. To ensure that the problem is not being caused by a workflow
problem or the customised console we use I've written a windows
application to approve the page. The code is simply:

Dim cmsContext As New CmsApplicationContext

cmsContext. AuthenticateAsCurrentUser(PublishingMode
.Update)

Dim objPosting As Posting =
cmsContext.Searches.GetByGuid("{XXXXXXXX-XXXX-XXXX-XXXX-
XXXXXXXXXXXX}")

If Not objPosting Is Nothing Then

MsgBox(objPosting.CanApprove)
objPosting.Approve()
cmsContext.CommitAll()

End If

The can approve returns true. But, the commitall returns the same
server error. Has anyone come across the same problem? Thanks for your
help.






[ Post a follow-up to this message ]



    Re: Problems Approving Posting  
Stefan Goßner [MSFT]


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


 
06-11-07 12:17 PM

Hi Mark,

which line of code causes the problem?
Do you get a callstack with the error message?
Are there any event log entries?

Cheers,
Stefan


<markgeeuk@googlemail.com> wrote in message
news:1181555720.608724.119160@p77g2000hsh.googlegroups.com...
> Hi,
>
> I've been experiencing a problem approving a specific posting.
> Whenever I try and approve the page (as an Administrator) I get the
> error "Server Error: Contact the site administrator" displayed in the
> console. To ensure that the problem is not being caused by a workflow
> problem or the customised console we use I've written a windows
> application to approve the page. The code is simply:
>
>        Dim cmsContext As New CmsApplicationContext
>
>        cmsContext. AuthenticateAsCurrentUser(PublishingMode
.Update)
>
>        Dim objPosting As Posting =
> cmsContext.Searches.GetByGuid("{XXXXXXXX-XXXX-XXXX-XXXX-
> XXXXXXXXXXXX}")
>
>        If Not objPosting Is Nothing Then
>
>            MsgBox(objPosting.CanApprove)
>            objPosting.Approve()
>            cmsContext.CommitAll()
>
>        End If
>
> The can approve returns true. But, the commitall returns the same
> server error. Has anyone come across the same problem? Thanks for your
> help.
>







[ Post a follow-up to this message ]



    Re: Problems Approving Posting  
markgeeuk@googlemail.com


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


 
06-11-07 12:17 PM

On 11 Jun, 12:33, "Stefan Go=DFner [MSFT]"
<stef...@online.microsoft.com> wrote:
> Hi Mark,
>
> which line of code causes the problem?
> Do you get a callstack with the error message?
> Are there any event log entries?
>
> Cheers,
> Stefan
>
> <markge...@googlemail.com> wrote in message
>
> news:1181555720.608724.119160@p77g2000hsh.googlegroups.com...
>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> - Show quoted text -

Hi Stefan,

The error is generated by the CommitAll statement and it doesn't look
like any events are added to either the system or application logs.The
full exception stack trace is as follows:

************** Exception Text **************
Microsoft.ContentManagement.Publishing.CmsServerException: Server
error.  Contact the site administrator. --->
System.Runtime.InteropServices.COMException (0x80041B58): Server
error.  Contact the site administrator.
at
Microsoft.ContentManagement.Interop.Publishing.CmsApplicationContextClass.C=
ommitAll()
at Microsoft.ContentManagement.Publishing.CmsContext.CommitAll()
--- End of inner exception stack trace ---
at Microsoft.ContentManagement.Publishing.CmsContext.CommitAll()
at DebugApprovalError.Form1.btnCheck_Click(Object sender, EventArgs
e) in  C:\Projects\Temp\DebugApprovalError\Form
1.vb:line 76
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

Thanks for your help with this problem,

Regards,

Mark






[ Post a follow-up to this message ]



    Re: Problems Approving Posting  
Stefan Goßner [MSFT]


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


 
06-11-07 12:17 PM

Hi Mark,

that shouldn't happen.
Please open a support case for this to allow us to investigate this.

Cheers,
Stefan

<markgeeuk@googlemail.com> wrote in message
news:1181562953.252314.287820@w5g2000hsg.googlegroups.com...
On 11 Jun, 12:33, "Stefan Goßner [MSFT]"
<stef...@online.microsoft.com> wrote:
> Hi Mark,
>
> which line of code causes the problem?
> Do you get a callstack with the error message?
> Are there any event log entries?
>
> Cheers,
> Stefan
>
> <markge...@googlemail.com> wrote in message
>
> news:1181555720.608724.119160@p77g2000hsh.googlegroups.com...
>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> - Show quoted text -

Hi Stefan,

The error is generated by the CommitAll statement and it doesn't look
like any events are added to either the system or application logs.The
full exception stack trace is as follows:

************** Exception Text **************
Microsoft.ContentManagement.Publishing.CmsServerException: Server
error.  Contact the site administrator. --->
System.Runtime.InteropServices.COMException (0x80041B58): Server
error.  Contact the site administrator.
at
Microsoft.ContentManagement.Interop.Publishing.CmsApplicationContextClass.Co
mmitAll()
at Microsoft.ContentManagement.Publishing.CmsContext.CommitAll()
--- End of inner exception stack trace ---
at Microsoft.ContentManagement.Publishing.CmsContext.CommitAll()
at DebugApprovalError.Form1.btnCheck_Click(Object sender, EventArgs
e) in  C:\Projects\Temp\DebugApprovalError\Form
1.vb:line 76
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

Thanks for your help with this problem,

Regards,

Mark







[ Post a follow-up to this message ]



    Re: Problems Approving Posting  
markgeeuk@googlemail.com


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


 
06-11-07 06:18 PM

On 11 Jun, 13:11, "Stefan Go=DFner [MSFT]"
<stef...@online.microsoft.com> wrote:
> Hi Mark,
>
> that shouldn't happen.
> Please open a support case for this to allow us to investigate this.
>
> Cheers,
> Stefan
>
> <markge...@googlemail.com> wrote in message
>
> news:1181562953.252314.287820@w5g2000hsg.googlegroups.com...
> On 11 Jun, 12:33, "Stefan Go=DFner [MSFT]"
>
>
>
>
>
> <stef...@online.microsoft.com> wrote: 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Hi Stefan,
>
> The error is generated by the CommitAll statement and it doesn't look
> like any events are added to either the system or application logs.The
> full exception stack trace is as follows:
>
> ************** Exception Text **************
> Microsoft.ContentManagement.Publishing.CmsServerException: Server
> error.  Contact the site administrator. --->
> System.Runtime.InteropServices.COMException (0x80041B58): Server
> error.  Contact the site administrator.
>    at
> Microsoft.ContentManagement.Interop.Publishing.CmsApplicationContextClass=
.C=ADommitAll()
>    at Microsoft.ContentManagement.Publishing.CmsContext.CommitAll()
>    --- End of inner exception stack trace ---
>    at Microsoft.ContentManagement.Publishing.CmsContext.CommitAll()
>    at DebugApprovalError.Form1.btnCheck_Click(Object sender, EventArgs
> e) in  C:\Projects\Temp\DebugApprovalError\Form
1.vb:line 76
>    at System.Windows.Forms.Control.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
>    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
> button, Int32 clicks)
>    at System.Windows.Forms.Control.WndProc(Message& m)
>    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
>    at System.Windows.Forms.Button.WndProc(Message& m)
>    at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
>    at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
>    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
> msg, IntPtr wparam, IntPtr lparam)
>
> Thanks for your help with this problem,
>
> Regards,
>
> Mark- Hide quoted text -
>
> - Show quoted text -

Thanks Stefan,

Will do.

Regards,

Mark






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:38 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