Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateInstance failed - VisualStudio 2015 #34

Closed
guteksan opened this issue Aug 11, 2017 · 16 comments
Closed

CreateInstance failed - VisualStudio 2015 #34

guteksan opened this issue Aug 11, 2017 · 16 comments
Assignees
Labels

Comments

@guteksan
Copy link

Today BuildVision simply didn't load when I started Visual Studio 2015. It has been installed 1 or 2 months ago, no other update or extension was installed on Visual Studio. An error message was displayed suggesting to look at Visual Studio ActivityLog.xml file. There I found following entries:

  <entry>
    <record>582</record>
    <time>2017/08/11 13:15:48.148</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [BuildVisionPackage]</description>
    <guid>{837C3C3B-8382-4839-9C9A-807B758A929F}</guid>
  </entry>
  <entry>
    <record>583</record>
    <time>2017/08/11 13:15:48.163</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [BuildVisionPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.Shell.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{837C3C3B-8382-4839-9C9A-807B758A929F}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

I tried to restart Visual Studio, restart PC, uninstall BuildVision and install again, all in vain. Could it be that Visual Studio has automatically updated to v2.0 that has just been released and it is broken?

@StefanKert
Copy link
Owner

Can you send me some details on the installed version? Are you using the current release?

@CharlEsterhuizen
Copy link

I have the same issue as Guteksan. Same error.
I un-installed /re-installed ,Clean registry with no luck.
I have even tried to install v1.4.1.61 and that gave me the same error. Been using BuildVision for a very long time without any issues. It started after I manually upgraded to V2.0.0.92
Edit : The error pops up as soon as I open a solution. not when VS starts

@StefanKert
Copy link
Owner

Ok. Under invastigation. Will provide an Update asap!

@StefanKert
Copy link
Owner

The thing is, that we've upgraded a package to a newer version and installed this via nuget. It looks like these packages got not copied to the output dir and since this package is integrated in vs 2017 only this causes issues with vs 2013, vs 2015. i will provide an update asap but I am busy right now. Will get back to you if I fixed the bug. Sorry for the inconvenience!

@CharlEsterhuizen
Copy link

No worries, Knocking of for the weekend in a few mins. It will be tough but I think I can do a few compiles
without it. :)

@guteksan
Copy link
Author

Hi,
Unfortunately, I left work already so won't be able to provide more info till Monday. I did not update BuildVision manually, so I suppose it auto-updated after new version had been released. And when I tried reinstalling, the version was V2.0.0.92. Everything was performed via "Updates and Extensions" in Visual Studio. Apparently, every user with VS lower than 2017 may be affected through this auto-update...

@StefanKert
Copy link
Owner

Hey guys. Good news! I found the issue and pushed a Prerelease. I´ve tested it with Visual Studio 2013, 2015 and 2017, but I would really appreciate it if someone of you could verify that this bug is fixed. The .vsix file can be found here: https://github.com/StefanKert/BuildVision/releases/tag/v2.0.1

Please let me know if this is working for you. If everything is fine I will push this release to the marketplace.

Thanks guys for reporting this and also thanks for verifying that this is working now <3

Have a nice weekend!

@codeworrier
Copy link

Prerelease 2.0.1 now properly loads on VS 2015 and 2013, Win7 SP1 x64 ... nice!

@StefanKert
Copy link
Owner

Awesome :) Thanks for your feedback @codeworrier!

I'll see if i can come up with a push to the marketplace today!

@StefanKert
Copy link
Owner

Release 2.0.1 Is out now! Sorry for the inconvenience :) Should be working now with VS 2013 and VS 2015.

image

If you still have a problem with this reopen, I will close this for now.
If you got other feedback, feature requests or bugs please create an issue and let us know, we really appreciate any feedback :)

@guteksan
Copy link
Author

Just to confirm, version 2.0.1.98 has automatically updated from the online extensions repository and it is working. Meanwhile, some default settings, like showing buildvision window and showing progress on the taskbar, have changed, but I managed to find them and restore. Thank you for quick handling of this issue.

@StefanKert
Copy link
Owner

@guteksan sweet! Thanks for the feedback. Could you please create another issue with this problem, so that we can verify if this is indeed or a bug. Thanks!!

@guteksan
Copy link
Author

I don't really consider it a true bug, rather an inconvenience. But if it helps you to improve the plugin, I can create another issue.

@StefanKert
Copy link
Owner

@guteksan we really want to sort out every little issue. In fact, this could also be a design decision we´ve probably made. Just want to keep track of this and maybe start a discussion if this fits the needs of the end users or not :)

@markbrents
Copy link

Thanks for the quick fix. You don't realize how valuable BuildVision is until you don't have it

@StefanKert
Copy link
Owner

@markbrents glad it worked out :) if you got any further feedback or wishes please create an issue :) really appreciate any feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants