Failed to create component

0
0

Installed Wisej 4 and created my first vb web desktop application.

Default form works and runs, however when I try to add a component from the toolbox I get to following:

Failed to create component…error

Have Wisej 3.5 Community Edition installed and it works fine.

Any advice to clear this up would be greatly appreciated.

 

 

  • You must to post comments
0
0

This is an issue caused by having multiple versions of Wisej installed side-by-side (in your case Wisej 3.5 and Wisej 4).

Visual Studio tries to load the design-time component assemblies, and if it picks up the wrong version (or a mix of 3.5 and 4), you’ll see “Failed to create component…” when dragging from the toolbox.

How to fix it:

  1. Try cleaning and rebuilding your project, restarting Visual Studio, restarting your computer and cleaning and rebuilding your project again.
  2. Clear the cache- Visual Studio caches assemblies for the toolbox and designer. Close Visual Studio, then delete the contents of these folders:
    C:\Users\<YourUsername>\AppData\Local\Microsoft\VisualStudio\<version>\ComponentModelCache
    C:\Users\<YourUsername>\AppData\Local\Microsoft\VisualStudio\<version>\Designer\ShadowCache
  3. Check your project references- open your .vbproj file by double-clicking on the project name in the Solution Explorer. Double-check that it is referencing Wisej 4 (Should look like this: <PackageReference Include=”Wisej-4″ Version=”4.0.*-*” />) and not Wisej 3.5
  4. Try temporarily uninstalling Wisej 3.5 (uninstall it from Visual Studio → Extensions → Manage Extensions)
  5.  Reset the toolbox- Go to the Tools menu → Import and Export Settings. Select Reset all settings → click Next. You can choose Yes, save my current settings (optional) or No. Pick your default environment (e.g., VB or C#). This will rebuild the toolbox from scratch.

 

Hope this helps,

Julie

  • Warren McKenna
    Did all of this and on 2 different machines and still getting the Failed to create component…. Gerrr
  • Warren McKenna
    I’m back and made another attempt at clearing up this error. Uninstalled all WiseJ extensions and carefully followed these instructions. Installed the WiseJ4 extension and all is working great. This is an install on my laptop so now off to work on the Desktop to see if we can fix it up. Thanks for the help!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.