<?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>Jonathan Cisneros &#187; Uncategorized</title>
	<atom:link href="http://blogs.southworks.net/jcisneros/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.southworks.net/jcisneros</link>
	<description>.net from the trenches</description>
	<lastBuildDate>Fri, 25 Jun 2010 19:36:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Troubleshooting Windows Azure Deployment</title>
		<link>http://blogs.southworks.net/jcisneros/2010/02/19/troubleshooting-windows-azure-deployment/</link>
		<comments>http://blogs.southworks.net/jcisneros/2010/02/19/troubleshooting-windows-azure-deployment/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 21:09:37 +0000</pubDate>
		<dc:creator>jcisneros</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.southworks.net/jcisneros/2010/02/19/troubleshooting-windows-azure-deployment/</guid>
		<description><![CDATA[... <a href="http://blogs.southworks.net/jcisneros/2010/02/19/troubleshooting-windows-azure-deployment/" class="more-link">read more<img src="http://blogs.southworks.net/jcisneros/wp-content/themes/southworks/assets/img/arrow-blue.png" width="12" height="12" alt="" /></a>]]></description>
			<content:encoded><![CDATA[<p>Usually, when Windows Azure fails to initialize the services, the portal shows the services cycling between the Initializing, Busy and Stopping states and it gets stuck in an infinite loop between these states. The following list are the most common causes for a deployment to Windows Azure may fail (even if it works locally) and how to fix them:</p>
<ol>
<li><strong>Missing referenced assemblies</strong>: set <b>CopyLocal = True</b> for referenced assemblies not in .NET Framework 3.5 or <i>Microsoft.WindowsAzure.ServiceRuntime</i> (these assemblies are the only ones present in Windows Azure).       <br /><img style="float: none;margin-left: auto;margin-right: auto" border="0" alt="clip_image001" src="http://blogs.southworks.net/jcisneros/files/2010/02/clip-image001.png" width="385" height="656" /> </li>
<li><strong>Project built for 32bits only</strong>: Use <b>Platform target = Any CPU</b> (or x64). Windows Azure runs on 64 bits.&#160; <br /><img style="float: none;margin-left: auto;margin-right: auto" border="0" alt="image" src="http://blogs.southworks.net/jcisneros/files/2010/02/image.png" width="519" height="299" /> </li>
<li><strong>Path too long</strong>: Use project names with less than <b>28</b> characters. Sometimes no exception is shown, to know if this is the issue, exclude all the roles but one from the Cloud Service project and run once each time to be able to view the error details in the output window when running on the Development Fabric. You should see the following error message <em>â€œERR: Failed to complete setup of assembly (hr = 0x8007006f)â€.</em> </li>
<li><strong>Missing files</strong>: Include all the used files in the project. Files that are not included are not published (for instance, images) </li>
</ol>
<p>If you will perform a service upgrade, first suspend it. If you do not suspend the service and you perform an upgrade, it will never end. Apparently, it tries to return to the previous version state as part of the upgrade process, if our new version has the same issue (fails to initialize by iterating between the stopping to initializing states), it will get stuck in the middle of the process and you wonâ€™t be able to perform any action from the Azure portal, you cannot even delete the service. If this happened to you, you can try using the <a href="http://code.msdn.microsoft.com/azurecmdlets">Azures Cmdlets</a> to set the deployment status.</p>
<p>If you continue having issues, the following blog post includes more possible causes and suggestions:</p>
<ul>
<li>
<h5><a href="http://blog.toddysm.com/2010/01/windows-azure-deployment-stuck-in-initializing-busy-stopping-why.html" target="_blank">Windows Azure Deployment Stuck in Initializing, Busy, Stopping â€“ Why?</a></h5>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Azure: Everything in the cloud</title>
		<link>http://blogs.southworks.net/jcisneros/2008/11/03/windows-azure-everything-in-the-cloud/</link>
		<comments>http://blogs.southworks.net/jcisneros/2008/11/03/windows-azure-everything-in-the-cloud/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 02:31:10 +0000</pubDate>
		<dc:creator>jcisneros</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.southworks.net/jcisneros/?p=39</guid>
		<description><![CDATA[... <a href="http://blogs.southworks.net/jcisneros/2008/11/03/windows-azure-everything-in-the-cloud/" class="more-link">read more<img src="http://blogs.southworks.net/jcisneros/wp-content/themes/southworks/assets/img/arrow-blue.png" width="12" height="12" alt="" /></a>]]></description>
			<content:encoded><![CDATA[<p>These days we are seeing the dawn of a new computing generation, that is the 5th generation of computing. The first one were <strong>monolithic</strong> applications, then came the <strong>Client-Server</strong> and tiered applications, and currently we are building <strong>Web-based</strong> and <strong>SOA</strong> applications, today, the new buzzwords are <strong>Services</strong> and <strong>Cloud computing</strong>.</p>
<p>The past week, on <a title="Microsoft PDC 2008" href="http://www.microsoftpdc.com/" target="_blank">PDC</a> (Professional Developers Conference) event, Microsoft announced <a title="Windows Azure" href="http://www.microsoft.com/azure/windowsazure.mspx" target="_blank">Windows Azure</a>, a big initiative on the new computing generation. Windows Azure is a &#8220;cloud services operating system&#8221;, this is, a platform for developing, hosting and managing applications and services in the cloud. Being in the <a title="Cloud computing" href="http://en.wikipedia.org/wiki/Cloud_computing" target="_blank">cloud</a>, means that it is hosted on and available from internet, in this case, the hosting service is provided by Microsoft&#8217;s datacenters.</p>
<p>But that is not all, Windows Azure is just the lowest level of the <a title="Azure Service Platform" href="http://www.microsoft.com/azure/default.mspx" target="_blank">Azure Services Platform</a>, this platform includes several services running over Windows Azure, like:</p>
<ul>
<li><strong><a title="Live Services" href="http://dev.live.com/" target="_blank">Live Services</a></strong>: allows to create rich applications to run on a variety of platforms and devices.</li>
<li><strong><a title=".NET Services" href="http://www.microsoft.com/azure/netservices.mspx" target="_blank">.NET Services</a></strong>: includes:
<ul>
<li><strong><a title="Service Bus" href="http://www.microsoft.com/azure/servicebus.mspx" target="_blank">Service Bus</a></strong>: provides a secure, standards-based messaging infrastructure to communicate application components even across organizational boundaries.</li>
<li><strong><a title="Workflow Service" href="http://www.microsoft.com/azure/workflow.mspx" target="_blank">Workflow Service</a></strong>: hosts and runs workflows on the clouds and provides specialized activities for communication using HTTP and Service Bus.</li>
<li><strong><a title="Access Control" href="http://www.microsoft.com/azure/accesscontrol.mspx" target="_blank">Access Control</a></strong>: integrates standards-based identity providers, including enterprise directories and web identity systems such as Windows Live ID.</li>
</ul>
</li>
<li><strong><a title="SQL Services" href="http://www.microsoft.com/azure/sql.mspx" target="_blank">SQL Services</a></strong>: Stores data in the cloud using ACE structure (Authority, Container, Entity), the entities are flexibles and you can access the data using several standards-based interfaces (SOAP, REST, &#8230;).</li>
</ul>
<p><img src="http://www.microsoft.com/azure/images/servicesPlatform.jpg" alt="" /></p>
<p>Being part of this extraordinary family that we call Southworks, gave me the opportunity to learnt about these new technologies and participate in the development of a new set of <strong>Hands-On Labs</strong> about Azure Services Platform for the PDC event. For downloading this HOL go to: <a title="Azure Training Kit" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=413E88F8-5966-4A83-B309-53B7B77EDF78" target="_blank">Azure Services Training Kit &#8211; PDC Preview</a>.</p>
<p>For further reading:</p>
<ul>
<li><a href="http://msmvps.com/blogs/lopez/archive/2008/11/03/el-cielo-es-azure.aspx">El Cielo es Azure</a> (spanish) by Angel Lopez </li>
<li><a href="http://blogs.southworks.net/jmmoyano/2008/10/30/introduction-to-live-mesh/">Introduction to Live Mesh</a> by Juan Manuel Moyano</li>
<li><a title="Permanent Link to Microsoft Azure Services Management Tools" rel="bookmark" href="http://blogs.southworks.net/lboffi/2008/11/02/microsoft-azure-services-management-tools/">Microsoft Azure Services Management Tools</a> by Leandro Boffi</li>
</ul>
<p> </p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AOP with PostSharp</title>
		<link>http://blogs.southworks.net/jcisneros/2008/06/22/aop-with-postsharp/</link>
		<comments>http://blogs.southworks.net/jcisneros/2008/06/22/aop-with-postsharp/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 04:49:58 +0000</pubDate>
		<dc:creator>jcisneros</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AOP]]></category>
		<category><![CDATA[PostSharp]]></category>

		<guid isPermaLink="false">http://blogs.southworks.net/jcisneros/?p=11</guid>
		<description><![CDATA[... <a href="http://blogs.southworks.net/jcisneros/2008/06/22/aop-with-postsharp/" class="more-link">read more<img src="http://blogs.southworks.net/jcisneros/wp-content/themes/southworks/assets/img/arrow-blue.png" width="12" height="12" alt="" /></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.postsharp.org/" target="_blank">PostSharp</a> is a great open-source tool that allows you to encapsulate the non-business logic in custom attributes. That&#8217;s the <a href="http://en.wikipedia.org/wiki/Aspect-oriented_programming" target="_blank">Aspect Oriented Programming</a> paradigm main goal: the separation of concerns.</p>
<p>This tool heps you to free the business logic from the infrastructure code such as:</p>
<ul>
<li>Transactions</li>
<li>Logging</li>
<li>Permissions / Security</li>
<li>Exceptions handling</li>
<li>Caching</li>
<li>Settings</li>
</ul>
<p>Your code will be cleaner than never.</p>
<p>&#8230;and why do I call it a &#8220;great tool&#8221;? Because, unlike other tools that uses reflection and other techniques that reduces performance, PostSharp works at <a href="http://en.wikipedia.org/wiki/Common_Intermediate_Language" target="_blank">MSIL</a> level!. It generates MSIL code to be injected in your code at compilation time, in that way it supports any .NET language and get the best performance possible.</p>
<p>Furthermore, this tool is really easy to learn. You can quickly get started by using the basic features, follow this simple quick start:</p>
<ul>
<li><strong><a href="http://www.postsharp.org/about/getting-started/">PostSharp &#8211; QuickStart</a></strong></li>
</ul>
<p>The following example shows a simple PostSharp aspect to trace the execution of the methods marked with that attribute:</p>
<p><span style="color: #0000ff">public</span> <span style="color: #0000ff"> class</span> <span style="color: #2b91af">SimplestTraceAttribute</span> : <span style="color: #2b91af">OnMethodBoundaryAspect<br />
</span>{<span style="color: #0000ff"><br />
public</span> <span style="color: #0000ff">override</span> <span style="color: #0000ff"> void</span> OnEntry( <span style="color: #2b91af">MethodExecutionEventArgs</span> eventArgs)<span style="font-size: small"> </span><br />
{<span style="color: #2b91af"><br />
Trace</span>.TraceInformation(<span style="color: #a31515">&#8220;Entering  					{0}.&#8221;</span>, eventArgs.Method);<span style="color: #2b91af"><br />
Trace</span>.Indent();<br />
}  <span style="color: #0000ff"><br />
public</span> <span style="color: #0000ff">override</span> <span style="color: #0000ff"> void</span> OnExit( <span style="color: #2b91af">MethodExecutionEventArgs</span> eventArgs)<br />
{<span style="color: #2b91af"><br />
Trace</span>.Unindent();<span style="color: #2b91af"><br />
Trace</span>.TraceInformation(<span style="color: #a31515">&#8220;Leaving  					{0}.&#8221;</span>, eventArgs.Method);<br />
}<br />
}</p>
<p>&#8230;and it works like a charm!</p>
<p><strong>The evidence:</strong></p>
<p><em>Building the project:</em></p>
<p><a href="http://blogs.southworks.net/jcisneros/files/2008/06/postsharp_build.jpg"><img class="alignnone size-medium wp-image-20" src="http://blogs.southworks.net/jcisneros/files/2008/06/postsharp_build.jpg" alt="" width="300" height="99" /></a></p>
<p><em>Inspecting the binaries:</em></p>
<p><a href="http://blogs.southworks.net/jcisneros/files/2008/06/postsharp_reflector.jpg"><img class="alignnone size-medium wp-image-19" src="http://blogs.southworks.net/jcisneros/files/2008/06/postsharp_reflector.jpg" alt="" width="300" height="208" /></a></p>
<p><em>Results:</em></p>
<p><a href="http://blogs.southworks.net/jcisneros/files/2008/06/postsharp_output.jpg"><img class="alignnone size-medium wp-image-21" src="http://blogs.southworks.net/jcisneros/files/2008/06/postsharp_output.jpg" alt="" width="300" height="108" /></a></p>
<h2>Resources:</h2>
<ul>
<li><a href="http://www.postsharp.org/" target="_blank">PostSharp Official WebSite</a> (see <a href="http://www.postsharp.org/about/" target="_blank">About PostSharp</a>)</li>
<li><a href="http://code.google.com/p/postsharp-user-samples/" target="_blank">Visual Basic PostSharp Samples</a></li>
</ul>
<p>Enjoy it!</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
