Welcome to MSDN Blogs Sign in | Join | Help

July 2004 - Posts

Friend Assemblies

You have some types in your assembly A. And you have some assembly B. You really want assembly B to see those types. But you don't want them to open to the world. What do you do? In v1.0 and v1.1, you will mark those types as public, and then decorate
Posted by junfeng | 9 Comments
Filed under:

What is new in remoting in .Net 2.0?

Matt Tavis told us what is new in remoting in .Net 2.0 in a newgroup post. http://communities.microsoft.com/newsgroups/previewFrame.asp?ICP=whidbey&sLCID=US&sgroupURL=microsoft.private.whidbey.remoting&sMessageID=%253CWQFwN41bEHA.2924@cpmsftngxa06.phx.gbl%253E
Posted by junfeng | 0 Comments
Filed under:

KB Article 312546: Managed .exe File Sporadically Fails to Run over HTTPS

KB 312546 says running managed executable through HTTPS may not work. http://support.microsoft.com/default.aspx?scid=kb;EN-US;312546 This is causing some confusion. Exactly when things will not work? Our core developer explains it below: The reasons for
Posted by junfeng | 0 Comments
Filed under:

Whidbey breaking change --- Caching binding failures

This is one of the breaking change mentioned in gotdotnet.com's break change from .Net 1.1 to 2.0 Cache load failures in order to ensure that different app domains do not have different dependency loading success/failure characteristics in domain neutral
Posted by junfeng | 8 Comments
Filed under: ,

Assembly.Load* now apply policy

Gotdotnet.com has a link to the breaking change from .Net framework 1.1 to .Net framework 2.0. It does not include everything. This one is missing from the link. In .Net framework 1.1, there are Assembly.Load(String), Assembly.Load(AssemblyName) , Assembly.LoadFrom(),
Posted by junfeng | 3 Comments
Filed under: ,

AppDomain.ApplyPolicy

If you have dealt with assembly loading, chances are you have asked this question: How do I know which assembly CLR will really load if I ask it to load some assembly? In .Net framework 1.0 and 1.1, there is really no good way other than load the assembly.
Posted by junfeng | 4 Comments
Filed under: ,

MultiModule Assemblies

If you are programming with .Net framework, you will deal with Assemblies all the time. After all, assemblies are the building blocks of .Net framework. Assemblies can have single file , or can have multiple files . We typically refer an assembly with
Posted by junfeng | 9 Comments
Filed under:

Can .NET framework 2.0 assemblies run under .Net framework 1.1?

Short answer: NO. Long answer: In .Net framework 2.0 many features are added. Many features(Generics first comes to mind) warrant a medata format change. As a result, .Net framework 1.0 and 1.1 will not recognize assemblies compiled with .Net framework
Posted by junfeng | 9 Comments
Filed under:

Dynamic PInvoke

CLR provides platform invoke mechanism to enable managed applications to call unmanaged APIs exported in a DLL. Here is a simple example: using System.Runtime.InteropServices; public class HelloWorld { public static void Main() { MessageBox(0, "Hello
Posted by junfeng | 8 Comments
Filed under:

How to enable CLR Server GC?

This is one of the mostly asked questions about CLR GC. CLR's GC has two modes: Server GC and WorkStation GC. The difference is discussed briefly in Gregor Noriski's MSDN article about writing high performance managed application( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/highperfmanagedapps.asp
Posted by junfeng | 9 Comments
Filed under:
 
Page view tracker