|
Home > Archive > Microsoft Content Management Server > April 2007 > Save New Page Failed
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 |
Save New Page Failed
|
|
|
| I've been working with CMS for a while. Today I started getting the following
error when try to create postings in my dev environment. My guess is that I
have something screwed up in my configuration but I have not been able to
find a solution. Any tips on what to look at would be greatly appreciate.
Error Details:
Invalid mode for update. The requested action modifies the state of an
object and can only be performed when the session is in the 'Update' mode.
By the way, I have read the Web Author FAQ on this error and I am not
putting templates in the root the directory. All our pages are one down from
root in a web app.
Thanks,
Mike
| |
| Mike Buckingham 2007-04-23, 7:19 pm |
| I have determined that it is only an issue with pages that were created in
2003. When I create a new page in 2005 and create a new posting with it I do
not get the error.
Mike
"Mike" wrote:
> I've been working with CMS for a while. Today I started getting the following
> error when try to create postings in my dev environment. My guess is that I
> have something screwed up in my configuration but I have not been able to
> find a solution. Any tips on what to look at would be greatly appreciate.
>
> Error Details:
> Invalid mode for update. The requested action modifies the state of an
> object and can only be performed when the session is in the 'Update' mode.
>
>
> By the way, I have read the Web Author FAQ on this error and I am not
> putting templates in the root the directory. All our pages are one down from
> root in a web app.
>
> Thanks,
> Mike
>
| |
| Stefan Goßner [MSFT] 2007-04-24, 7:18 am |
| Hi Mike,
there is either some code in your template or in the global.asax.cs which
tries to perform updates while the posting is not in update mode or there is
a custom ISAPI filter or httpmodule which modifies the incoming query string
parameters.
Cheers,
Stefan
"Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
message news:F6EFE9D6-3695-486F-9A70-437C37130D37@microsoft.com...[vbcol=seagreen]
>I have determined that it is only an issue with pages that were created in
> 2003. When I create a new page in 2005 and create a new posting with it I
> do
> not get the error.
> Mike
>
> "Mike" wrote:
>
| |
| Mike Buckingham 2007-04-24, 1:20 pm |
| Hi Stefan,
I have encountered the issue you are referring to in the past when we tried
to update a posting and we used the wrong context or were not in the right
mode. We are not doing that in this code. I have even tried stripping all the
controls out of the apsx and commenting out the all the cs code in the code
behind. I still got the problem. If the problem were in the global.asax,
wouldn't it still be an issue when I created a new page?
Is there a way to turn on tracing or debug in CMS? It would be great to be
able to get a more detailed error message or an exception with a stack trace.
Thanks,
Mike
"Stefan Goßner [MSFT]" wrote:
> Hi Mike,
>
> there is either some code in your template or in the global.asax.cs which
> tries to perform updates while the posting is not in update mode or there is
> a custom ISAPI filter or httpmodule which modifies the incoming query string
> parameters.
>
> Cheers,
> Stefan
> "Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
> message news:F6EFE9D6-3695-486F-9A70-437C37130D37@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-24, 1:20 pm |
| Hi Mike,
you cannot trace this with MCMS methods.
You need to identify the line of code that causes the problem.
Is there a callstack that comes with the error?
Cheers,
Stefan
"Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
message news:F1C6A774-F11B-4D3C-AA66-DE7D023F5655@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> I have encountered the issue you are referring to in the past when we
> tried
> to update a posting and we used the wrong context or were not in the right
> mode. We are not doing that in this code. I have even tried stripping all
> the
> controls out of the apsx and commenting out the all the cs code in the
> code
> behind. I still got the problem. If the problem were in the global.asax,
> wouldn't it still be an issue when I created a new page?
>
> Is there a way to turn on tracing or debug in CMS? It would be great to be
> able to get a more detailed error message or an exception with a stack
> trace.
>
> Thanks,
> Mike
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
| Mike Buckingham 2007-04-24, 1:20 pm |
| Stefan,
No I'm getting that message after I seleft save new page using the cms
authoring interface. It's displayed in the console error module. Is there a
way I can trap that exception? By the way, I am only getting this error when
I try to create new pages. I can update existing pages without a problem.
Thanks,
Mike
"Stefan Goßner [MSFT]" wrote:
> Hi Mike,
>
> you cannot trace this with MCMS methods.
> You need to identify the line of code that causes the problem.
> Is there a callstack that comes with the error?
>
> Cheers,
> Stefan
>
> "Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
> message news:F1C6A774-F11B-4D3C-AA66-DE7D023F5655@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-24, 1:20 pm |
| Hi Mike,
this sounds as if the problem occurs either in a workflow event.
Please disable all workflow events and check if the problem is gone.
Cheers,
Stefan
"Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
message news:AB6E10D2-0D35-4122-A6EC-1CA24CA4CB83@microsoft.com...[vbcol=seagreen]
> Stefan,
>
> No I'm getting that message after I seleft save new page using the cms
> authoring interface. It's displayed in the console error module. Is there
> a
> way I can trap that exception? By the way, I am only getting this error
> when
> I try to create new pages. I can update existing pages without a problem.
>
> Thanks,
> Mike
>
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
| Mike Buckingham 2007-04-24, 1:20 pm |
| Hi Stefan,
How do I disable workflow?
Thanks,
Mike
"Stefan Goßner [MSFT]" wrote:
> Hi Mike,
>
> this sounds as if the problem occurs either in a workflow event.
> Please disable all workflow events and check if the problem is gone.
>
> Cheers,
> Stefan
>
> "Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
> message news:AB6E10D2-0D35-4122-A6EC-1CA24CA4CB83@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-24, 1:20 pm |
| Hi Mike,
usually you implemented it in your global.asax.cs or you did this in a
custom http module.
Check where your workflow events are implemented and remove them.
Cheers,
Stefan
"Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
message news:AB2D0CD9-C7E7-4F17-BBA0-C761291F9A92@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> How do I disable workflow?
>
> Thanks,
> Mike
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
| Mike Buckingham 2007-04-24, 1:20 pm |
| Hi Stefan,
We do not do anything with CMS in the global.asax. In some pages we capture
work flow events but even templates without this work flow code error out on
creation. For some reason new pages with the same code and html does not have
this problem. I am puzzled.
Thanks,
Mike
"Stefan Goßner [MSFT]" wrote:
> Hi Mike,
>
> usually you implemented it in your global.asax.cs or you did this in a
> custom http module.
> Check where your workflow events are implemented and remove them.
>
> Cheers,
> Stefan
>
>
> "Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
> message news:AB2D0CD9-C7E7-4F17-BBA0-C761291F9A92@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-24, 7:17 pm |
| Hi Mike,
it is not allowed to captured workflow events in pages.
This is only allowed in the global.asax or a httpmodule as the workflow
events are singleton. Means only one instance exists per process.
Are you sure you are talking about workflow events?
Cheers,
Stefan
"Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
message news:D76316F0-A121-420A-8569-23F6B8DC128F@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> We do not do anything with CMS in the global.asax. In some pages we
> capture
> work flow events but even templates without this work flow code error out
> on
> creation. For some reason new pages with the same code and html does not
> have
> this problem. I am puzzled.
>
> Thanks,
> Mike
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
| Mike Buckingham 2007-04-24, 7:17 pm |
| Hi Stefan,
I may not have the terms right. Here's a sample of the types of things I am
reffering to:
override protected void OnInit(EventArgs e)
{
try
{
base.OnInit(e);
WebAuthorContext.Current.SavePostingEvent += new
WebAuthorPostingEventHandler(SavePosting
Event);
WebAuthorContext.Current.InvokedAction += new
InvokedActionEventHandler(CMS_InvokedAct
ionEventHandler);
WebAuthorContext.Current.PerformedAction += new
PerformedActionEventHandler(Current_Perf
ormedAction);
}
catch{}
}
protected void Current_PerformedAction(object sender, ActionEventArgs e)
{
Type actionType = e.Action.GetType();
if(actionType == typeof(ApproveAction))
{
OnApprove(sender, e);
}
if(actionType == typeof(DeleteAction))
{
OnDelete(sender, e);
}
}
Thanks,
Mike
"Stefan Goßner [MSFT]" wrote:
> Hi Mike,
>
> it is not allowed to captured workflow events in pages.
> This is only allowed in the global.asax or a httpmodule as the workflow
> events are singleton. Means only one instance exists per process.
> Are you sure you are talking about workflow events?
>
> Cheers,
> Stefan
>
>
> "Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
> message news:D76316F0-A121-420A-8569-23F6B8DC128F@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-25, 1:19 pm |
| Hi Mike,
these are not workflow events.
Anyway: what are you doing in the SavePostingEvent method?
You did not post the source code of this action?
What happens if you disable it? Does this solve the issue?
Cheers,
Stefan
"Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
message news:BEFFFB24-85C1-4FC5-86A8-C38AB41FE4F4@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> I may not have the terms right. Here's a sample of the types of things I
> am
> reffering to:
>
> override protected void OnInit(EventArgs e)
> {
> try
> {
> base.OnInit(e);
> WebAuthorContext.Current.SavePostingEvent += new
> WebAuthorPostingEventHandler(SavePosting
Event);
> WebAuthorContext.Current.InvokedAction += new
> InvokedActionEventHandler(CMS_InvokedAct
ionEventHandler);
> WebAuthorContext.Current.PerformedAction += new
> PerformedActionEventHandler(Current_Perf
ormedAction);
> }
> catch{}
> }
>
> protected void Current_PerformedAction(object sender, ActionEventArgs e)
> {
> Type actionType = e.Action.GetType();
> if(actionType == typeof(ApproveAction))
> {
> OnApprove(sender, e);
> }
> if(actionType == typeof(DeleteAction))
> {
> OnDelete(sender, e);
> }
>
>
> }
>
> Thanks,
> Mike
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
| Mike Buckingham 2007-04-25, 1:19 pm |
| Hi Stefan,
I don't think we use the SavePostingEvent any more. We were saving updates
to our database on save but we only do that on approval now.
We get the error with templates that do not use any of the these events. I
suspect there is soemthing wrong with my dev enviroment. We have not seen
this problem in QA enviroment. I'll know for sure after our next push to QA.
Thanks,
Mike
"Stefan Goßner [MSFT]" wrote:
> Hi Mike,
>
> these are not workflow events.
> Anyway: what are you doing in the SavePostingEvent method?
> You did not post the source code of this action?
> What happens if you disable it? Does this solve the issue?
>
> Cheers,
> Stefan
>
>
> "Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
> message news:BEFFFB24-85C1-4FC5-86A8-C38AB41FE4F4@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-25, 1:19 pm |
| Hi Mike,
if you can't figure it out on your own, you should open a support call for
this,
Cheers,
Stefan
"Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
message news:870A36C0-28E6-4289-AEF8-D8BC0AEE9785@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> I don't think we use the SavePostingEvent any more. We were saving updates
> to our database on save but we only do that on approval now.
>
> We get the error with templates that do not use any of the these events. I
> suspect there is soemthing wrong with my dev enviroment. We have not seen
> this problem in QA enviroment. I'll know for sure after our next push to
> QA.
>
> Thanks,
> Mike
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
| Mike Buckingham 2007-04-25, 1:19 pm |
| Thanks Stefan. I'll do that.
Mike
"Stefan Goßner [MSFT]" wrote:
[vbcol=seagreen]
> Hi Mike,
>
> if you can't figure it out on your own, you should open a support call for
> this,
>
> Cheers,
> Stefan
>
>
> "Mike Buckingham" <MikeBuckingham@discussions.microsoft.com> wrote in
> message news:870A36C0-28E6-4289-AEF8-D8BC0AEE9785@microsoft.com...
|
|
|
|
|