rolodex editLevel exception

rolodex editLevel exception

Old forum URL: forums.lhotka.net/forums/t/5690.aspx


davido posted on Wednesday, October 29, 2008

Hi,

I have the rolodex sample up and running. I can add a company ok. When I attempt to add a contact I get the following exception thrown:

 void Core.IUndoableObject.AcceptChanges(int parentEditLevel, bool parentBindingEdit)
    {
      if (this.EditLevel - 1 != parentEditLevel)
        throw new UndoException(string.Format(Properties.Resources.EditLevelMismatchException, "AcceptChanges"));

I got the code from the codeplex article.

Any suggestions what may be causing this?

sergeyb replied on Wednesday, October 29, 2008

The code for the article is probably a over two months old.  My first suggestion is to get the latest version from SVN or CSLA Light download page and try that version.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: davido [mailto:cslanet@lhotka.net]
Sent: Wednesday, October 29, 2008 8:32 AM
To: Sergey Barskiy
Subject: [CSLA .NET] rolodex editLevel exception

 

Hi,

I have the rolodex sample up and running. I can add a company ok. When I attempt to add a contact I get the following exception thrown:

 void Core.IUndoableObject.AcceptChanges(int parentEditLevel, bool parentBindingEdit)
    {
      if (this.EditLevel - 1 != parentEditLevel)
        throw new UndoException(string.Format(Properties.Resources.EditLevelMismatchException, "AcceptChanges"));

I got the code from the codeplex article.

Any suggestions what may be causing this?



davido replied on Wednesday, October 29, 2008

Thanks for the reply.

 

Could you post the URL for the CSLA Light download page please?

I am having difficulty finding it.

sergeyb replied on Wednesday, October 29, 2008

Sure

 

http://www.lhotka.net/cslalight/download.aspx

Samples column is the link to sample zip file.  Alternatively, you can download the same from SVN.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: davido [mailto:cslanet@lhotka.net]
Sent: Wednesday, October 29, 2008 9:40 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: rolodex editLevel exception

 

Thanks for the reply.

 

Could you post the URL for the CSLA Light download page please?

I am having difficulty finding it.



davido replied on Wednesday, October 29, 2008

Appreciated, thank you.

Copyright (c) Marimer LLC