Visual Studio 2017 Exception with Entity Developer 6.4.775

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
mrmiagi0101
Posts: 23
Joined: Tue 27 Feb 2018 13:43

Visual Studio 2017 Exception with Entity Developer 6.4.775

Post by mrmiagi0101 » Wed 24 Jul 2019 07:49

Hello,

yesterday I updated from Version 6.4.755 to 6.4.775. With the new version I get exceptions in Visual Studio 2017 Prof. (15.9.14) as soon as I want to add a new project to a solution or supfolder. Even if I rightclick on a new project and click "Add ->New Item" I got the same exception:

Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.Ui.ThemedToggleButton' threw an exception

If I uninstall EntityDeveloper or go back to the previous version 6.4.755 the exception is gone away!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Visual Studio 2017 Exception with Entity Developer 6.4.775

Post by Shalex » Wed 24 Jul 2019 17:23

Does this recommendation help?

If not, specify a detailed stack trace of the error. If there is no stack trace, please obtain it by connecting from another (2nd) instance of Visual Studio (via Debug > Attach to Process) to the first VS (where you are getting 'Microsoft.VisualStudio.ExtensionsExplorer.Ui.ThemedToggleButton' threw an exception). Before debugging, make these settings in your 2nd Visual Studio:
* in the (Debug > Windows > Exception Settings) window, select Common Language Runtime Exceptions
* in the (Tools > Options) window, navigate to Debugging > General and clear Enable Just My Code

mrmiagi0101
Posts: 23
Joined: Tue 27 Feb 2018 13:43

Re: Visual Studio 2017 Exception with Entity Developer 6.4.775

Post by mrmiagi0101 » Thu 25 Jul 2019 06:26

Hello,

very strange. Today I unsinstalled the version 6.4.755 again and installed the new one. But now everything works. I got no exception anymore! But I did the same yesterday four times.

So unfortunately I can not provide a trace.

If I get the error again, I will post here.

Thanks.

IanKemp
Posts: 1
Joined: Mon 05 Aug 2019 06:39

Re: Visual Studio 2017 Exception with Entity Developer 6.4.775

Post by IanKemp » Mon 05 Aug 2019 09:59

I have the same issue with the free version 6.4.790. @Shalex debugging info attached:

Code: Select all

System.Windows.Markup.XamlParseException: 'Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.UI.ThemedToggleButton' threw an exception.'

Inner Exception
InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'VSLangProj.VSProject'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2CFB826F-F6BF-480D-A546-95A0381CC411}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Visual Studio 2017 Exception with Entity Developer 6.4.775

Post by Shalex » Tue 06 Aug 2019 14:08

IanKemp wrote: Mon 05 Aug 2019 09:59 I have the same issue with the free version 6.4.790. @Shalex debugging info attached:

Code: Select all

System.Windows.Markup.XamlParseException: 'Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.UI.ThemedToggleButton' threw an exception.'

Inner Exception
InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'VSLangProj.VSProject'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2CFB826F-F6BF-480D-A546-95A0381CC411}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
We have fixed a similar issue. Please try the internal build of Express Edition with the fix: https://www.devart.com/pub/entitydevelo ... _4_798.exe. If the problem persists, specify the full stack trace of the exception.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Visual Studio 2017 Exception with Entity Developer 6.4.775

Post by Shalex » Sat 14 Sep 2019 16:45

The bug with invalid attempt to cast unsupported Visual Studio project to type 'VSLangProj.VSProject' is fixed: viewtopic.php?f=32&t=39341.

Post Reply