Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security on Pages of TabControl (WinForms)
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00881183
Message ID:
00883818
Views:
40
Clay,

>One of the errors I got was from the [Security Control Id setup] dialog at design time.
>
>***The error read: Unable to create record in security table
>
>I received this error when I clicked on the Generate Control Id button.
>
>Since this is at design time,how can I trace it?
>
>All my data is Oracle
>the security table was setup following the schema in the documentation.

The code that's executing when you launch the builder can be found in the "Mere Mortals Framework Automation" project in "mmSecurityControlIDEditForm.cs". As you can see by looking through the code, the form has the following method that must be failing:
private void btnGenerateID_Click(object sender, System.EventArgs e)
{
	this.ControlID = Guid.NewGuid();
	try
	{
		this.oSecurity.NewRow();
	}
	catch (Exception ex)
	{
		MessageBox.Show("Unable to create a new security record.");
		return;
	}
Although you CAN step through code in design-time builders within VS .NET, I find it often doesn't work properly (VS .NET "issues")! What I recommend as an easier first step is to instantiate an instance of the Security business object at run time and see if you can add a new row.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform