Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » .NetFramework » 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: ,

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: ,

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

Application config file is not used if the application has certain SxS manifest

We discovered a bug internally. Since people may encounter the same problem, I am posting the bug description and the workaround. In Windows Server 2003, if the application has the following SxS manifest, then CLR will not use the application config file
Posted by junfeng | 3 Comments
Filed under: ,

Assembly.GlobalAssemblyCache Property

Once you have an assembly loaded, you can use Assembly.GlobalAssemblyCache Property to determine if the assembly is loaded from GAC or not. I am surprised that not many people know about this property.
Posted by junfeng | 3 Comments
Filed under: ,

Registration Free COM/.Net interop

In my last article , I briefly discussed how COM, Sxs and CLR work together to make registration free COM/.Net interop possible. Today, I want to dive a bit deeper into this feature. Specifically, I want to discuss 1. How activation works end to end.
Posted by junfeng | 11 Comments
Filed under: , ,

COM activation, Registration Free COM activation, COM/.Net Interop, Registration Free COM/.Net Interop

COM is easily one of the most commonly used technologies in Microsoft Windows Platform. Many of Microsoft Windows’ capabilities are only exposed in COM. I do not claim to be a COM expert. But my work in Microsoft in the past and now do affect how people
Posted by junfeng | 10 Comments
Filed under: , ,

Multi-path on DEVPATH v2.0 QFE is available

See http://support.microsoft.com/default.aspx?scid=kb;en-us;915430&sd=rss&spid=8291 for more detail. The other problem reported by Isaac http://blogs.msdn.com/junfeng/archive/2005/12/13/503059.aspx#546000 [b] If you add the section <runtime>
Posted by junfeng | 0 Comments
Filed under: ,

Override CLR Assembly Probing Logic --- IHostAssemblyManager/IHostAssemblyStore

In .Net framework when resolve an assembly reference, CLR first checks GAC, then search the application directory in specific locations. ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconhowruntimelocatesassemblies.asp
Posted by junfeng | 3 Comments
Filed under: ,

disableCachingBindingFailures

In .Net framework 2.0, we will cache assembly loading failures. (See http://blogs.msdn.com/junfeng/archive/2004/07/22/190813.aspx for more detail.) Not everyone like the decision. To opt out this, add the following snippet to your app.config file. <configuration>
Posted by junfeng | 3 Comments
Filed under: ,

Assembly Delay Sign and Assembly Installation

Occasionally I receive questions about assembly delay sign and assembly installation (to GAC). In this post I’ll summary what I have seen. 1. I have this wonderful assembly foo. I made a nice MSI package to install this assembly to GAC, but it keeps failing
Posted by junfeng | 4 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker