<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adventures With .Net &#187; unity</title>
	<atom:link href="http://adventureswith.net/tag/unity/feed/" rel="self" type="application/rss+xml" />
	<link>http://adventureswith.net</link>
	<description>C# and the like</description>
	<lastBuildDate>Tue, 15 Nov 2011 15:34:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Godaddy Hosting &#8211; Medium Trust vs Inversion of Control</title>
		<link>http://adventureswith.net/godaddy-hosting-medium-trust-vs-inversion-of-control/</link>
		<comments>http://adventureswith.net/godaddy-hosting-medium-trust-vs-inversion-of-control/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 01:32:29 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[IoC]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://AdventuresWith.Net/?p=54</guid>
		<description><![CDATA[Whatever I think of Godaddy, they haven’t caused me too much pain yet, just minor inconvenience. This time it’s my precious StructureMap. StructureMap, I like it and alot of people do, but it just won’t work under Medium Trust! So &#8230; <a href="http://adventureswith.net/godaddy-hosting-medium-trust-vs-inversion-of-control/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-550"></div></div><p>Whatever I think of Godaddy, they haven’t caused me too much pain yet, just minor inconvenience. This time it’s my precious StructureMap.</p>
<p>StructureMap, I like it and alot of people do, but it just won’t work under Medium Trust! So it’s either time to change Hosts, or change IoC container. Pretty obvious which one is the easier choice here. </p>
<p><strong>So what choice do you have? Well not much. So the answer is:</strong></p>
<blockquote><p><a href="http://unity.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=18855#DownloadId=47882" target="_blank">Unity from Microsoft Patterns &amp; Practices</a>*</p>
</blockquote>
<p><font color="#777777">Here’s a <a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=unity&amp;DownloadId=47882&amp;FileTime=128697897350700000&amp;Build=16135" target="_blank">nice manual</a> to go with it. </font></p>
<p>And what’s not able to be run in medium / partial trust:</p>
<blockquote><p>Windsor Castle     <br />Spring.Net      <br />StructureMap</p>
</blockquote>
<p>There was someone who was explaining how to download and build Spring.Net to allow it to run under Medium Trust, but that seems pretty likely to cause issues when you hack code (try to ignore my NHibernate post when I say that). </p>
<p>It may be the same for the other 2, but off the bat, Unity wins.</p>
<p>*Caveat: Unity is restricted in what it can do when run without ReflectionPermission (which is what Medium Trust disallows), but typically this won’t affect much from the normal IoC behaviour.&#160; The restrictions are explained on this <a href="http://msdn.microsoft.com/en-us/library/dd203232.aspx" target="_blank">MSDN doc</a>, but it’s to do with internal and private constructors and properties. If it’s public you should be sweet. </p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/godaddy-hosting-medium-trust-vs-inversion-of-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

