<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Code-Inside Blog International</title>
	
	<link>http://code-inside.de/blog-in</link>
	<description>Blogging about ASP.NET, .NET &amp; C#</description>
	<lastBuildDate>Sun, 19 May 2013 06:48:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Code-InsideBlogInternational" /><feedburner:info uri="code-insidebloginternational" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Json-Online-Tools: Viewer &amp; Json2Csharp generator</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/tgHGXYzn4vM/</link>
		<comments>http://code-inside.de/blog-in/2013/05/19/json-online-tools-viewer-json2csharp-generator/#comments</comments>
		<pubDate>Sun, 19 May 2013 06:47:45 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/?p=1091</guid>
		<description><![CDATA[&#160; Wherever APIs are mentioned the JSON format I not far away. Since I’m using two tools regularly I would like to introduce you to them. JSON Viewer If you only see the JSON-Text you are usually not able to see the structure. With the help of JSON Viewer you can have an easy overview: ...]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image1837-568x194.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image1837-568x194" src="http://code-inside.de/blog-in/wp-content/uploads/image1837-568x194_thumb.png" border="0" alt="image1837-568x194" width="545" height="198" /></a></p>
<p>Wherever APIs are mentioned the JSON format I not far away. Since I’m using two tools regularly I would like to introduce you to them.</p>
<p><strong>JSON Viewer</strong></p>
<p>If you only see the JSON-Text you are usually not able to see the structure. With the help of JSON Viewer you can have an easy overview: [<a href="http://jsonviewer.stack.hu/">URL</a>]</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image1837.png" border="0" alt="image" width="568" height="564" /></p>
<p>&nbsp;</p>
<p><strong>JSON2CSharp</strong></p>
<p>The name says everything: with this tool you can easily transform JSON into CSharp code. That’s pretty useful if you are, for example building the opponent to a JSON-API and want to work with the results. [<a href="http://json2csharp.com/">URL</a>]</p>
<p>&nbsp;</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image1838.png" border="0" alt="image" width="560" height="602" /></p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/tgHGXYzn4vM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/05/19/json-online-tools-viewer-json2csharp-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/05/19/json-online-tools-viewer-json2csharp-generator/</feedburner:origLink></item>
		<item>
		<title>Windows Phone SDK &amp; „System“-Icons</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/v-TPS166EEk/</link>
		<comments>http://code-inside.de/blog-in/2013/05/08/windows-phone-sdk-system-icons/#comments</comments>
		<pubDate>Wed, 08 May 2013 16:16:11 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/?p=1087</guid>
		<description><![CDATA[&#160; Although the Metro Design focuses a lot on Typography Icons are still quite important. If you install Windows Phone SDK you will receive 36 Icons. You can find them here: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons Unfortunately many Icons you might know from the common applications are not integrated. Pedro Lamas extracted 99 additional Icons ...]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><img title="image.png" src="http://code-inside.de/blog/wp-content/uploads/image1832-570x194.png" alt="image.png" width="570" height="194" /></p>
<p>Although the Metro Design focuses a lot on Typography Icons are still quite important. If you install Windows Phone SDK you will receive 36 Icons. You can find them here:</p>
<p><em>C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons</em></p>
<p>Unfortunately many Icons you might know from the common applications are not integrated. <a href="http://www.pedrolamas.com/">Pedro Lamas</a> extracted 99 additional Icons from the App-Resources and offers them <a href="http://www.pedrolamas.com/windows-phone/windows-phone-8-application-bar-icons/">as a download</a>.</p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/v-TPS166EEk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/05/08/windows-phone-sdk-system-icons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/05/08/windows-phone-sdk-system-icons/</feedburner:origLink></item>
		<item>
		<title>How can I figure out if my ADFS 2.0 works?</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/QTycnGu5oHs/</link>
		<comments>http://code-inside.de/blog-in/2013/04/29/how-can-i-figure-out-if-my-adfs-2-0-works/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 15:11:10 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/?p=1085</guid>
		<description><![CDATA[&#160; I was working with ADFS 2.0 (“Active Directory Federation Services”) for a while when this simple question crossed my mind: How can I figure out if the connection between ADFS and AD “works”? Here is a simple test… What is ADFS? If you need some “position of trusts” beneath the AD-boarders you choose an ...]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I was working with <a href="http://technet.microsoft.com/en-us/library/adfs2(v=ws.10).aspx">ADFS 2.0 (“Active Directory Federation Services”)</a> for a while when this simple question crossed my mind: How can I figure out if the connection between ADFS and AD “works”? Here is a simple test…</p>
<p><strong> </strong></p>
<p><strong>What is ADFS?</strong></p>
<p>If you need some “position of trusts” beneath the AD-boarders you choose an Active Directory Service in the world of Microsoft. They are communicating between the dispatcher (own company-AD) and receiver (another AD or a big “center” like for example <a href="http://en.wikipedia.org/wiki/Access_Control_Service">the Windows Azure Access Control Service</a>) and issues claims for the registered user. Maybe this isn’t 100% accurate and maybe my choice of words doesn’t fit 100% but that’s how I understand the system <img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style: none;" src="http://code-inside.de/blog-in/wp-content/uploads/wlEmoticon-winkingsmile53.png" alt="Zwinkerndes Smiley" /></p>
<p><strong> </strong></p>
<p><strong>So, how do I test the functionality of the ADFS?</strong></p>
<p>The ADFS uses the IIS to host his own end points. There is also a simple Login-page that every user can use:</p>
<p><strong><a href="https://%7badfs-fqdn%7d/adfs/ls/IdpInitiatedSignon.aspx">https://{ADFS-FQDN}/adfs/ls/IdpInitiatedSignon.aspx</a></strong></p>
<p>Afterwards a simple „Login-Page“ appears – after one click on „login“ you should see something:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb983.png" border="0" alt="image" width="558" height="252" /></p>
<p>If this site appears without username/Password the login works over Kerberos – otherwise you should use NTLM.</p>
<p>If <strong>everything goes wrong</strong> (or the configuration database is “broken”) you will receive an error message like this:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb984.png" border="0" alt="image" width="550" height="225" /></p>
<p><strong></strong></p>
<p><strong>What you can test with it</strong></p>
<p>With that you just make sure that the configuration/connection between ADFS and your own AD “works” – not more – but it is possible that the problems appear already at this point. If the “opposite site” woks or not is another question.</p>
<p><strong>I have an ADFS proxy running – what’s next?</strong></p>
<p>Basically you test the “main” ADFS first and later you have a look from a different machine which is only looking at the Proxy to make sure the Login works. Afterwards it goes on until the “customer”.</p>
<p>In this blogpost you will find a better description (and I think that’s also where I found the advice): <a href="http://www.dagint.com/2011/10/how-to-test-if-adfs-is-functioning/">How to test if ADFS in functioning</a></p>
<p><strong>Troubleshooting</strong></p>
<p>I had some problems with the ADFS which are not totally solved but I still found some links which might be helpful for someone:</p>
<p><a href="http://social.technet.microsoft.com/wiki/contents/articles/1600.ad-fs-2-0-how-to-change-the-local-authentication-type.aspx">AD FS 2.0: How to Change the Local Authentication Type</a></p>
<p><a href="http://social.technet.microsoft.com/wiki/contents/articles/ad-fs-2-0-how-to-configure-the-spn-serviceprincipalname-for-the-service-account.aspx">AD FS 2.0: How to Configure the SPN (servicePrincipalName) for the Service Account</a></p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/QTycnGu5oHs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/04/29/how-can-i-figure-out-if-my-adfs-2-0-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/04/29/how-can-i-figure-out-if-my-adfs-2-0-works/</feedburner:origLink></item>
		<item>
		<title>Subdomain vs. Subdirectory</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/XaRkOZD8L0E/</link>
		<comments>http://code-inside.de/blog-in/2013/04/16/subdomain-vs-subdirectory/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 09:40:48 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2013/04/16/subdomain-vs-subdirectory/</guid>
		<description><![CDATA[&#160; Better blog.mydomain.com or mydomain.com/blog? Good question! If got asked this question again via Twitter on the weekend so therefore I decide to share my experiences: &#160; Choose a subdomain, if…. - You plan to offer “different services” which are “logical separated” on one domain - You are able to influence the subdomains without much ...]]></description>
			<content:encoded><![CDATA[<p>&nbsp;
<p><b></b>
<p>Better blog.mydomain.com or mydomain.com/blog? Good question! If got asked this question again via <a href="https://twitter.com/Cayas_Software/status/320208299805011968">Twitter</a> on the weekend so therefore I decide to share my experiences:
<p>&nbsp;
<p><b>Choose a subdomain, if….</b>
<p>- You plan to offer “different services” which are “logical separated” on one domain
<p>- You are able to influence the subdomains without much effort
<p>Example:
<p>Blog.mydomain.com
<p>Shop.mydomain.com
<p>Forum.mydomain.com
<p>&nbsp;
<p><b>Why?</b>
<p>If you choose to use subdirectories it is much more difficult to age these services. It is easier to create a CNAME entry and with that for example blog.mydomain.com leads to Tumblr Blog and not to a machine. Also it is possible to run the different sites on several machines (without Loadbalancer and so on).
<p>&nbsp;
<p><b>Choose a subdirectory, if….</b>
<p>- You aren’t able to influent the subdomains (for example the whole applications-stack is installed at the customer but you don’t want the admin to unnecessary implement DNS-Settings
<p>- The Application-Intern or the site is too small to create an own WebApp (like an Impressum for example)
<p>&nbsp;
<p><b>What does Google think about this?</b>
<p>Here is a <a href="http://www.youtube.com/watch?v=_MswMYk05tk">statement</a> from a Google employee on YouTube.
<p>&nbsp;
<p><b>And what about Stackoverflow?</b>
<p><b></b>
<p>I really like this <a href="http://stackoverflow.com/questions/1965609/subdomain-vs-subdirectory-in-web-programming">answer</a>:
<p><i>Pro’s for subdomains:</i>
<p>· <i>You can isolate configuration (for for example apache) per-domain.</i>
<p>· <i>It will be easier to migrate parts of your application to other machines. </i><i>Sub-directories won’t really give you this flexibility.</i>
<p>· <i>Instead of having to use a $baseUri variable in every html template, you can just assume the root of the app is always /.</i>
<p><i>Cons:</i>
<p>· <i>It will be much more annoying to quickly setup staging or temporary development environments. For every ‘app’ you will now need DNS of hosts-file entries and webserver configuration. With subdirectories you could drop the app in a directory, and go!</i>
<p>· <i>If you do ever have the requirement to deploy your application on a different system where using / is because of some odd policy not possible, some rewriting might be in order.</i>
<p><i>My advice:</i>
<p><i>Make sure you can always do both, which will give you the best of both worlds. Every part of your app should have a configurable base uri that is always respected. As long as you make sure you can always go both ways, then who cares what you do? it’s just a url and it can always be changed.</i>
<p><b></b>&nbsp;
<p><b>But aren’t you using code-inside.de/blog yourself?</b>
<p><b></b>
<p>Well – when I created this blog some years ago I just didn’t know it better. The problem with a change would be that the old Links still have to work and I’m not sure how Google would take the news.
<p>Therefore: think about this before you start <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Zwinkerndes Smiley" src="http://code-inside.de/blog-in/wp-content/uploads/wlEmoticon-winkingsmile52.png"></p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/XaRkOZD8L0E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/04/16/subdomain-vs-subdirectory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/04/16/subdomain-vs-subdirectory/</feedburner:origLink></item>
		<item>
		<title>Guide to Claim-Based Identity with the Access Control Service</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/0zY0UZZk7HY/</link>
		<comments>http://code-inside.de/blog-in/2013/03/26/guide-to-claim-based-identity-with-the-access-control-service/#comments</comments>
		<pubDate>Tue, 26 Mar 2013 13:36:50 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/?p=1078</guid>
		<description><![CDATA[Microsoft published a free PDF about Claim-based Identity, Access Control Service and how to connect it to the remaining Microsoft world (Sharepoint, ADFS, Azure): Download-Link or MSDN Link I found the announcement today on the blog of Vittorio Bertocci. More information’s? If you want to get deeper into the subject you should risk a look ...]]></description>
			<content:encoded><![CDATA[<p>Microsoft published a free PDF about Claim-based Identity, Access Control Service and how to connect it to the remaining Microsoft world (Sharepoint, ADFS, Azure):</p>
<p><a href="http://www.microsoft.com/en-us/download/details.aspx?id=28362">Download-Link</a> or <a href="http://msdn.microsoft.com/en-us/library/ff423674.aspx">MSDN Link</a></p>
<p>I found the announcement today on the <a href="http://www.cloudidentity.com/blog/2013/03/18/now-on-amazon-a-guide-to-claims-based-identity-and-access-control-2nd-edition/">blog of Vittorio Bertocci</a>.</p>
<p><strong>More information’s?</strong></p>
<p><strong> </strong></p>
<p>If you want to get deeper into the subject you should risk a look on <a href="http://www.cloudidentity.com/blog/2013/03/18/now-on-amazon-a-guide-to-claims-based-identity-and-access-control-2nd-edition/">Vittorios Blog</a>. You may be also interested in his <a href="http://channel9.msdn.com/Events/Patterns-Practices-Symposium-Online/pattern-practices-symposium-2013/Windows-Azure-Active-Directory">Video about Windows Azure Active Directory</a>.</p>
<p><strong>From SAML to JWT</strong></p>
<p><strong> </strong></p>
<p>What is not included in the PDF but might become a trend anyway is the renunciation from SAML and to <a href="http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html">JWT</a>. I recommend <a href="http://www.cloudidentity.com/blog/?s=JWT">Vittorios Blog</a> again and the <a href="http://msdn.microsoft.com/en-us/library/windowsazure/jj573266.aspx">Windows Azure Authentication Library</a>.</p>
<p>Unfortunately there are not so many sources for information’s about this at the moment so you won’t be able to avoid his blog anyway <img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style: none;" src="http://code-inside.de/blog-in/wp-content/uploads/wlEmoticon-winkingsmile51.png" alt="Zwinkerndes Smiley" /></p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/0zY0UZZk7HY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/03/26/guide-to-claim-based-identity-with-the-access-control-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/03/26/guide-to-claim-based-identity-with-the-access-control-service/</feedburner:origLink></item>
		<item>
		<title>Windows Azure Websites – Logging &amp; ErrorHandling</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/A3loPliEVt4/</link>
		<comments>http://code-inside.de/blog-in/2013/03/14/windows-azure-websites-logging-errorhandling/#comments</comments>
		<pubDate>Thu, 14 Mar 2013 14:40:32 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/?p=1072</guid>
		<description><![CDATA[The Azure Websites are easy to handle but still it doesn’t take much effort to add new instances. But how should I react if an error appears? Azure Website Configuration At the adjustments of Azure Websites you will find three diagnostic-tools: · Detailed Error Logging – Turn on detailed error logging to capture all errors ...]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://code-inside.de/blog/2013/03/02/windows-azure-websites-git-hosting-deployment-leicht-gemacht/">Azure Websites</a> are easy to handle but still it doesn’t take much effort to add new instances. But how should I react if an error appears?</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb937.png" border="0" alt="image" width="575" height="239" /></p>
<p><strong>Azure Website Configuration </strong></p>
<p><strong> </strong></p>
<p>At the adjustments of Azure Websites you will find three diagnostic-tools:</p>
<p>· <strong>Detailed Error Logging</strong> – Turn on detailed error logging to capture all errors generated by your web site.</p>
<p>· <strong>Failed Request Tracing</strong> – Turn on failed request tracing to capture information for failed client requests.</p>
<p>· <strong>Web Server Logging</strong> – Turn on Web Server logging to save web site logs using the W3C extended log file format.</p>
<p><a href="http://www.windowsazure.com/en-us/manage/services/web-sites/how-to-monitor-websites/">Source: How to monitor web sites</a></p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb938.png" border="0" alt="image" width="578" height="390" /><strong> </strong></p>
<p><strong>Where are these Logs saved?</strong></p>
<p><strong> </strong></p>
<p>The logs are saved in a directory on the machine which is accessible via FTP. Therefore you have to change into the “Dashboard” and search for “FTP DIAGNOSTIC LOGS”. You will be asked for the Deployment-User (which is also responsible for the Git-Deployment) as Login!</p>
<p>&nbsp;</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb939.png" border="0" alt="image" width="398" height="164" /></p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb940.png" border="0" alt="image" width="395" height="333" /></p>
<p><strong> </strong></p>
<p><strong>I require more Logging- / Exception information’s </strong></p>
<p><strong></strong></p>
<p>Unfortunately the Error-Pages are not always constructive therefore you will quickly reach the point where you need the Logging framework.</p>
<p>ELMAH to the rescue!</p>
<p>I quickly decided for ELMAH including the additional <a href="https://github.com/alexanderbeletsky/elmah.mvc">ASP.NET MVC Integration</a>:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb941.png" border="0" alt="image" width="458" height="313" /></p>
<p>Now integrate the XmlFile-Provider into the web.config:</p>
<pre class="csharpcode">&lt;elmah&gt;
  &lt;errorLog type=”Elmah.XmlFileErrorLog, Elmah” logPath=”~/App_Data” /&gt;
&lt;/elmah&gt;</pre>
<p><!-- .csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } -->Now you are able to navigate to the page and the App_Data directory via FTP:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb942.png" border="0" alt="image" width="457" height="146" /></p>
<p>Of course Log4Net or NLog would work as well.</p>
<p><strong></strong></p>
<p><strong>Result:</strong></p>
<p>The Azure websites act basically like a normal web application on an ordinary IIS and therefore they have almost the same rules. You don’t need a totally different repertoire like with the Cloud Services (with the Table Storage and the Diagnostics).</p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/A3loPliEVt4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/03/14/windows-azure-websites-logging-errorhandling/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/03/14/windows-azure-websites-logging-errorhandling/</feedburner:origLink></item>
		<item>
		<title>PowerShell SnapIns vs. Modules</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/UESMR7QlQWA/</link>
		<comments>http://code-inside.de/blog-in/2013/03/08/powershell-snapins-vs-modules/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 14:54:47 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/?p=1065</guid>
		<description><![CDATA[Powershell offers to ways to expand CmdLet’s or Providers: SnapIns and Modules. But what is the difference? TL;DR: Snapins Modules Model from PS 1.0 Variante – “old” Introduced with PS 2.0 Defined in Assemblies Defined in Assemblies or in Scripts Complex deployment via Installutil Moduls in the file system &#160; Snapins: the old way Snapins ...]]></description>
			<content:encoded><![CDATA[<p>Powershell offers to ways to expand CmdLet’s or Providers: SnapIns and Modules. But what is the difference?</p>
<p><strong>TL;DR:</strong></p>
<p><strong></strong></p>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top" width="201"><strong>Snapins</strong><strong> </strong></td>
<td valign="top" width="200"><strong>Modules</strong><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="201">Model from PS 1.0 Variante – “old”</td>
<td valign="top" width="200">Introduced with PS 2.0</td>
</tr>
<tr>
<td valign="top" width="201">Defined in Assemblies</td>
<td valign="top" width="200">Defined in Assemblies or in Scripts</td>
</tr>
<tr>
<td valign="top" width="201">Complex deployment via Installutil</td>
<td>Moduls in the file system</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>Snapins: the old way</strong></p>
<p>Snapins (like for example WebAdministration PSSnapin in the era of Windows Server 2008) are the old way which could be used in the first version of Powershell.</p>
<p>Disadvantages of this method:</p>
<p>- The PSSnapins have to be written in a .NET language and have to be available as an Assembly (there are some <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms714437(v=vs.85).aspx">Sample Codes for the production of PSSnapIns in MSDN</a>)</p>
<p>- The Assemblies have to be installed with a <a href="http://msdn.microsoft.com/en-us/library/50614e95(v=vs.110).aspx">installutil.exe</a></p>
<p><strong></strong></p>
<p>&nbsp;</p>
<p><strong>What PSSnapins are installed on my system?</strong></p>
<p>You will find all installed Snapins on the CmdLet “Get-PSSnapin-registered”:</p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image1766.png"><img title="image1766" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image1766" src="http://code-inside.de/blog-in/wp-content/uploads/image1766_thumb.png" width="531" height="93"></a></p>
<p><strong></strong></p>
<p>&nbsp;</p>
<p><strong>Where are the PSSnapins saved? Of course in the registry!</strong></p>
<p>The registration of the PSSnapins happens in the Registry:</p>
<p><em>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\</em></p>
<p><img title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb921.png" width="530" height="193"><strong> </strong></p>
<p><strong></strong></p>
<p>&nbsp;</p>
<p><strong>What CmdLets are responsible for the administration of the PSSnapins?</strong></p>
<p><em>Get-PSSnapIn –registered</em>: delivers all available PSSnapIns<br /><em>Add-PSSnapIn [name]:</em><em> </em>adds the PSSnapIn to the PowerShell Session<br /><em>Get-Command –pssnapin [name]: </em><em>adds CmdLets to the PSSnapin (has to be added via add to the session in the beginning) </em></p>
<p><span style="text-decoration: underline">All in all you should not create Snapins anymore</span> – but they are still in use and therefore this explanation.</p>
<p><strong></strong></p>
<p>&nbsp;</p>
<p><strong>PowerShell modules – the new world</strong></p>
<p>The modules get established with the second version of PowerShell and they offer a lot more opportunities without the need for registration in the registry.</p>
<p><strong></strong></p>
<p><strong>Where are the modules saved?</strong></p>
<p>If the only task is to import a module via the module-name with <a href="http://technet.microsoft.com/en-us/library/hh849725.aspx">Import-Module</a> usually it takes a look into the folders which are defined in the environment variable <strong>$env:psmodulepath:</strong></p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb922.png" width="600" height="60"></p>
<p><strong></strong></p>
<p>Otherwise it is also possible to <a href="http://blogs.technet.com/b/heyscriptingguy/archive/2012/11/08/powertip-import-a-powershell-module-from-a-shared-location.aspx">define a certain pad to Powershell modules</a> at the <a href="http://technet.microsoft.com/en-us/library/hh849725.aspx">Import-Module</a>.</p>
<p>Note: In Powershell 3.0 all available modules are activated automatically in the session and you don’t have to load them with the Import-Module.</p>
<p><strong></strong></p>
<p>&nbsp;</p>
<p><strong>What modules are “installed”?</strong></p>
<p>You will find a list on “Get-Module –ListAvailable”:</p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb923.png" width="583" height="273"></p>
<p><strong></strong></p>
<p>&nbsp;</p>
<p><strong>What is the “ModuleType”?</strong></p>
<p>Other then PSSnapins modules can consist of simple scripts, a workflow, an assembly or a manifest. Therefore is the definition of the ModuleType:</p>
<p><em>Binary</em><em><br /><em>A module whose members are defined within an assembly (</em></em><code>.dll</code><em> </em><em>extension), such as a snap-in or a class library that contains cmdlet classes. This field is introduced in Windows PowerShell 2.0.</em></p>
<p><em>Cim</em><em><br /><em>A cmdlets-over-objects module (</em></em><code>.cdxml</code><em> </em><em>extension).</em></p>
<p><em>Manifest</em><em><br /><em>A module that is defined by a module manifest file (</em></em><code>.psd1</code><em> </em><em>extension) whose</em><em> </em><code>ModulesToProcess</code><em>key is empty. This field is introduced in Windows PowerShell 2.0.</em></p>
<p><em>Script</em><em><br /><em>A module whose members are defined within a script module file (</em></em><code>.psm1</code><em> </em><em>extension). This field is introduced in Windows PowerShell 2.0.</em></p>
<p><em>Workflow</em><em><br /><em>A workflow module (</em></em><code>.xaml</code><em> </em><em>extension).</em></p>
<p>From this <a href="http://msdn.microsoft.com/en-us/library/system.management.automation.moduletype(v=vs.85).aspx">MSDN article</a>.</p>
<p>&nbsp;</p>
<p><strong>What does such a module look like? Let’s have a look at the “WebAdministration” module</strong></p>
<p>The “WebAdministration”-Module (to administrate the IIS) is located in the usual “WindowsPowershell” folder and it contains some files:</p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb924.png" width="546" height="269"></p>
<p>The .psd1 file is the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd878324(v=vs.85).aspx">Module Manifest</a> and in fact what is important:</p>
<pre class="csharpcode">@{
GUID=<span class="str">'{13c15630-959c-49e4-a977-758c5cc93408}'</span>
Author=<span class="str">'Microsoft Corporation'</span>
CompanyName=<span class="str">'Microsoft Corporation'</span>
Copyright=<span class="str">'© Microsoft Corporation. All rights reserved.'</span>
ModuleVersion=<span class="str">'1.0.0.0'</span>
PowerShellVersion=<span class="str">'3.0'</span>
CLRVersion=<span class="str">'4.0'</span>
TypesToProcess=<span class="str">'iisprovider.types.ps1xml'</span>
FormatsToProcess=<span class="str">'iisprovider.format.ps1xml'</span>
NestedModules=<span class="str">'Microsoft.IIS.PowerShell.Provider.dll'</span>
RequiredAssemblies=<span class="str">'Microsoft.IIS.PowerShell.Framework.dll'</span>
AliasesToExport=<span class="str">'Begin-WebCommitDelay'</span>,<span class="str">'End-WebCommitDelay'</span>
HelpInfoUri=<span class="str">"http://go.microsoft.com/fwlink/?LinkID=216903"</span>
}</pre>
<p><!-- .csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } -->The main functionality of the Powershell module is in the Microsoft.IIS.PowerShell.Provider.dll <a href="http://code-inside.de/blog/2013/02/07/mit-net-4-0-gibt-es-einen-neuen-gac/">CLR 4.0 GAC.</a></p>
<p>&nbsp;</p>
<p><strong>How do I write a Windows Powershell Module? </strong></p>
<p>After all the development of .NET based Powershell Modules is quite similar to the old Snapins:</p>
<p><a href="http://blogs.msdn.com/b/saveenr/archive/2010/03/08/how-to-create-a-powershell-2-0-module-and-cmdlet-with-visual-studio-2010-screencast-included.aspx">How to Create a Powershell 2.0 Module and Cmdlet with Visual Studio 2010 (Screencast included)</a></p>
<p>A good reference is also <a href="https://github.com/WindowsAzure/azure-sdk-tools/tree/master/WindowsAzurePowershell">Windows Azure CmdLets</a>.</p>
<p>&nbsp;</p>
<p><strong>How do I register new modules?</strong></p>
<p>The CmdLets for the registration of modules is also similar to the Snapins:</p>
<pre class="csharpcode">Get-Module -ListAvailable
Import-Module name
Get-Command -module name</pre>
<p><!-- .csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/UESMR7QlQWA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/03/08/powershell-snapins-vs-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/03/08/powershell-snapins-vs-modules/</feedburner:origLink></item>
		<item>
		<title>Howto: create own data types</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/pA_ytG9rdv0/</link>
		<comments>http://code-inside.de/blog-in/2013/02/28/howto-create-own-data-types/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 21:19:00 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2013/02/28/howto-create-own-data-types/</guid>
		<description><![CDATA[&#160; At this place I want to give some additional information’s about the subject I’ve already written about in this article. It’s about how to show units in your code which are not given in the framework like file sizes (MB, GB), temperatures or unit of length. After I published the first article I received ...]]></description>
			<content:encoded><![CDATA[<p>&nbsp;
<p>At this place I want to give some additional information’s about the subject I’ve already written about in <a href="http://code-inside.de/blog-in/2012/11/08/units-and-interaces/">this article</a>. It’s about how to show units in your code which are not given in the framework like file sizes (MB, GB), temperatures or unit of length. After I published the first article I received much feedback especially from <a href="https://twitter.com/norberteder">Norbert</a> and my coworker <a href="http://www.erik-baum.de/">Erik Baum</a> who got a little bit deeper into the subject. Erik improved the data type with some impressing features which I would like to present to you know:
<p><b>Struct vs. class</b>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb909.png" width="554" height="58">
<p>The first question people are used to ask me was: Why didn’t you use a struct for the data type? I know Structs from C and for me they were like a forerunner of classes. I knew that there are also structs for C# but I didn’t know how and when I should use them.
<p>Here the short answer:
<p>You use structs to create types that act like integrated data types like for example DataTime. That’s exactly what we were looking for! The advantage is a lower Overhead and with that a reduced memory use. On the other hand structs are not able to do everything a class can. You can find a list in the <a href="http://msdn.microsoft.com/de-de/library/saxz13w4(v=vs.110).aspx">MSDN</a>.
<p><b>Overloaded operators</b>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb910.png" width="552" height="208">
<p>If we are building a data type it would be nice if it is as easy to use as Datetime and so on. To use the operators +-/== they have to be overloaded. This is not too hard and it offers a lot of comfort for the user.
<p><b></b>
<p><b>The implicit operator</b>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb911.png" width="556" height="210">
<p>The implicit operator offers the conversion of data types without the need to tell him to. With the help of this operator the following command is possible:
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb912.png" width="559" height="58">
<p><b>IComparable and IEquatable</b>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb913.png" width="559" height="53">
<p>We allow our structs to inherit from these two interfaces. If you implement them you will be able to use many cool framework features. For example the Sort function for Arrays and lists uses IComparable Interface and that’s why we are able to sort our lists like that:
<p><img title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb914.png" width="564" height="48">
<p>The full code for the DataSize struct is available <a href="https://github.com/Code-Inside/Samples/tree/master/2013/DataTypes">here</a>.</p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/pA_ytG9rdv0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/02/28/howto-create-own-data-types/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/02/28/howto-create-own-data-types/</feedburner:origLink></item>
		<item>
		<title>There is a new GAC with .NET 4.0?</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/toZmEx34_go/</link>
		<comments>http://code-inside.de/blog-in/2013/02/16/there-is-a-new-gac-with-net-4-0/#comments</comments>
		<pubDate>Sat, 16 Feb 2013 15:54:43 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2013/02/16/there-is-a-new-gac-with-net-4-0/</guid>
		<description><![CDATA[&#160; &#160; .NET 4.0 offers a new Global Assembly Cache (GAC) which you can find at this path: C:\Windows\Microsoft.NET\assembly Every .NET 4.0 or CLR 4.0 application use this GAC. What happens to the „old“ GAC? The old GAC still exists on this path: C:\Windows\assembly It is still responsible for .NET 2.0 &#8211; .NET 3.5 or ...]]></description>
			<content:encoded><![CDATA[<p>&nbsp;
<p>&nbsp;
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px" title="image.png" border="0" alt="image.png" src="http://code-inside.de/blog/wp-content/uploads/image1764-446x194.png" width="446" height="194">
<p>.NET 4.0 offers a new Global Assembly Cache (GAC) which you can find at this path:
<p><em>C:\Windows\Microsoft.NET\assembly</em>
<p>Every .NET 4.0 or CLR 4.0 application use this GAC.
<p><b>What happens to the „old“ GAC?</b>
<p>The old GAC still exists on this path:
<p><em>C:\Windows\assembly</em>
<p>It is still responsible for .NET 2.0 &#8211; .NET 3.5 or CLR 2.0 applications.
<p><b></b>
<p><b>CLR? .NET Framework Version? Isn’t that the same thing? </b>
<p>The subject is a little more difficult but I like it as a short form:
<p>CLR + Libraries = .NET Framework
<p>While <a href="http://en.wikipedia.org/wiki/Common_Language_Runtime">CLR</a> is the base of the execution. With several .NET framework versions they added numerous libraries but there are just two big CLR Versions till today – Version 2.0 and 4.0
<p><a href="http://blogs.msdn.com/b/karinm/archive/2008/11/11/what-s-the-difference-between-clr-and-net-framework.aspx">Source</a>
<p><b></b>
<p><b>Why this change?</b>
<p>At this point I want to name my source: <a href="http://stackoverflow.com/questions/2660355/net-4-0-has-a-new-gac-why">Stackoverflow</a>
<p><em>“In .NET Framework 4.0, the GAC went through a few changes. The GAC was split into two, one for each CLR.</em>
<p><em>The CLR version used for both .NET Framework 2.0 and .NET Framework 3.5 is CLR 2.0. There was no need in the previous two framework releases to split GAC. The problem of breaking older applications in Net Framework 4.0.</em>
<p><em>To avoid issues between CLR 2.0 and CLR 4.0 , the GAC is now split into private GAC’s for each runtime.The main change is that CLR v2.0 applications now cannot see CLR v4.0 assemblies in the GAC.”</em>
<p><u>Reason for the change:</u>
<p>For example, if both .NET 1.1 and .NET 2.0 shared the same GAC, then a .NET 1.1 application, loading an assembly from this shared GAC, could get .NET 2.0 assemblies, thereby breaking the .NET 1.1 application
<p><em>“The CLR version used for both .NET Framework 2.0 and .NET Framework 3.5 is CLR 2.0. As a result of this, there was no need in the previous two framework releases to split the GAC. The problem of breaking older (in this case, .NET 2.0) applications resurfaces in Net Framework 4.0 at which point CLR 4.0 released. Hence, to avoid interference issues between CLR 2.0 and CLR 4.0, the GAC is now split into private GACs for each runtime.”</em>
<p><u>Another point:</u>
<p><em>“Mark Miller said… June 28, 2010 12:13 PM</em>
<p><em>Thanks for the post. “Interference issues” was intentionally vague. At the time of writing, the issues were still being investigated, but it was clear there were several broken scenarios.</em>
<p><em>For instance, some applications use Assemby.LoadWithPartialName to load the highest version of an assembly. If the highest version was compiled with v4, then a v2 (3.0 or 3.5) app could not load it, and the app would crash, even if there were a version that would have worked. Originally, we partitioned the GAC under it’s original location, but that caused some problems with windows upgrade scenarios. Both of these involved code that had already shipped, so we moved our (version-partitioned GAC to another place.</em>
<p><em>This shouldn’t have any impact to most applications, and doesn’t add any maintenance burden. Both locations should only be accessed or modified using the native GAC APIs, which deal with the partitioning as expected. The places where this does surface are through APIs that expose the paths of the GAC such as GetCachePath, or examining the path of mscorlib loaded into managed code.</em>
<p><em>It’s worth noting that we modified GAC locations when we released v2 as well when we introduced architecture as part of the assembly identity. Those added GAC_MSIL, GAC_32, and GAC_64, although all still under %windir%\assembly. Unfortunately, that wasn’t an option for this release.”</em>
<p>This message helped me to get a clearer view on the subject. Also I didn’t know that the weird „Assembly-Viewer“ has been removed from Windows 8:
<p><b></b>&nbsp;
<p><img title="image" border="0" alt="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb916.png" width="571" height="338"><b></b>
<p><b></b>&nbsp;
<p><b>Result:</b>
<p>Good to know
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/1269602956_dr-mccoy-and-captain-kirk-approve.gif"><img style="display: inline" title="1269602956_dr-mccoy-and-captain-kirk-approve" alt="1269602956_dr-mccoy-and-captain-kirk-approve" src="http://code-inside.de/blog-in/wp-content/uploads/1269602956_dr-mccoy-and-captain-kirk-approve_thumb.gif" width="240" height="181"></a></p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/toZmEx34_go" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/02/16/there-is-a-new-gac-with-net-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/02/16/there-is-a-new-gac-with-net-4-0/</feedburner:origLink></item>
		<item>
		<title>ByeBye .NET Client Profile with .NET 4.5</title>
		<link>http://feedproxy.google.com/~r/Code-InsideBlogInternational/~3/__fBW8Gf0UM/</link>
		<comments>http://code-inside.de/blog-in/2013/01/26/byebye-net-client-profile-with-net-4-5/#comments</comments>
		<pubDate>Sat, 26 Jan 2013 19:42:12 +0000</pubDate>
		<dc:creator>Code Inside Team</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/?p=1055</guid>
		<description><![CDATA[&#160; With .NET 3.5 they’ve published two new deployment-methods for the framework: - Full Framework - Client Profile Shortcut: With .NET 4.5 the construct that caused us all a lot of headache is gone. Why all this? The initial idea was to create a totally new and slim Framework. Other ideas might be about the ...]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><strong> </strong></p>
<p>With .NET 3.5 they’ve published two new deployment-methods for the framework:</p>
<p>- Full Framework</p>
<p>- Client Profile</p>
<p><span style="text-decoration: underline;">Shortcut:</span> With .NET 4.5 the construct that caused us all a lot of headache is gone.</p>
<p><strong>Why all this? </strong></p>
<p><strong> </strong></p>
<p>The initial idea was to create a totally new and slim Framework. Other ideas might be about the security because why should a client pc provide components for server applications?</p>
<p><strong>The problem</strong></p>
<p><strong> </strong></p>
<p>As a web- or “server” developer you are usually never get in touch with the .NET client profile. It will be a problem if you try to take some components from a “client profile” application which might have some kind of reference on the whole big framework.</p>
<p>You will find a nice overview about the subject on the <a href="http://stackoverflow.com/questions/2759228/difference-between-net-4-client-profile-and-full-framework-download">Stackoverflow</a> answers.</p>
<p><strong>Example: </strong></p>
<p>.NET 4 client profile application:</p>
<p><img title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb860.png" border="0" alt="image" width="559" height="205" /></p>
<p>As far as I remember Visual Studio 2010 doesn’t act as clever (what lead to <a href="http://rantdriven.com/post/2011/01/07/NET-Framework-4-Client-Profile-The-Devil-Itself!.aspx">this errors</a>) as Visual Studio 2012 and didn’t show this hint:</p>
<p><img title="image" src="http://code-inside.de/blog/wp-content/uploads/image_thumb861.png" border="0" alt="image" width="482" height="129" /></p>
<p><strong>With .NET 4.5 there isn’t a client profile</strong></p>
<p><strong> </strong></p>
<p><em>“Starting with the .NET Framework 4.5, the Client Profile has been discontinued and only the full redistributable package is available. Optimizations provided by the .NET Framework 4.5, such as smaller download size and faster deployment, have eliminated the need for a separate deployment package. The single redistributable streamlines the installation process and simplifies your app’s deployment options.”</em></p>
<p><em> </em></p>
<p><em><a href="http://msdn.microsoft.com/en-us/library/cc656912.aspx">Source: MSDN</a></em></p>
<p><em> </em></p>
<p><strong>Result</strong></p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image1704.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image1704" src="http://code-inside.de/blog-in/wp-content/uploads/image1704_thumb.png" border="0" alt="image1704" width="478" height="249" /></a></p>
<img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/__fBW8Gf0UM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2013/01/26/byebye-net-client-profile-with-net-4-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://code-inside.de/blog-in/2013/01/26/byebye-net-client-profile-with-net-4-5/</feedburner:origLink></item>
	</channel>
</rss>
