Welcome to SpellCoder Sign in | Join | Help

CLR Hosting, one of .net Secrets

Have you ever thought of how ASP.net works on top of IIS ?
think again, IIS is an unmanaged application while ASP.net assemblies are managed.!!!!
another example,
How MS Office and MS Visual Studio run plugins that were written in .net languages, while both office and visual studio are unmanaged applications ?
another example,
How MS Sql Server 2005 loads managed assemblies and uses them as stored procedures (SQL-CLR) ?

So, I think now you got my idea, .net framework can be used from unmanaged processes, now the question is HOW ?

The answer is that .net framework is actually developed as COM server contained in a DLL; so there are some COM interfaces defined for .net with assigned GUID's, if you want to find these GUID's and interfaces just search for the mscoree.h file, which comes with .net framework SDK.

For more details about CLR hosting on unmanaged process check
http://msdn.microsoft.com/msdnmag/issues/06/08/CLRInsideOut/#S2
and also
http://msdn.microsoft.com/msdnmag/issues/06/04/Deadlocks
kick it on DotNetKicks.com
StumbleUpon Toolbar Stumble It!
Published Monday, February 12, 2007 5:29 PM by Mohammed Hossam
Filed Under:

Comments

# re: CLR Hosting, one of .net Secrets

Wednesday, February 14, 2007 3:06 AM by MohamedElSayed
Nice Trick ya Bashmohandes ;).
Keep Up the good work.

# re: CLR Hosting, one of .net Secrets

Thursday, February 15, 2007 4:33 AM by AJDOTNET
Perhaps it may interest you that IIS 7 is turned upside down. It's implemented in .NET and supports ISAPI via a module. (see http://www.iis.net). This may be symptomatic for the evolution of (serverside) applications during the next years.

# re: CLR Hosting, one of .net Secrets

Saturday, February 17, 2007 1:45 PM by MohamedElSayed
by the way
take a look at this WebCast
it
Title:"Hosting CLR in your unmanaged applications".
URL:http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032301851&EventCategory=5&culture=en-US&CountryCode=US
Anonymous comments are disabled