I'm developing a C# .NET assembly (name: A.exe) which needs to be delay signed and then fully signed by a third party company. In order to delay sign I use the public key.
Assembly A references assemblies B.Core.dll, B.Common.dll, B.Logging.dll which are part of a common library. B-assemblies aren't delay signed, so I use ildasm/ilasm to disassemble them and reassemble delay-signed.
I submitted A.exe and B.Core.dll, B.Common.dll, B.Logging.dll and they are now fully signed, however when A starts it complain with error:
Could not load file or assembly 'Assembly B1 PublicKeyToken=null'
The problem shouldn't be related to A.exe since it references delay signed assemblies (they have Strong Name property set to True), but I suspect the culprit is B.Core.
Indeed, B.Core references B.Common and B.Logging, while B.Common and B.Logging are independent each other.
The cause of the error might be that B.Core was initially built using a non-signed B.Common assembly and then disassemble and reassemble all the three assemblies didn't change references...
In order to solve the problem, what I was thinking to do is merging all the four assemblies into one single delay signed assembly as a post build step of A. Do you think it will work?
One thing to keep in mind is that B.Core uses .NET MEF to dynamically load exported interfaces from A. Will this process present any issue?
Thanks in advance for your help
Delay signed assemblies chain
267 Views Asked by peval27 At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in .NET
- Does compiler optimize operation on const variable and literal const number?
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- .net rest service with JSON string and consumed with java client
- What is best way to check if any of the property of object is null or empty?
- Telerik's WPF RadColorPicker NoColorText property not working
- Possible consequences of duplicate ProgId for different classes
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Optimizing C++ call from C#
- Make a per-web-application object available to Web API and SignalR controllers
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- LINQ Except/Distinct based on few columns only, to not add duplicates
- Not displaying content by its URL string - absolute urls
Related Questions in MEF
- Entity Framework and abstract class
- MEF import object in child class is NULL
- What is the correct way to use app.config for my plugin when using MEF?
- C# Create plugins with their own settings
- In a VSIX package, how can I reuse the existing MEF for my dependency container?
- EF6: Schema specified is not valid; ambiguous mapping
- Unable to resolve Autofac dependencies from a Mef CompositionContainer when used according to documentation
- Can Autofac compose existing objects with Mef dependencies?
- How to install/get started with MEF 2
- MEF composition with multiple interdependent parts
- Bug in Autofac MEF integration: Instantiates component when only querying for metadata
- .NET MEF: part versioning
- Xamarin and Managed Extensibility Framework (MEF)
- Reusing ViewModel with single View-Instance
- In ASP.NET Core, does the IoC ASP Startup Class solve what the Managed Extensibility Framework solved with a catalog and container?
Related Questions in STRONGNAME
- Strong name errors running Roslyn from source on Azure
- Unable to load dll after it was signed
- Adding a strong name to 3rd party assembly break on deployment?
- Why shouldn't Strong Naming be used for Security?
- .net - Added a strong named assembly, but it is looking for unsigned assembly
- Retrieve strong name of .NET assembly in Inno Setup
- Validation of strong names only uses public key token?
- How does signing with a strong name protect against forging a set of assemblies?
- InternalsVisibleTo for dynamically generated assembly, but with strong naming
- How do I update a Strongly-Named DLL within an ASP.NET website to use a newer version of delay signed DLL?
- Strongly named assemblies in bin folder on ASP.NET 2.0
- VS2008 not getting correct reference for recompiled assemblies
- Registered an Assembly for COM, but only works on dev computer
- .net: When i update the assembly version, it said: Could not load file or assembly. A strongly-named assembly is required
- How to reference assembly from GAC?
Related Questions in STRONG-NAMED-KEY
- Trying to include Strong Name dll's to for level 2 security transparency model
- Why is the "Issued to" and "Issued by" fields are numbers instead of my name? in Visual Studio when signing a program
- FileLoadException and strong assembly signing
- .Net DLL reference error (after strong name sign)
- How to strong name assemblies when publishing to a single file (.exe) in Visual Studio
- Strong Name sn.exe: Failed to install key pair -- Object already exists
- Unit testing strongly named class library
- Must Reenter PFX Password Every Time Developer Pulls Branch from TFS Workaround?
- Assigning Strong Name to Third Party DLL
- Requiring self signed certificate when referencing the Twilio dll
- Access a strong name key (pfk) password in an AfterBuild event
- Simplest way to prevent someone from loading my managed assembly?
- Should I resign the assembly with a new strong name key?
- Strongly Named Assembly Validation Works Locally But Fails On A Test Device
- StrongName a .NET assembly without access to original keyfile
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I found a solution: I managed to use ILMerge to merge the four assemblies into one, therefore everything worked as expected. Even debug symbols were "merged" into a single PDB file (the trick was to have B.Core.pdb, B.Common.pdb and B.Logging.pdb in the same folder of the respective assemblies).
MEF did the work without complaining.