Re: How to Deploy WinSxS assemblies as Private assemblies?
Let me stress it as plainly as possible:
The WHOLE POINT of the Side-by-Side (WinSxS) architecture is so that you can have multiple versions
of the same DLL side-by-side with each other, to avoid the conflicts that arose in the previous
decade called "DLL Hell". Each version has its own folder which is version, processor, and
culture-specific. The Windows developers went to great lengths to help you avoid the very problem
you are trying to avoid. Don't avoid the solution.
"immi" <i4innocent@gmail.com> wrote in message
news:75758c0a-4a08-4020-99c8-358e142bee6e@x31g2000prc.googlegroups.com...
Hi,
I am using an application built in Visual C++. The application is
using shared WinSxS assemblies, which require these assemblies to be
placed in C:\Windows\WinSxS folder. But, in order to avoid any
conflict of these assemblies with assemblies having same name but
different versions, I want to use these as Private Assemblies. For
this purpose, I have placed these assemblies and their required
manifest files in application?s local folder instead of C:\Windows
\WinSxS and C:\Windows\WinSxS\Manifests folders respectively. However,
the required Policy files are still placed in C:\Windows\WinSxS
\Policies folder. It works fine but redirects some earlier versions of
same assemblies causing the associated applications not working
properly. I want my policy files to be placed privately as well
(application?s local folder). Is there any way to implement same
security policies without putting these in C:\Windows\WinSxS\Policies
folder?
I have also read about use of Application Configuration files in place
of Policy files. I have used so but it did not work. Is there any
special settings done inside the application for Application
Configuration Files? Can anyone help me or send me some sample
Application Configuration Files which can serve me in this regard.
Another thing I would like to ask that if any application has certain
policy file placed in C:\Windows\WinSxS\Policies folder. Now, If
another policy file with same name but higher version is also present
there having redirection for all the earlier versions. Can any one
tell me that the application would be using its own policy file or
will be redirected to the higher version policy file? What is the
searching mechanism/hierarchy for Policy Files?
Thanks.