Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bern McCarty - 09 Nov 2006 21:42 GMT
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
Gary Chang[MSFT] - 10 Nov 2006 05:35 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.