|
Home > Archive > Microsoft Content Management Server > June 2007 > Problems Approving Posting
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 |
Problems Approving Posting
|
|
| markgeeuk@googlemail.com 2007-06-11, 7:17 am |
| 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.
| |
| Stefan Goßner [MSFT] 2007-06-11, 7:17 am |
| 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.
>
| |
| markgeeuk@googlemail.com 2007-06-11, 7:17 am |
| 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
| |
| Stefan Goßner [MSFT] 2007-06-11, 7:17 am |
| 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.CommitAll()
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
| |
| markgeeuk@googlemail.com 2007-06-11, 1: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
|
|
|
|
|