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