Questions tagged [side-by-side]

Side-by-side Assemblies are a Microsoft Windows solution that reduces versioning conflicts in Windows-client applications.

Side-By-Side (SxS) assemblies allow application developers to isolate the DLL resources used by their application and avoid "DLL-Hell" and other COM compatibility issues caused by multiple applications using different versions of dependency DLL files.

With Windows, application developers can build isolated applications that are fully self-describing and unaffected by changes to the registry, other applications, or other versions of assemblies running on the system. Application authors and administrators can use manifests to manage the sharing of side-by-side assemblies after deployment on either a global or per-application basis.

See also Microsoft Learn article: Isolated Applications and Side-by-Side Assemblies

211 questions
1
vote
1 answer

Deploying Visual C++ library DLLs as private assemblies

This page has instructions how to deploy a local copy of VC++ 2008 libraries with your app, to avoid having to install 3rd-party vcredist. This is useful to me because it would let me send a zipped folder to users they can run without having to use…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
1
vote
1 answer

Why does a newer version of the PowerShell module run when I import with -MaximumVersion set to a lower version?

I have a build script that depends on an older version of one of our modules. Version 1.0.1. I added -MaximumVersion 1.0.1 to the Import-Module command. When the build script runs it fails and error shows that it is running code in version 2.1.0 of…
Matthew MacFarland
  • 2,413
  • 3
  • 26
  • 34
1
vote
1 answer

Map Swipe Tool with Google Maps API

I am trying to build side by side map swipe tool like this one. I have the UI working. I need help on getting the map layer change. I get the map id and map token from Earth Engine from this function ee.data.getMapId(params, callback). I am using it…
1
vote
2 answers

Visual c# project fails to run due to different versions of the same assembly

My c# application uses two different pre-packaged parsers, that each use a different strong version of Antlr.Runtime.dll. The application throws a FileLoadException, apparently because it correctly loaded only one of the versions and could not find…
bright
  • 4,700
  • 1
  • 34
  • 59
1
vote
1 answer

Side-by-side config error: developer fix?

I am a schoolteacher, and I wrote a demo program intending to let my students use it. But when run on school laptops I got, "The application has failed to start because its side-by-side configuration is incorrect" Now I've read about several…
Joymaker
  • 813
  • 1
  • 9
  • 23
1
vote
2 answers

Error: "Application has failed to start because its side-by-side configuration is incorrect"

I have created an MFC application using Visual Studio 2008 which is working fine on Windows XP. But when I try to execute the same EXE file in Windows Vista I am getting: Error: Application has failed to start because its side-by-side configuration…
Simsons
  • 12,295
  • 42
  • 153
  • 269
1
vote
1 answer

Side-by-side execution and MS Unit Test

Environment here is C#/.Net 4. In my MS Unit Test unit test project I'm testing a piece of code which uses a COM dll for some date conversion calculations (this in turn uses some other COM DLLs so in all three COM DLLs are involved). When running in…
Jesper
  • 51
  • 2
1
vote
1 answer

Why does windows side by side (winSxS) install policy for auto upgrade when there are known issues between versions?

We have an app compiled using MSVC 2K5, SP1 (version 762 msvcrt80) All is well, right up until somebody installs on the same machine .Net3.0SP1, and along with it msvcrt80 version 1433 is installed and a policy to automatically upgrade. Now we have…
Greg Domjan
  • 13,943
  • 6
  • 43
  • 59
1
vote
1 answer

What are limitations of side-by-side COM?

We need to adapt our application to be usable through ClickOnce. The application consists of a .exe file, and a huge set of Visual C++ libraries, some of them are in-proc COM servers used by other libraries. Currently our installer does regsvr32 to…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
1
vote
5 answers

Unable to load C++ DLL in C# application in Vista x64

I have a DLL written in C++ that needs to be used by an application in C#. It works great under Vista x86, but under x64 it fails to load. So I build an x64 version of the DLL and I detect whether the OS is x86 or x64 and use the appropriate interop…
Jon Tackabury
  • 47,710
  • 52
  • 130
  • 168
1
vote
1 answer

Registration-free COM When Dll Located in Separate Folder

This question has been asked before on SO for example here and here. The scenario is that one wants to use a COM component in their application without having to register the COM component on the machine. This is accomplished by adding two manifest…
Farhad Alizadeh Noori
  • 2,276
  • 17
  • 22
1
vote
1 answer

What happens if a .NET 1.1 and .NET 2.0 COM object are used in the same process?

If a process loads both a .NET 1.1 COM object and a .NET 2.0 COM object, both using an in-process server, what happens? Does anything break with this configuration? Or would it be safer to make one of the objects an out-of-process server?
bdonlan
  • 224,562
  • 31
  • 268
  • 324
1
vote
2 answers

Any drawbacks in using LoadLibraryEx() instead of CoCreateInstance() for reg-free COM component consumption?

Our program needs to consume the COM server which is also made by us. The scenario is the following: the installer will copy both the program files and the COM server files into the same folder on each install. Currently we use regsvr32 to register…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
1
vote
1 answer

Can I use manifests to consume a COM server without specifying its version?

Two of our programs use the same COM server (also made by us) with the same class ids. Each program when installing copies the COM server files into its folder and regsvr32s the COM server. The problem is how to install the COM server so that the…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
1
vote
1 answer

.NET 4 side by side problem

If the host program is compiled with .NET 4, but a referenced dll is .net 3.5. Then the target deploy machine need to install both .net 4 framework and .net 3.5 framework runtime?
Benny
  • 8,547
  • 9
  • 60
  • 93