﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Invalid Operation Exception</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 11:39:59 GMT</lastBuildDate><ttl>20</ttl><item><title>Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost4760.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;I have a business object (CustomerBO) that I’ve configured to raise a single property changed event for all properties. I’ve placed this BO on a SF maintenance form. The maintenance form also includes a ChildFormDialog that maps CustomerBO to the dialog form. If I add the FieldPropertyChanged event handler to the maintenance form code, I get an&amp;nbsp;invalid operation&amp;nbsp;exception (see attached) when I attempt to show the ChildFormDialog. If the FieldPropertyChanged event handler is not present on the maintenance form, the&amp;nbsp;ChildFormDialog executes okay.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The FieldPropertyChanged event handler doesn’t have to contain any code to cause the error. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;-Larry&lt;/SPAN&gt;</description><pubDate>Mon, 18 Dec 2006 14:50:02 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost5383.aspx</link><description>Yup...me too :D</description><pubDate>Mon, 18 Dec 2006 14:50:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost5382.aspx</link><description>Some days I'm more than a little confused;)</description><pubDate>Mon, 18 Dec 2006 14:48:22 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost5366.aspx</link><description>Good to know.&amp;nbsp; I was a little confused :)</description><pubDate>Sun, 17 Dec 2006 15:29:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost5365.aspx</link><description>:blush:&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080"&gt;Please disregard the previous post. I found the source of the problem. I failed to recompile ALL of the SF projects when I installed from the source.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080"&gt;-Larry&lt;/SPAN&gt;&lt;FONT color=#000000 size=3&gt; &lt;/FONT&gt;</description><pubDate>Sun, 17 Dec 2006 15:27:37 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost5363.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;It looks like a new bug managed to slip into the 11/27/2006 source code. The problem does not appear when the same program code is run on the 11/20/2006 release version of the framework. The exception is raised when a user ID that does not exist in the security database is entered on the login screen (I'm using the standard SF login screen). &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;If you continue after the exception is raised, a security event ID: Error message is displayed and if a valid user ID is entered, the login succeeds.&amp;nbsp;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;Here is the exception detail and a screenshot is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;MicroFour.StrataFrame.Business.BusinessLayerException was unhandled by user code&lt;BR&gt;&amp;nbsp; Message="The CurrentRow could not be evaluated because the CurrentRowIndex is out of range.&amp;nbsp; Business object record count: 0.&amp;nbsp; CurrentRowIndex: -1."&lt;BR&gt;&amp;nbsp; Source="MicroFour StrataFrame Business"&lt;BR&gt;&amp;nbsp; StackTrace:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.get_CurrentRow()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO.CreateInternalData()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO.IsDataValid()&lt;BR&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;</description><pubDate>Sun, 17 Dec 2006 14:54:51 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost4778.aspx</link><description>Yeah, I'm glad we got this one fixed as well.&amp;nbsp; As for the other problem... it might be some sort of PInvoke problem.&amp;nbsp; It looks from your samples that the C# MDAs are catching the exception while the VB.NET ones aren't, so I'm going to see if I can reproduce it in C#.&amp;nbsp; I'll keep you posted.</description><pubDate>Mon, 27 Nov 2006 13:30:12 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost4777.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;I downloaded and re-compiled the&amp;nbsp;updated source and problem solved:). Thanks for the quick fix. I’m glad you were able to reproduce this one. I still haven’t been able to get the database connection wizard to work without causing an application exception. Since you can’t reproduce it I’m feeling that I must have missed something in setting up security but can’t figure out what. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;-Larry&lt;/SPAN&gt;</description><pubDate>Mon, 27 Nov 2006 13:13:30 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost4774.aspx</link><description>OK, I only posted the source code to the MyAccount area because the full install is currently undergoing some revisions.&amp;nbsp; So, if you need the full blown install, you'll have to wait for the next update.&amp;nbsp; I also posted the DLLs here so you can just dump them out to the GAC and the common files folder if you want.</description><pubDate>Mon, 27 Nov 2006 11:20:26 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost4773.aspx</link><description>I was certainly able to reproduce this one... I fixed it by creating a secondary collection of the keys for the dictionary that I was iterating over.&amp;nbsp; I'm building an update right now and I'll post it here so you can give it a try.</description><pubDate>Mon, 27 Nov 2006 11:13:03 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Invalid Operation Exception</title><link>http://forum.strataframe.net/FindPost4768.aspx</link><description>Gotcha... I'll see if I can reproduce it on this end... shouldn't be too hard.</description><pubDate>Mon, 27 Nov 2006 08:26:10 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>