Giter Site home page Giter Site logo

Comments (5)

Anton-V-K avatar Anton-V-K commented on May 29, 2024 1

The problem still happens with VS2017 15.9.9 :(

The fix seems to be straightforward - it is enough to catch System.Runtime.InteropServices.COMException in GetDTE() (in \VSFileNav\VSNav\Code\Gathering\EventManager.cs):

try
{
    this.webProjectEvents = dte.Events.GetObject("WebSiteItemsEvents") as ProjectItemsEvents;
}
catch (System.Runtime.InteropServices.COMException)
{
}

I tested it in my VS2017 without installed ASP.NET, and the custom-built addon works fine :)
Here is the binary with hotfix - VSNav-HotFix.vsix.zip
Just a reminder: the command is Edit.QuickFindFile with global shortcut Ctrl + Alt + F.

PS: Since this addon seems to be abandoned, it makes sense to switch to native navigation with Ctrl+, or Ctrl+Shift+T(see also https://stackoverflow.com/a/44164379/536172).

from vsfilenav.

Anton-V-K avatar Anton-V-K commented on May 29, 2024

I've taken a look into the code and found the fragment in \VSFileNav\VSNav\Code\Gathering\EventManager.cs:

this.cSharpProjectEvents = dte.Events.GetObject("CSharpProjectItemsEvents") as ProjectItemsEvents;
this.vbProjectEvents = dte.Events.GetObject("VBProjectItemsEvents") as ProjectItemsEvents;
this.webProjectEvents = dte.Events.GetObject("WebSiteItemsEvents") as ProjectItemsEvents;

My Visual Studio Community 2017 (15.5.6) doesn't have the feature for Web-development installed (I've installed only limited set of features), so I guess the problem may be related to this...

I've accidentally ran into the missing feature error when trying to open some specific project:
install_missing_features-asp net_and_web_development

Here is the full list of installed products:
visual_studio-about-crop

It looks like a problem in VS, which fires a critical error when requested features isn't installed... but I could have overlooked something.

from vsfilenav.

mmcintyre123 avatar mmcintyre123 commented on May 29, 2024

I installed the ASP.Net and Web Development Package and that fixed the problem for me.

from vsfilenav.

Anton-V-K avatar Anton-V-K commented on May 29, 2024

Installing extra features is a good workaround. Though with a small free space (on some SSDs) it may present a challenge...
And I'd expect the issue to be fixed other way (installing unusable features of VS2017 seems to be an overkill).

from vsfilenav.

rotanov avatar rotanov commented on May 29, 2024

Hello. I also experienced this issue. I have 110Gb ssd with a little space left, so, yep, it's challenging.

from vsfilenav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.