﻿<?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 » Business Objects and Data Access (How do I?)  » Unhandled 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 16:02:17 GMT</lastBuildDate><ttl>20</ttl><item><title>Unhandled exception</title><link>http://forum.strataframe.net/FindPost2423.aspx</link><description>I put a grid on a form with a bindingnavigator and deleted some rows.&lt;br&gt;
&lt;br&gt;
I got a message from the grid (DevExp) asking if I want to delete each row and I got another message from SF asking the same thing. No changes occurred in the database. When I went to close the form, SF asked me if I wanted to save. I clicked yes and then got the following exception in Business Layer:&lt;br&gt;
MicroFour.StrataFrame.Business.BusinessLayerException was unhandled by user code&lt;br&gt;
  IsTransient=False&lt;br&gt;
  Message="An error occurred while saving an the data to the server."&lt;br&gt;
  Source="MicroFour StrataFrame Business"&lt;br&gt;
  StackTrace:&lt;br&gt;
       at MicroFour.StrataFrame.Business.BusinessLayer.SaveByForm(Boolean Transactional, String TransactionKey)&lt;br&gt;
       at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save(Boolean Transactional, String TransactionKey)&lt;br&gt;
       at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save()&lt;br&gt;
       at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnFormClosing(FormClosingEventArgs e)&lt;br&gt;
       at System.Windows.Forms.Form.WmClose(Message&amp; m)&lt;br&gt;
       at System.Windows.Forms.Form.WndProc(Message&amp; m)&lt;br&gt;
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)&lt;br&gt;
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)&lt;br&gt;
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;
&lt;br&gt;
1 - Why did I get the exception?&lt;br&gt;
2 - How do I get the deletes to take effect immediately?&lt;br&gt;
3 - How do I make the SF "ok to delete" prompts go away?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Dan</description><pubDate>Thu, 24 Aug 2006 08:43:21 GMT</pubDate><dc:creator>Daniel Essin</dc:creator></item><item><title>RE: Unhandled exception</title><link>http://forum.strataframe.net/FindPost2428.aspx</link><description>The SF delete prompts can be turned off by setting the AutoShowDeleteConfirmation property on the form to False.&amp;nbsp; As for the exception that you received... it's not very descriptive, can you get the InnerException from the BusinessLayerException?</description><pubDate>Thu, 24 Aug 2006 08:43:21 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>