OmarElabd / ObjectExporter

Object Exporter lets you export out an object while debugging in Visual Studio, the object can be serialized in either C#, JSON or XML.
GNU General Public License v3.0
263 stars 83 forks source link

Unable to start Object Explorer in Visual Studio #59

Closed vurso closed 7 years ago

vurso commented 7 years ago

Hi when starting visual studio an error is displayed stating the add-in could not be loaded. I found the following information when I checked the activity monitor log:

17:51:13.373 222 ERROR LegacySitePackage failed for package [ObjectExporter]Source: 'ObjectExporter' Description: Could not find SciLexer.dll - This is unmanaged assembly is required by ScintillaNet.dll System.DllNotFoundException: Could not find SciLexer.dll - This is unmanaged assembly is required by ScintillaNet.dll at ObjectExporter.VsPackage.ObjectExporter.LoadUnmanagedLibraries() at ObjectExporter.VsPackage.ObjectExporter.Initialize() at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp) {07FB5B16-F4BE-4488-9A19-B4F36D2C05A6} 80131524 VisualStudio 2016/11/05 17:51:14.327 223 ERROR SetSite failed for package ObjectExporter {07FB5B16-F4BE-4488-9A19-B4F36D2C05A6} 80131524 VisualStudio 2016/11/05 17:51:14.343

vurso commented 7 years ago

625 ERROR LegacySitePackage failed for package [ObjectExporter]Source: 'ObjectExporter' Description: Could not find SciLexer.dll - This is unmanaged assembly is required by ScintillaNet.dll System.DllNotFoundException: Could not find SciLexer.dll - This is unmanaged assembly is required by ScintillaNet.dll at ObjectExporter.VsPackage.ObjectExporter.LoadUnmanagedLibraries() at ObjectExporter.VsPackage.ObjectExporter.Initialize() at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp) {07FB5B16-F4BE-4488-9A19-B4F36D2C05A6} 80131524 VisualStudio 2016/11/05 18:08:41.220 626 ERROR SetSite failed for package ObjectExporter {07FB5B16-F4BE-4488-9A19-B4F36D2C05A6} 80131524 VisualStudio 2016/11/05 18:08:41.251 627 ERROR End package load [ObjectExporter]

OmarElabd commented 7 years ago

Hi @vurso ,

SciLexer.dll is used by ObjectExporter, it should have been installed when you installed the Object Exporter extension. May i ask what version of Visual Studio are you using?

A quick fix would be to put SciLexer.dll in the extension path C:/Users//AppData/Local/Microsoft/VisualStudio//Extensions//

vurso commented 7 years ago

Hi @OmarElabd I checked the installation location all the files seemed to be there and I also tried to copy over the SciLexer.dll still no luck.

The first environment is a Windows 2008 R2 server with Visual Studio 2015 Community Edition with the latest updates.

The second environment is a Windows 10 Pro laptop with Visual Studio 2015 Community Edition.

Both environments experience the same issue

image

image

chking999 commented 7 years ago

I'm getting this same error after I install Object Exporter to VS 2015.

OmarElabd commented 7 years ago

@chking999 What edition of VS 2015 are you using? Community as well?

chking999 commented 7 years ago

Using Visual Studio Professional 2015 Version 14.0.25431.01 Update 3

Christian King www.chking.com

On Fri, Nov 11, 2016 at 3:32 PM, Omar Elabd notifications@github.com wrote:

@chking999 https://github.com/chking999 What edition of VS 2015 are you using? Community as well?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OmarElabd/ObjectExporter/issues/59#issuecomment-260060466, or mute the thread https://github.com/notifications/unsubscribe-auth/AHqD6hyBxWjR7FCx86X7H0NMYSiMtfYqks5q9N8HgaJpZM4KqVi8 .

seba76 commented 7 years ago

Same thing here. VS 2015 Enterprise Update 3, Win 10 x64 Enterprise. I debugged this and reason for this message, at least in my case, is because call to LoadLibrary fails with error 0x0000045A ERROR_DLL_INIT_FAILED. Scintilla dll exists and extension is correctly determining path to it.

vurso commented 7 years ago

This is still an issue. Brand new laptop (Windows 10 Professional X64), McAfee AV installed, Visual Studio 2015 Professional with ReSharper (latest version), no other add-ins same error when Visual Studio starts up.

OmarElabd commented 7 years ago

@vurso do you have any other language packs installed except English? Either in Visual Studio or on Windows?

vurso commented 7 years ago

@OmarElabd hi nope its a clean Windows 10 Professional environment on my work laptop. I used the MSDN subscription given to me by my manager to download Visual Studio 2015 Professional Edition. I then installed the latest version of ReSharper and ApexSQL.

It is still showing that error message regardless of whatever I try (I do start VS in Administrator mode).

OmarElabd commented 7 years ago

External dlls are no longer loaded by object exporter, so this should no longer be an issue.

seba76 commented 7 years ago

Just to mention with release 1.7.0 issue is resolved for me. Thanks.

OmarElabd commented 7 years ago

@seba-0 excellent, glad to hear it.

vurso commented 7 years ago

Latest version works great good work bro!