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

BuildVision 3 does not load on VisualStudio 2015 #88

Closed
FilRip opened this issue Feb 24, 2020 · 5 comments
Closed

BuildVision 3 does not load on VisualStudio 2015 #88

FilRip opened this issue Feb 24, 2020 · 5 comments
Assignees
Labels

Comments

@FilRip
Copy link

FilRip commented Feb 24, 2020

Hello,

Since BuildVision is now on version 3, sometimes, VisualStudio launch but freeze when launching by double click on a .sln file. But load with success when i launch VisualStudio then load the sln by select it in VS menu "File/Open/projet or solution"

So i have try to uninstall BuildVision, restart VS then reinstall BuildVision and restart VS.

I go to "View/Others Windows/BuildVision" but i have this error : the package BuildVisionPackage can't be correctly loaded (in french, so this is my English translation). "The problem can be due to modification of the configuration, or because of install another extension. For more information, check ...ActivityLog.xml"

And so, there is the entry in ActivityLog.xml :
"Begin package load [BuildVisionPackage]"
"CreateInstance failed for package [BuildVisionPackage]Source: 'mscorlib' Description: Une exception a été levée par la cible d'un appel. System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.MissingMethodException: Méthode introuvable : 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'.à BuildVision.Common.Logging.LogManager.CreateLogger()à System.Lazy1.CreateValue()à System.Lazy1.LazyInitValue()à System.Lazy1.get_Value()à BuildVision.Common.Logging.LogManager.ForContext(Type type)à BuildVision.Common.Logging.LogManager.ForContextTà BuildVision.Core.BuildVisionPackage..ctor() --- Fin de la trace de la pile d'exception interne --- à System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)à System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)à System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)à System.Activator.CreateInstance(Type type, Boolean nonPublic)à System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)à System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)à System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)à System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.MissingMethodException: Méthode introuvable : 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'.à BuildVision.Common.Logging.LogManager.CreateLogger()à System.Lazy1.CreateValue()à System.Lazy1.LazyInitValue()à System.Lazy1.get_Value()à BuildVision.Common.Logging.LogManager.ForContext(Type type)à BuildVision.Common.Logging.LogManager.ForContextTà BuildVision.Core.BuildVisionPackage..ctor()"

Of course, restart computer and/or VisualStudio does nothing. And i had no problem in v2.x before.

Thank you for your help.


My VS : VisualStudio Pro 2015
Version 14.0.25431.01 Update 3
Others extensions installed (dont know if it's important) :

  • AutoDeploy
  • Microsoft Child Process Debugging
  • Color Theme Designer
  • GitExtensions
  • Smart Command Line Arguments
  • TortoiseGit Toolbar
  • Viasfora
@PeterJeff
Copy link

PeterJeff commented Feb 24, 2020

I am also having this problem with the same version of VS and the new BuildVision. Will swap back to using the 2.x.

@sstefan1
Copy link

Can confirm. VS2015 hangs for me as well.

@StefanKert
Copy link
Owner

Hey folks,

thanks for raising this. I will need to investigate this further. I´ll let you know as soon as there is an update available.

@bdbvb
Copy link

bdbvb commented Mar 11, 2020

Just an FYI, I'm getting this same issue with Visual Studio 2019 (16.4.6), and can't (usually) get BuildVision to come up, though Visual Studio itself as well as other extensions are OK. The activity log message is:

"CreateInstance failed for package [BuildVisionPackage]Source: 'mscorlib' Description: Exception has been thrown by the target of an invocation. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'. at BuildVision.Common.Logging.LogManager.CreateLogger() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at BuildVision.Common.Logging.LogManager.ForContext(Type type) at BuildVision.Common.Logging.LogManager.ForContextT at BuildVision.Core.BuildVisionPackage..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo) at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.MissingMethodException: Method not found: 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'. at BuildVision.Common.Logging.LogManager.CreateLogger() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at BuildVision.Common.Logging.LogManager.ForContext(Type type) at BuildVision.Common.Logging.LogManager.ForContextT at BuildVision.Core.BuildVisionPackage..ctor()
--"

@StefanKert StefanKert added this to the 3.0.1 milestone Mar 14, 2020
@StefanKert StefanKert added the bug label Mar 14, 2020
@StefanKert StefanKert self-assigned this Mar 14, 2020
StefanKert added a commit that referenced this issue Jul 17, 2020
…fallback value for logging if the package cannot be loaded correctly. If this fails we just return a plain logger and don´t log to a file.
@StefanKert
Copy link
Owner

This should be fixed with the new version 3.0.1. If you are still seeing issues please let me know :)

Thank you a lot for your patience and sorry for the very long time taken for this fix.

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