Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Fusion   (RSS)

App Config’s root element should be namespace-less

The root element for Application config file is <configuration> <?xml version="1.0" encoding="utf-8" ?> <configuration > </configuration> The application config file is shared with CLR and Windows SxS. SxS dictates
Posted by junfeng | 0 Comments
Filed under: ,

Assembly Loading and Authorization

CLR does not do anything special regarding authorization during assembly loading. It will try to access the file under the current user. However, if an assembly is already loaded, next time when the assembly is requested, CLR will return the assembly
Posted by junfeng | 0 Comments
Filed under: ,

Windows Vista Sxs Activation Context Cache

Sxs activation model is built on top of Actication Context. To create an activation context, use the API CreateActCtx. Activation Context is used very frequently in Windows. For example, a simple operation like start notepad, open the common file dialog,
Posted by junfeng | 6 Comments
Filed under: , ,

The Unusual Ref/Def Mismatch FileLoadException

One of my colleagues has experienced a very strange Ref/Def Mismatch FileLoadException (The located assembly's manifest definition does not match the assembly reference). After a long investigation, we finally track down the cause. To explain the problem,
Posted by junfeng | 1 Comments
Filed under: ,

The sequence of interactions between CLR loader and fusion during Assembly.Load

The following describes roughly the sequence of interactions between CLR loader and fusion during Assembly.Load() in .Net framework 2.0. 1. User calls Assembly.Load. 2. Loader pass the assembly reference to fusion. 3. Fusion checks to see if the assembly
Posted by junfeng | 3 Comments
Filed under: ,

64 bit gacutil.exe

32 bit gacutil.exe can install/uninstall/enumerate 64 bit assemblies for GAC, so there is really no need for 64 bit gacutil.exe.
Posted by junfeng | 1 Comments
Filed under: ,

BadImageFormatException maybe thrown when loading a valid assembly

We saw some cases when loading a perfect valid assembly, CLR may throw BadImageFormatException occasionally. In one particular case, we discover that it is caused by anti-virus scanners. Turn off the "Protection Against Unknown Threats" feature in the
Posted by junfeng | 0 Comments
Filed under: ,

RT_MANIFEST resource, and ISOLATION_AWARE_ENABLED

RT_MANIFEST Since Windows XP, Windows reserves a new type of resource RT_MANIFEST for SxS manifests. Within the RT_MANIFEST resource, Windows reserves ID 1-16. A binary cannot have two IDs of resource type RT_MANIFEST within 1-16. Windows will refuse
Posted by junfeng | 3 Comments
Filed under: ,

Diagnose SideBySide failures in Windows XP/Windows Server 2003

Since I published my article on how to diagnose SideBySide failures , I have received many feedbacks that since Sxstrace is not available in Windows XP/Windows Server 2003, it is hard to figure out what is wrong in Windows XP/Windows Server 2003. This
Posted by junfeng | 1 Comments
Filed under: ,

Activation Context Creation flow

The following describes how activation context is created currently in Windows XP/Windows Server 2003/Windows Vista. 1. CreateProcess/CreateActCtx is called. 2. CreateProcess/CreateActCtx does some validation, constructs a message, sends the message to
Posted by junfeng | 2 Comments
Filed under: ,

Genman32 – A tool to generate Sxs manifest for managed assembly for Registration Free COM/.Net Interop

Attached to this article is GenMan32, a tool to generate sxs manifest for managed assembly to use in registration free COM/.Net Interop scenario. (For more information about registration free COM/.Net interop, please read http://blogs.msdn.com/junfeng/archive/2006/05/17/595140.aspx
Posted by junfeng | 12 Comments
Filed under: , ,

Attachment(s): GenMan32.zip

GAC Temp and Tmp

I see people asking question about the Temp and Tmp directories under GAC. Yes they are temporary directory fusion uses during GAC Assembly installation and uninstallation. Tmp is used for installation, and Temp is used for uninstallation. The use of
Posted by junfeng | 5 Comments
Filed under:

Installing SxS assemblies in Vista

When installing SxS assemblies in Vista, you may experience MSI error 1935 , with HRESULT 0x80073715 . 0x80073715 is Win32 error ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT. // // MessageId: ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT
Posted by junfeng | 5 Comments
Filed under: ,

Touch the exe, after you added a manifest for it, in Vista

You are an enthusiastic and responsible developer. You love programming, and you love programming the right way. So you get the latest and greatest Windows Vista. You try your hard-worked amazing.exe application in Vista. Did not work. Apparently, amazing.exe
Posted by junfeng | 6 Comments
Filed under: , ,

Windows XP may reboot when encounter certain manifest files

If you are developing applications for Windows Vista using Visual Studio 2005, and you are adding Vista UAC manifest to your application, when your application runs on Windows XP with Service Pack 2 or Windows Server 2003 RTM (without SP1), Windows may
Posted by junfeng | 4 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker