question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visual studio error while opening reverse engineering tool

See original GitHub issue

Upgraded to version 1.0.721 using VS 2017 Extensions and Updates window. I have enterprise version of VS and Windows 10 professional version 1803.

After the upgrade reverse engineering tool failed to launch. The following is a list of errors recorded on Output window of VS.

System.Windows.Markup.XamlParseException: Could not load file or assembly ‘System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. —> System.IO.FileNotFoundException: Could not load file or assembly ‘System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly(BamlAssembly bamlAssembly) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlTypeToType(BamlType bamlType) at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 typeId) at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16 typeId) at System.Windows.Baml2006.Baml2006SchemaContext.GetProperty(Int16 propertyId, XamlType parentType) at System.Windows.Baml2006.Baml2006Reader.Process_PropertyArrayStart() at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord() at System.Windows.Baml2006.Baml2006Reader.Process_BamlRecords() at System.Windows.Baml2006.Baml2006Reader.Read() at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) — End of inner exception stack trace — at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at EFCorePowerTools.Dialogs.PickServerDatabaseDialog.InitializeComponent() in C:\projects\efcorepowertools\src\GUI\EFCorePowerTools\Dialogs\PickServerDatabaseDialog.xaml:line 1 at EFCorePowerTools.Dialogs.PickServerDatabaseDialog…ctor(ITelemetryAccess telemetryAccess, IPickServerDatabaseViewModel viewModel) in C:\projects\efcorepowertools\src\GUI\EFCorePowerTools\Dialogs\PickServerDatabaseDialog.xaml.cs:line 40 at lambda_method(Closure , ServiceProviderEngineScope ) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at EFCorePowerTools.EFCorePowerToolsPackage.GetViewTView in C:\projects\efcorepowertools\src\GUI\EFCorePowerTools\EFCorePowerToolsPackage.cs:line 321 at EFCorePowerTools.Handlers.ReverseEngineerHandler.<ReverseEngineerCodeFirst>d__2.MoveNext() in C:\projects\efcorepowertools\src\GUI\EFCorePowerTools\Handlers\ReverseEngineerHandler.cs:line 50

I appreciate any help to resolve this issue.

Thanks a lot in advance for your help!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:42 (33 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikEJcommented, Dec 21, 2018

I will make sure it gets included!

0reactions
javierdlgcommented, Aug 17, 2021

Thanks Erik. In case anyone else finds this page with the same issue, I was able to fix the issue by making sure VS was using my public key in my project. Turned out that a microbuild package I was using that signs assemblies in DevOps switched the public key used to sign with it’s own, causing VS to fail to load my assembly due to mismatched assemblies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2015 Update 2 breaks EF reverse code ...
After installing the latest Visual Studio 2015 Update 2, the EF power tools reverse code engineer option fails with the following error message....
Read more >
EF Core Power tools / Reverse Engineer crashed
I tried to Reverse Engineer using EF Core Power Tools when my project was all Checked in in TFS then I did a...
Read more >
Decompilation of C# code made easy with Visual Studio
In the following example I have opened a crash dump in Visual Studio and have hit an exception in framework code. I do...
Read more >
Reverse engineer an existing database into a ...
Use the Reverse Engineer Wizard in Visio to create a database model from an existing database or Excel spreadsheet.
Read more >
Scaffolding (Reverse Engineering) - EF Core
Reverse engineering a model from an existing database using Entity Framework ... If you use Visual Studio, try out the EF Core Power...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found