Troubleshooting
Messages you may meet and what causes them.
In this documentation
- Beep.Forms
- Architecture
- Authoring in the Object Navigator
- WinForms runtime
- WPF runtime
- End-to-end example
- Remote UI limitations
- Overview
- Context menus
- Blocks and items
- Triggers
- Lists of values
- Validation
- Master detail
- Navigation and queries
- Alerts, editors and timers
- Calling other forms
- Form menus
- Hosting in WinForms step by step
- Hosting in WPF step by step
- Saving and loading forms
- The IDE toolbar and dialogs
- Troubleshooting
Exceptions
| Message | Cause |
|---|---|
| A Forms manager must be assigned before accessing block data. | A block or host was used before FormsManager was set. |
| BlockName is required. | A block control has no BlockName. |
| Engine block 'name' is not registered. | The block control was bound, but the manager does not know that name. |
| A block named 'name' is already registered. | Two blocks use the same name. Names are not case sensitive. |
| Field 'name' already has a presenter. | A field was added to a block view twice. |
| The registered object must implement IBlockView. | An object registered as a block does not implement the view contract. |
| The block view must be a WinForms Control. (WPF: FrameworkElement.) | The block view is not a UI element of the host's kind. |
| Assign _formsHost.FormsManager before calling RegisterBeepFormsMetadata(). | The generated method ran before the manager was assigned. |
| A WinForms form factory must be assigned before opening another form. | A form call was made with no FormFactory. WPF has the same message for its factory. |
| The WinForms host handle must be created on its owning thread before cross-thread access. | The host was used from another thread before its handle existed. |
| Master block 'X' is not registered. (Detail block 'X' is not registered.) | A relation was created before both blocks existed. |
Registration log messages
DefinitionBlockRegistrar writes these to the editor log and skips the block:
- "block 'X' declares no connection or entity, so it was skipped."
- "connection 'X' for block 'Y' could not be opened."
- "'connection.entity' could not be resolved to an entity structure and row type."
An entity with no key logs that its declared key fields are missing, so updates are refused. Mark the key fields with IsPrimaryKey.
Common situations
- A block shows no rows: records start empty, so call
ExecuteQueryAsyncand thenMoveFirstAsync. - The navigation bar does nothing: assign it to the block before the block is bound.
- On WPF a block or bar does not appear: call
RegisterBlock, since WPF does not discover them. - A form call returns false: register the target form in the form registry.
- A field accepts any list value: check the list's
ValidationType. Only Unrestricted skips the check. - A master delete is refused: the relationship's
DeleteBehaviorisNonIsolated, the default.