How To: Troubleshoot Form Designer
This topic gives solutions to common Form Designer and Form Control errors.
Form Designer
Administrator: InvalidCastException - Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_22'. This operation failed because the QueryInterface call on the COM component for the interface
Cause
This issue is caused by the machine not having a new enough version of WebView2 installed.
Solution
Install the supported WebView2 Runtime version.
- Close DriveWorks.
- Click the link from the WebView2 section.
- Follow the instructions to install WebView2.
- Launch DriveWorks and ensure the error is resolved.
Child Specification List Control
Modifying an existing child opens the wrong Child Specification
Clicking Edit, Copy or Delete on a Specification, in a Child Specification List Control, will modify the last one added to the list.
Cause:
Each child specification is being created in the same folder.
Solution:
- Change the Rule for the Specification Path for each child project.
The default rule for this setting is DWSpecification.
This rule will create a unique folder for each Child.
If you are experiencing this error the default rule will have been overwritten.
- Open the child project in DriveWorks Administrator, select Stage 5. Specification Control>Specification Settings.
- Click Build for the Specification Path setting
- Apply a rule that will locate each child specification in it's own folder.
| Knowledge Base Article Ref: | KB12121035 |
|---|