Side-by-side manifest and a VC8 mixed .netmodule

B

Bern McCarty

I know how with VC8 you embed your linker generated manifest into an exe
with a resource ID of #1 and into a dll with resource ID #2. But what do
you do with the linker generated manifest for a mixed .netmodule? Do you
need to embed the it into the .netmodule? If so, with what ID? Or do you
merge the .netmodule linker generated manifest into the manifest that you
embed into the "assembly manifest containing" file?

I have a 2-file assembly. The primary file (the dll that contains the assembly
manifest) is written in C#. The .netmodule is mixed-mode, written in MEC++.
This all worked fine in my multi-domain applications until I recompiled
this multifile assembly with C# 2/VC 8. Now I find that a non-default app
domain cannot access the mixed .netmodule unless it is accessed first in
the default domain. I have a little console app that demonstrates this.
Here is the error:

Unhandled Exception: System.Runtime.Serialization.SerializationException:
Type is not resolved for
member '<CrtImplementationDetails>.ModuleLoadException,msvcm80, Version=8.0.50727.163,
Culture=ne
utral, PublicKeyToken=b03f5f7f11d50a3a'.
at Bentley.Repro.HostApp.UseMultiFileAssembly(String[] args)
at Bentley.Repro.HostApp.Main(String[] args) in c:\temp\MultiFileAssemblyRepro\MultiDomainHostA
pp\MultiDomainHostApp.cs:line 178

This all worked before VC 8.


Bern McCarty
Bentley Systems
 
G

Gary Chang[MSFT]

Hi Bern,

Based on the description, the problem is you have multifile assembly which
one is a mixed mode netmodules. when compile it under VS2005 there would be
an error while a non-default app domain try to access that mixed
netmodule's manifest. The same approach works well under VS2003. Please
correct me if I misunderstood anything.

Since the VS2005 uses the .NET Framework 2.0 and C++/CLI, there may some
related compatibility issue or break change problem in this case. But we
made need to perform some research to confirm it. Would you please provide
a self-alone sample solution (zipped) to repro this issue for test? You can
send that sample package to me directly.(Please remove the "online" of my
email address alias.)

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top