Bug with Visual Studio in the latest

Hello,
when trying to load any Oxygene solution with the latest version of Elements (.2869), on VS 2022:
image
And I need to kill VS.

In the activity log, I have:

CreateInstance failed for package [OxygeneProjectPackage]Source: 'mscorlib' Description: Could not load file or assembly 'RemObjects.Elements.VisualStudio.Project.17, Version=12.0.0.2869, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'RemObjects.Elements.VisualStudio.Project.17, Version=12.0.0.2869, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098' or one of its dependencies. The system cannot find the file specified. File name: 'RemObjects.Elements.VisualStudio.Project.17, Version=12.0.0.2869, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098'
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.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture, Object activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName) at System.AppDomain.CreateInstance(String assemblyName, String typeName)

Looking at the C:\Program Files (x86)\RemObjects Software\Elements\Bin folder, I don’t see this file:
image

Reverting to previous version.

Hmm, so only RemObjects.Elements.VisualStudio.Project.14.dll is there, not 16 and 17?

Exactly,
The screenshot contains all the assemblies that start with RemObjects.Elements.VisualStudio.

Hmm, after a cursory look at the install script, this can only be a failed install, not an actual bug — as nothing changed in the installer, really, between 28667 and 2869. Can you try just re=running the installer? maybe with the /log option to get a full detailed log fine with any errors?

Patrick, the RemObjects.Elements.VisualStudio.Project.17.dll is supposed to be in another place. Could you please check that you have it installed in extensions folder, e.g.
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\RemObjects Software\RemObjects Elements ProjectType\1.0

If the file is there, try to remove the ComponentModelCache folder here: C:\Users\UserName\AppData\Local\Microsoft\VisualStudio\17.0_3fc9cbef

Hope it helps.

1 Like

Hi Viktoria,
As I have to reinstall Elements, I will try tomorrow morning.

Hi Viktoria,
Reinstalled the last version now and I can load an Elements project.
Very strange.

1 Like

happy to hear!

i believe this is a known/common buig in Visual Studio. that it gets its cache confused… :frowning: