<?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>mayvelous &#187; General</title>
	<atom:link href="http://www.mayvelous.com/category/general-news/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mayvelous.com</link>
	<description>Me, Myself and Mayvelous</description>
	<lastBuildDate>Mon, 10 Oct 2011 01:09:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sitefinity &#8211; New Site Deployment Checklist</title>
		<link>http://www.mayvelous.com/2011/10/10/sitefinity-new-site-deployment-checklist/</link>
		<comments>http://www.mayvelous.com/2011/10/10/sitefinity-new-site-deployment-checklist/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 01:07:00 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[My To-Do List]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Project Notes]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Checklist]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Sitefinity]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=609</guid>
		<description><![CDATA[The following things to note when you deploy a new Sitefinity site to production environment: Check the site authentication mode. It must have only one authentication. Check &#8220;Anonymous&#8221; and un-check &#8220;Integrated windows&#8221; Check Theme style link binding. Sometimes you need to add aspnet_isapi.dll wildcard in order to make the theme work again. IIS &#62; Website [...]<blockquote>
<strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/08/23/sitefinity-fixing-version-dependent-custom-controls-errors/' rel='bookmark' title='Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors'>Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors</a></li>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/' rel='bookmark' title='How to fix Cruise build deployment that adds extra assemblies and .nlp files'>How to fix Cruise build deployment that adds extra assemblies and .nlp files</a></li>
<li><a href='http://www.mayvelous.com/2011/09/08/sitefinity-empty-document-uploader-screen-and-silverlight-mime/' rel='bookmark' title='Sitefinity &#8211; Empty Document Uploader Screen and Silverlight MIME'>Sitefinity &#8211; Empty Document Uploader Screen and Silverlight MIME</a></li>
</ul></blockquote>]]></description>
			<content:encoded><![CDATA[<p>The following things to note when you deploy a new Sitefinity site to production environment:</p>
<ol>
<li>Check the site <strong>authentication</strong> mode. It must have only one authentication. Check &#8220;<strong>Anonymous</strong>&#8221; and un-check &#8220;Integrated windows&#8221;</li>
<li>Check Theme style link binding. Sometimes you need to add <strong>aspnet_isapi.dll</strong> wildcard in order to make the theme work again.<br />
IIS &gt; Website &gt; Properties &gt; Home directory tab &gt; Configuration &gt; Wildcard application maps &gt; Add (C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll)<br />
Make sure to <strong>UNCHECK</strong> &#8220;Verify that file exists&#8221; or you will have 404 errors everywhere.</li>
<li>Check if your server have all required <strong>MIME</strong> types eg. <a title="Sitefinity – Empty Document Uploader Screen and Silverlight MIME" href="http://www.mayvelous.com/2011/09/08/sitefinity-empty-document-uploader-screen-and-silverlight-mime/" target="_blank">Silverlight MIMEs</a></li>
<li>Give the website folder &#8220;ASPNET&#8221; and &#8220;NETWORK SERVICE&#8221; <strong>WRITE</strong> access</li>
<li><strong>Reindex</strong> all your search indexes.</li>
<li>Update your <strong>license file</strong> to correct site domain license</li>
</ol>
<p>&#8230; will add more as I find things later.</p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <blockquote><p><strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/08/23/sitefinity-fixing-version-dependent-custom-controls-errors/' rel='bookmark' title='Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors'>Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors</a></li>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/' rel='bookmark' title='How to fix Cruise build deployment that adds extra assemblies and .nlp files'>How to fix Cruise build deployment that adds extra assemblies and .nlp files</a></li>
<li><a href='http://www.mayvelous.com/2011/09/08/sitefinity-empty-document-uploader-screen-and-silverlight-mime/' rel='bookmark' title='Sitefinity &#8211; Empty Document Uploader Screen and Silverlight MIME'>Sitefinity &#8211; Empty Document Uploader Screen and Silverlight MIME</a></li>
</ul></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/10/10/sitefinity-new-site-deployment-checklist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sitefinity &#8211; Empty Document Uploader Screen and Silverlight MIME</title>
		<link>http://www.mayvelous.com/2011/09/08/sitefinity-empty-document-uploader-screen-and-silverlight-mime/</link>
		<comments>http://www.mayvelous.com/2011/09/08/sitefinity-empty-document-uploader-screen-and-silverlight-mime/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 06:20:47 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Bugs and Fixes]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MIME Types]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Sitefinity]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=605</guid>
		<description><![CDATA[I deployed the Sitefinity site from local to DEV and STAGING servers and the document uploader works on DEV but suddendly disappear on the STAGING server. Correct Screen Error Screen I&#8217;ve created a forum post but received no good answers. The dude kept asking me to install Silverlight Tools on all the machines. I don&#8217;t understand [...]<blockquote>
<strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/08/23/sitefinity-fixing-version-dependent-custom-controls-errors/' rel='bookmark' title='Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors'>Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors</a></li>
<li><a href='http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/' rel='bookmark' title='How to fix Cruise build deployment that adds extra assemblies and .nlp files'>How to fix Cruise build deployment that adds extra assemblies and .nlp files</a></li>
</ul></blockquote>]]></description>
			<content:encoded><![CDATA[<p>I deployed the Sitefinity site from local to DEV and STAGING servers and the document uploader works on DEV but suddendly disappear on the STAGING server.</p>
<p style="text-align: center;">Correct Screen<br />
<a title="correct screen by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/6126479504/"><img src="http://farm7.static.flickr.com/6064/6126479504_6b64ab3e9f_m.jpg" alt="correct screen" width="200" height="64" /></a></p>
<p style="text-align: center;">Error Screen<br />
<a title="blank document upload by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/6125931815/"><img class="aligncenter" src="http://farm7.static.flickr.com/6074/6125931815_864514e333_m.jpg" alt="blank document upload" width="200" height="59" /></a></p>
<p>I&#8217;ve created <a title="upload documents link screen becomes empty" href="http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/upload-documents-link-screen-becomes-empty.aspx" target="_blank">a forum post</a> but received no good answers. The dude kept asking me to install Silverlight Tools on all the machines. I don&#8217;t understand why we have to install silverlight on all machines and which silverlight exactly to install as there&#8217;re browser plugin, silverlight tools, silverlight framwork etc. And I cannot install silverlight tools unless the prerequisites, Visual Studio 2010 and Web Developer Express 2010, been installed which I absolutely don&#8217;t want to do. Also on the DEV server, there&#8217;s not a single instance of Silverlight installation was there and the uploader&#8217;s working just fine so I really had a hard time figuring out the issue with STAGING site. The forum responds were so slow, so I created a ticket and the same dude replied as followed:</p>
<blockquote><p>Can you enable Firebug and check what errors come up in the Net tab when you try to access the Upload section? Also is there a way to provide RDC to your server so I can inspect the settings in more depth?</p></blockquote>
<p>Ofcos I don&#8217;t want to give RDC access but I checked the Firebug and that really helps figure out the problem.<br />
With the help of Firebug, I got 404 file not found for Telerik.Sitefinity.Silverlight.xap file with the error below:</p>
<blockquote><p>Unhandled Error in Silverlight Application<br />
Code: 2104<br />
Category: InitializeError<br />
Message: 2104 An error has occurred.</p></blockquote>
<p>Now that&#8217;s some good hint, so I checked the path and the file exists on the server so must be the file permission issue; I googled the error message and found out that it&#8217;s all to do with missing MIME Types on STAGING server.</p>
<p><a title="mime types by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/6126479352/"><img class="aligncenter" src="http://farm7.static.flickr.com/6183/6126479352_a56a1245ea_m.jpg" alt="mime types" width="217" height="240" /></a></p>
<p>I&#8217;ve added these 3 types to the server MIME types list and it fixes the problem.</p>
<blockquote><p>.xap application/x-silverlight-app<br />
.xaml application/xaml+xml<br />
.xbap application/x-ms-xbap<br />
Ref: <a title="Configure IIS for Silverlight Applications" href="http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/" target="_blank">Configuration IIS for Silverlight Applications</a></p></blockquote>
<p>I wasn&#8217;t happy with the support but thank god he at least gave me a hint to check with Firebug.</p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <blockquote><p><strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/08/23/sitefinity-fixing-version-dependent-custom-controls-errors/' rel='bookmark' title='Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors'>Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors</a></li>
<li><a href='http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/' rel='bookmark' title='How to fix Cruise build deployment that adds extra assemblies and .nlp files'>How to fix Cruise build deployment that adds extra assemblies and .nlp files</a></li>
</ul></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/09/08/sitefinity-empty-document-uploader-screen-and-silverlight-mime/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sitefinity &#8211; Fixing Version Dependent Custom Controls Errors</title>
		<link>http://www.mayvelous.com/2011/08/23/sitefinity-fixing-version-dependent-custom-controls-errors/</link>
		<comments>http://www.mayvelous.com/2011/08/23/sitefinity-fixing-version-dependent-custom-controls-errors/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 04:03:15 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Bugs and Fixes]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Project Notes]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Assembly]]></category>
		<category><![CDATA[Conflict]]></category>
		<category><![CDATA[Sitefinity]]></category>
		<category><![CDATA[Versioning]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=601</guid>
		<description><![CDATA[Whenever we upgrade to a new version of Sitefinity or applying service packs, we get something like the following version conflict errors: Could not load file or assembly &#8216;Telerik.Sitefinity, Version=&#8230;, Culture=neutral, PublicKeyToken=b28c218413bdf563&#8242; To fix that, place the assembly binding redirect info to the runtime section of your web.config and change the values of the &#8220;oldVersion&#8221; [...]<blockquote>
<strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
<li><a href='http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/' rel='bookmark' title='How to fix Cruise build deployment that adds extra assemblies and .nlp files'>How to fix Cruise build deployment that adds extra assemblies and .nlp files</a></li>
</ul></blockquote>]]></description>
			<content:encoded><![CDATA[<p>Whenever we upgrade to a new version of Sitefinity or applying service packs, we get something like the following version conflict errors:</p>
<blockquote><p>Could not load file or assembly &#8216;Telerik.Sitefinity, Version=&#8230;, Culture=neutral, PublicKeyToken=b28c218413bdf563&#8242;</p></blockquote>
<p>To fix that, place the assembly binding redirect info to the <strong>runtime</strong> section of your <strong>web.config</strong> and change the values of the &#8220;<strong>oldVersion</strong>&#8221; and &#8220;<strong>newVersion</strong>&#8221; acordingly. Your site should work again after a rebuild.</p>
<p><code>&lt;runtime&gt;<br />
&lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;<br />
&lt;dependentAssembly&gt;<br />
&lt;assemblyIdentity name="Telerik.Sitefinity" publicKeyToken="b28c218413bdf563" /&gt;<br />
&lt;bindingRedirect oldVersion="4.1.1574.0" newVersion="4.2.1650.0"/&gt;<br />
&lt;/dependentAssembly&gt;<br />
&lt;dependentAssembly&gt;<br />
&lt;assemblyIdentity name="Telerik.Sitefinity.Model" publicKeyToken="b28c218413bdf563" /&gt;<br />
&lt;bindingRedirect oldVersion="4.1.1574.0" newVersion="4.2.1650.0"/&gt;<br />
&lt;/dependentAssembly&gt;<br />
&lt;/assemblyBinding&gt;<br />
&lt;/runtime&gt;</code></p>
<p>Some of the most recent version numbers I&#8217;ve tracked are as followed:</p>
<ul>
<li>Sitefinity 4.0 (4.0.1210.0)</li>
<li>Sitefinity 4.1 (4.1.1395.0)</li>
<li>Sitefinity 4.1 SP1 (4.1.1405.0)</li>
<li>Sitefinity 4.1 SP2 (4.1.1501.0)</li>
<li>Sitefinity 4.1 SP3 (4.1.1574.0)</li>
<li>Sitefinity 4.2 (4.2.1650.0)</li>
<li>Sitefinity 4.2 SP1 (4.2.1733.0)</li>
</ul>
<p>Another short note/ref to check out is <a title="Found conflicts between different versions of the same dependent assembly" href="http://stackoverflow.com/questions/17806/warning-found-conflicts-between-different-versions-of-the-same-dependent-assembl" target="_blank">this post on stackoverflow</a> explaining some of the solution to version conflict error:</p>
<blockquote><p>&#8220;Found conflicts between different versions of the same dependent assembly&#8221;.</p></blockquote>
<p>Below is the direct quote from <a title="Found conflicts between different versions of the same dependent assembly" href="http://stackoverflow.com/questions/17806/warning-found-conflicts-between-different-versions-of-the-same-dependent-assembl/2137718#2137718" target="_blank">Brian</a> which I find it pretty useful.:</p>
<blockquote><p>This warning means that two projects reference the same assembly (e.g. System.Windows.Forms) but the two project require different versions. You have a few options:</p>
<ol>
<li>Recompile all projects to use the same versions (e.g. move all to .Net 3.5). This is the preferred option because all code is running with the versions of dependencies they were compiled with.</li>
<li>Add a <a title="Assembly Binding Redirect" href="http://msdn.microsoft.com/en-us/library/433ysdt1.aspx" target="_blank">binding redirect</a>. This will suppress the warning. However, your .Net 2.0 projects will (at runtime) be bound to the .Net 3.5 versions of dependent assemblies such as System.Windows.Forms. You can quickly add a binding redirect by double-clicking on error in Visual Studio.</li>
<li>Use CopyLocal=true. I&#8217;m not sure if this will suppress the warning. It will, like option 2 above, mean that all projects will use the .Net 3.5 version of System.Windows.Forms.</li>
</ol>
<p>Here is a utility to identify the offending reference(s):<br />
<a title="Find conflicting assembly references" href="http://www.brianlow.com/index.php/2010/01/25/find-conflicting-assembly-references/" target="_blank">http://www.brianlow.com/index.php/2010/01/25/find-conflicting-assembly-references/</a></p></blockquote>
<p>K that&#8217;s about it for now.</p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <blockquote><p><strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
<li><a href='http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/' rel='bookmark' title='How to fix Cruise build deployment that adds extra assemblies and .nlp files'>How to fix Cruise build deployment that adds extra assemblies and .nlp files</a></li>
</ul></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/08/23/sitefinity-fixing-version-dependent-custom-controls-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix Cruise build deployment that adds extra assemblies and .nlp files</title>
		<link>http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/</link>
		<comments>http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 07:20:59 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Bugs and Fixes]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[.csproj]]></category>
		<category><![CDATA[.nlp]]></category>
		<category><![CDATA[.sln]]></category>
		<category><![CDATA[continuous integration]]></category>
		<category><![CDATA[Cruise Control]]></category>
		<category><![CDATA[debug error]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=598</guid>
		<description><![CDATA[I have this project setup for continuous integration with cruise control. It&#8217;s been up and running for quite sometime then suddenly the website starts getting the following errors on every successful build. Exception Details: System.BadImageFormatException: Could not load file or assembly &#8216;Microsoft.VisualBasic.Activities.Compiler&#8217; or one of its dependencies. An attempt was made to load a program [...]<blockquote>
<strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
</ul></blockquote>]]></description>
			<content:encoded><![CDATA[<p>I have this project setup for continuous integration with cruise control. It&#8217;s been up and running for quite sometime then suddenly the website starts getting the following errors on every successful build.</p>
<blockquote><p><strong>Exception Details</strong>: System.BadImageFormatException: Could not load file or assembly &#8216;Microsoft.VisualBasic.Activities.Compiler&#8217; or one of its dependencies. An attempt was made to load a program with an incorrect format.</p></blockquote>
<p style="text-align: center;"><strong>The Error Page</strong><br />
<a title="Solution/Project Platform Target Configuration + Cruise Build by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/6028509102/"><img class="aligncenter" src="http://farm7.static.flickr.com/6190/6028509102_68ed413784_m.jpg" alt="Solution/Project Platform Target Configuration + Cruise Build" width="240" height="141" /></a></p>
<p>I did not make any changes to the build configs at all and the site runs fine locally. There is no reference to &#8216;<strong>Microsoft.VisualBasic.Activities.Compiler</strong>&#8216; in my project and it doesn&#8217;t have VB code. I found some extra files, see below list, in the deployment bin while comparing the bin assemblies on deployment server and my local. Once remove those files, the site comes back on, but the files are added with every cruise build.</p>
<blockquote>
<ul>
<li>Microsoft.VisualBasic.Activities.Compiler.dll</li>
<li>Microsoft.Practices.ServiceLocation.dll</li>
<li>Microsoft.Practices.ServiceLocation.xml</li>
<li>mscorlib.dll</li>
<li>normidna.nlp</li>
<li>normnfc.nlp</li>
<li>normnfd.nlp</li>
<li>normnfkc.nlp</li>
<li>normnfkd.nlp</li>
<li>PresentationCore.dll</li>
<li>System.Data.dll</li>
<li>System.Data.OracleClient.dll</li>
<li>System.EnterpriseServices.dll</li>
<li>System.EnterpriseServices.Wrapper.dll</li>
<li>System.Printing.dll</li>
<li>System.Transactions.dll</li>
</ul>
</blockquote>
<p>I google a bit to check similar problems out there and found only <a title="why does the deployment package from build server have additional assemblies" href="http://stackoverflow.com/questions/5604221/why-does-the-deployment-package-from-my-buildserver-have-additional-assemblies" target="_blank">one link</a>, which was fixed by installing missing SDK or something. I didn&#8217;t think that was the right solution for me but got an idea to check for target platform configuration on the solution and project files.</p>
<p>I compare with one of my working project many times using visual studio property window to check for the solution and project file configuration properties but they seemed to be the same, using ANYCPU for the build platform. I didn&#8217;t trust the VS property designer so used WinMerge to compare the two files and found that there are some additional configuration lines added to the solution file. So I open the .sln and .csproj in notepad, removed all the extra configs, see the image below, checked back in, forced build the Cruise Control and walah all those craps gone and the site is back to the way it was.</p>
<p style="text-align: center;"><strong>.sln Solution file comparison and the lines to remove</strong><br />
<a title="Solution/Project Platform Target Configuration + Cruise Build by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/6028509060/"><img src="http://farm7.static.flickr.com/6133/6028509060_1ed98221c4_m.jpg" alt="Solution/Project Platform Target Configuration + Cruise Build" width="240" height="99" /></a></p>
<p style="text-align: center;"><strong>.csproj Project file comparison and the line to remove</strong><br />
<a title="Solution/Project Platform Target Configuration + Cruise Build by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/6027957193/"><img class="aligncenter" src="http://farm7.static.flickr.com/6196/6027957193_c2f44a452c_m.jpg" alt="Solution/Project Platform Target Configuration + Cruise Build" width="240" height="36" /></a></p>
<p>The point I like to make here is that although no error with cruise build, your site can still be broken and freaking Visual Studio design views lie many time so remember to go for the good old way of editing it in notepad.</p>
<blockquote><p><strong>Note:</strong> If you don&#8217;t have any working version to compare, just search for &#8220;<strong>Mixed Platforms</strong>&#8221; or &#8220;<strong>x86</strong>&#8221; in .sln file and &#8220;<strong>&lt;PlatformTarget&gt;AnyCPU&lt;/PlatformTarget&gt;</strong>&#8221; in .csproj file and remove them accordingly.</p></blockquote>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <blockquote><p><strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/' rel='bookmark' title='Sitefinity &#8211; Linking External JS file in Master pages'>Sitefinity &#8211; Linking External JS file in Master pages</a></li>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
</ul></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/08/10/how-to-fix-cruise-build-deployment-that-adds-extra-assemblies-and-nlp-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sitefinity &#8211; Linking External JS file in Master pages</title>
		<link>http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/</link>
		<comments>http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 21:00:18 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Bugs and Fixes]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Project Notes]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Master Pages]]></category>
		<category><![CDATA[Sitefinity]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=594</guid>
		<description><![CDATA[According to this post, we can reference the Sitefinity built-in script libraries and/or external script files in site master page as followed: &#60;sf:JsFileLink id="jsLink" runat="server" ScriptType="jQuery"&#62;&#60;/sf:JsFileLink&#62; &#60;sf:JsFileLink id="jsLink" runat="server" ScriptType="prototype"&#62;&#60;/sf:JsFileLink&#62; &#60;sf:JsFileLink id="jsLink" runat="server" ScriptType="mooTools"&#62;&#60;/sf:JsFileLink&#62; To use it, reference the assembly from the project and add the following code in the master page. &#60;%@ Register Assembly="Telerik.Cms.Web.UI" [...]<blockquote>
<strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
</ul></blockquote>]]></description>
			<content:encoded><![CDATA[<p>According to <a title="Built-in Libraries in Sitefinity" href="http://www.sitefinity.com/blogs/georgichokov/posts/09-03-25/how_to_use_jquery_and_other_javascript_libraries_in_sitefinity.aspx" rel="externals">this post</a>, we can reference the Sitefinity built-in script libraries and/or external script files in site master page as followed:</p>
<pre>&lt;sf:JsFileLink id="jsLink" runat="server" ScriptType="jQuery"&gt;&lt;/sf:JsFileLink&gt;
&lt;sf:JsFileLink id="jsLink" runat="server" ScriptType="prototype"&gt;&lt;/sf:JsFileLink&gt;
&lt;sf:JsFileLink id="jsLink" runat="server" ScriptType="mooTools"&gt;&lt;/sf:JsFileLink&gt;</pre>
<p>To use it, reference the assembly from the project and add the following code in the master page.</p>
<pre>&lt;%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sf" %&gt;</pre>
<p>It didn&#8217;t mention which version of Sitefinity it&#8217;s used at but after testing, found out that it&#8217;s definitly not for our current 4.1 SP2 version. The &#8220;<strong>JsFileLink</strong>&#8221; property is for older version of the sitefinity 3.6 etc which comes from <strong>Telerik.Cms.Web.UI</strong> assembly.</p>
<p>Did a bit more digging around and got the right referencing for 4.1 version.</p>
<p>1. Add this to master page, immediately after Page tag.</p>
<pre>&lt;%@ Register TagPrefix="sf" Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.PublicControls"%&gt;</pre>
<p>2. Place the following inside the &#8220;<strong>form</strong>&#8221; tag, NOT in the &#8220;head&#8221; section.</p>
<p>If you have the &#8220;JS&#8221; folder location as mention in <a title="Sitefinity Website template file structure" href="http://www.sitefinity.com/documentation/designers-guide/website-templates-file-structure.aspx" rel="externals">this structure</a>, reference as followed:</p>
<pre>&lt;sf:JavaScriptEmbedControl runat="server" ID="jsLink1" ScriptEmbedPosition="Head" Url="~/Sitefinity/WebsiteTemplates/YourSiteTemplates/JS/test.js"&gt;&lt;/sf:JavaScriptEmbedControl&gt;</pre>
<p>If you have the script folder in your website root, use the following:</p>
<pre>&lt;sf:JavaScriptEmbedControl runat="server" ID="jsLink2" ScriptEmbedPosition="Head" Url="~/scripts/test.js"&gt;&lt;/sf:JavaScriptEmbedControl&gt;</pre>
<p>For built-in JQuery library, reference as followed:</p>
<pre>&lt;sf:JavaScriptEmbedControl runat="server" ID="jQyeryLink" ScriptEmbedPosition="Head" ScriptType="jQuery"&gt;&lt;/sf:JavaScriptEmbedControl&gt;</pre>
<p>3. Must have unique &#8220;<strong>ID</strong>&#8221; and specify &#8220;<strong>ScriptEmbedPosition</strong>&#8221; fields.</p>
<blockquote><p>The JavaScriptEmbedControl will register a script in the selected ScriptEmbedPosition (<strong>Head</strong>, <strong>InPlace</strong>, <strong>BeforeBodyEndTag</strong>). This control is also available in the page editor in the Scripts and Styles toolbox section. You can add references to scripts when editing the page through the UI, and even write inline scripts by hand. <a title="Register JS in Sitefinity Widget" href="http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/how-do-i-register-a-javascript-file-in-a-widget.aspx#1453540" rel="externals">ref</a></p></blockquote>
<p><strong>IMPORTANT</strong><br />
Place all the external JS link or code blocks at the end of the page rather than the &#8220;Head&#8221;. ie. use &#8220;<strong>BeforeBodyEndTag</strong>&#8221; for some reason sitefinity loads it&#8217;s own copy of jquery in the middle of the markup and it tends to mess up the rest of the scripts.<br />
eg.</p>
<blockquote><p>&lt;sf:JavaScriptEmbedControl runat=&#8221;server&#8221; ID=&#8221;jQyeryLink&#8221; ScriptEmbedPosition=&#8221;<strong>BeforeBodyEndTag</strong>&#8221; Url=&#8221;~/scripts/jquery.min.js&#8221;&gt;&lt;/sf:JavaScriptEmbedControl&gt;<br />
&lt;sf:JavaScriptEmbedControl runat=&#8221;server&#8221; ID=&#8221;JavaScriptEmbedControl1&#8243; ScriptEmbedPosition=&#8221;<strong>BeforeBodyEndTag</strong>&#8221; Url=&#8221;~/scripts/jquery.cycle.all.js&#8221;&gt;&lt;/sf:JavaScriptEmbedControl&gt;</p></blockquote>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <blockquote><p><strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/' rel='bookmark' title='Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts'>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
</ul></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/07/22/sitefinity-linking-external-js-file-in-master-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sitefinity &#8211; New Site Setup DOs and DON&#8217;Ts</title>
		<link>http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/</link>
		<comments>http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 07:08:28 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Bugs and Fixes]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Project Notes]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Project Setup]]></category>
		<category><![CDATA[References]]></category>
		<category><![CDATA[Sitefinity]]></category>
		<category><![CDATA[Solution]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=589</guid>
		<description><![CDATA[The followings are things to note while create a new sitefinity sites. Name the solution. Open the solution via Sitefinity Project Manager and save the solution in the project folder with proper name Set up DB with appropriate name. Click &#8220;Browse&#8221; on the Project Manager to set up the DB. Add all references as solution [...]<blockquote>
<strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
</ul></blockquote>]]></description>
			<content:encoded><![CDATA[<p>The followings are things to note while create a new sitefinity sites.</p>
<p><strong>Name the solution.</strong><br />
Open the solution via Sitefinity Project Manager and save the solution in the project folder with proper name</p>
<p><strong>Set up DB with appropriate name.</strong><br />
Click &#8220;Browse&#8221; on the Project Manager to set up the DB.</p>
<p><strong>Add all references as solution items.</strong><br />
Copy all reference DLLs from the bin folder of the project to the &#8220;Lib&#8221; folder. Add them under solution folder items.</p>
<p><a title="Sitefinity Initial Setup" href="http://www.flickr.com/photos/mayvelous/5960457026/" rel="external"><img src="http://farm7.static.flickr.com/6009/5960457026_9f1c8bcb21_m.jpg" alt="Sitefinity Initial Setup" width="240" height="213" /></a></p>
<p><strong>Repoint/Rereference the dlls from &#8220;Lib&#8221; folder</strong><br />
Remove all sitefinity related references from the project and rereferences them from the &#8220;Lib&#8221; folder.<br />
<strong>Tip</strong>: The easiest way to reference the sitefinity related dlls to the project file would be:<br />
- open the project file in the notepad<br />
- search for &#8220;bin\&#8221;<br />
- replace the appropriate dll refernces with &#8220;..\Lib\&#8221;<br />
<strong>DO NOT</strong> hit &#8220;Replace All&#8221; as not all places require replacement.<br />
All sitefinity related dlls will be rereferenced to correct folder EXCLUDING AjaxControlToolkit and a few others.<br />
Search for the followings:</p>
<blockquote><p>..\Reference Assemblies\AjaxControlToolkit.dll<br />
..\Reference Assemblies\Microsoft\WindowsAzure\Microsoft.WindowsAzure.Diagnostics.dll<br />
..\Reference Assemblies\Microsoft\WindowsAzure\Microsoft.WindowsAzure.ServiceRuntime.dll<br />
..\Reference Assemblies\Microsoft\WindowsAzure\Microsoft.WindowsAzure.StorageClient.dll</p></blockquote>
<p>and repoint to Lib folder as well.<br />
<strong>Note</strong>: Everytime you do the upgrade or add a custom dlls, make sure to add/update them in the Lib folder and repoint the project references to Lib.</p>
<p><strong>Rename the Assembly and DefaultNameSpace with the project name</strong><br />
Right click on the project &gt; Properties &gt; Application tab &gt; Type in project name in the &#8220;Assembly name&#8221; and &#8220;Default namespace&#8221; textboxes.</p>
<p><a title="Rename Assembly" href="http://www.flickr.com/photos/mayvelous/5960457046/" rel="externals"><img src="http://farm7.static.flickr.com/6145/5960457046_bd748dfe22_m.jpg" alt="Rename Assembly" width="240" height="81" /></a></p>
<p><strong>Build the solution</strong><br />
If the aboves are done correctly, your solution will build successfully and once browsed, will display &#8220;Thank you for visiting our web site. Please return soon for updates.&#8221;<br />
Else you&#8217;ll get the error mentioned in the DON&#8217;T section below.</p>
<p><strong>DON&#8217;T</strong></p>
<p><strong>Don&#8217;t use dots &#8220;.&#8221; in the project name.</strong><br />
Current version throws error when using dots in the project name.<br />
<strong>Don&#8217;t build the solution before repointing the references.</strong><br />
After creating a new sitefinity site using Sitefinity Project Manager, do not build the project or solution as it will overwrite the dlls from the bin folder and throw the following error.<br />
_&#8221;Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&#8221;_ <a title="Data Reference Error" href="http://www.sitefinity.com/devnet/forums/sitefinity-4-x/bugs-issues/422014.aspxhttp://www.sitefinity.com/devnet/forums/sitefinity-4-x/bugs-issues/telerik-openaccess-mysql-data-reference-error.aspx" rel="externals">Ref</a></p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <blockquote><p><strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
<li><a href='http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/' rel='bookmark' title='Checking SQL Server Edition Version'>Checking SQL Server Edition Version</a></li>
</ul></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/07/21/sitefinity-new-site-setup-dos-and-donts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking SQL Server Edition Version</title>
		<link>http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/</link>
		<comments>http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/#comments</comments>
		<pubDate>Wed, 04 May 2011 23:59:13 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[SQL Management Studio]]></category>
		<category><![CDATA[SQL Server Versions]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=587</guid>
		<description><![CDATA[While working on this one release, I had to do lots of backup, restore, and scripts for different database server versions. Run this script a lot today. Noted that this script is very handy to check out the server edition and version. select serverproperty('edition') select @@version And another annoying thing I found is that when you [...]<blockquote>
<strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
</ul></blockquote>]]></description>
			<content:encoded><![CDATA[<p>While working on this one release, I had to do lots of backup, restore, and scripts for different database server versions. Run this script a lot today. Noted that this script is very handy to check out the server edition and version.</p>
<p><code>select serverproperty('edition')<br />
select @@version</code></p>
<p>And another annoying thing I found is that when you script the whole database with schema + data, it generates huge script file which sometimes cannot open in SQL Management Studio and even if the file gets opened, cannot execute it due to not enough memory problem. So found out that I cannot solve the problem of restoring backups on different servers by scripting whole db.</p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <blockquote><p><strong>Related Posts:</strong><ul>
<li><a href='http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/' rel='bookmark' title='List storedprocedures or database objects by last modified date'>List storedprocedures or database objects by last modified date</a></li>
</ul></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/05/05/checking-sql-server-edition-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List storedprocedures or database objects by last modified date</title>
		<link>http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/</link>
		<comments>http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/#comments</comments>
		<pubDate>Mon, 02 May 2011 04:23:33 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[storedprocedures]]></category>
		<category><![CDATA[system objects]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=584</guid>
		<description><![CDATA[I learnt something new today. I needed to make a release which includes lots of changes to DB over 3 months period and needed a quick way to figure out which staging db objects to move across to the production. I wished many times to list storedprocedures by last modified date but stupid enough never [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I learnt something new today. I needed to make a release which includes lots of changes to DB over 3 months period and needed a quick way to figure out which staging db objects to move across to the production.</p>
<p>I wished many times to list storedprocedures by last modified date but stupid enough never Google it and just did the painful way of noting down and scripting  them. Then I face the problem of all those script files keep piling up over the period of time and lost track of which scripts have been executed or not.</p>
<p>Today I&#8217;m in a bit of sensible mode and did a quick googling and found this useful script, so I&#8217;m posting here for later reference.</p>
<p><strong>Listing last modified storedprocedures</strong><br />
<code>select name, create_date, modify_date<br />
from sys.procedures<br />
order by modify_date desc</code></p>
<p><strong>Listing last modified tables</strong><br />
<code>select name, create_date, modify_date<br />
from sys.tables<br />
order by modify_date desc</code></p>
<p><strong>Listing db objects by type and date</strong><br />
<code>SELECT *<br />
FROM sys.objects<br />
WHERE type in ('P', 'U')<br />
AND DATEDIFF(D,modify_date, GETDATE()) &lt; 90</code></p>
<p>Type &#8220;P&#8221; is for storedprocedures and &#8220;U&#8221; for tables. More on available Types: <a title="sys.object" rel="external" href="http://msdn.microsoft.com/en-us/library/ms190324.aspx">http://msdn.microsoft.com/en-us/library/ms190324.aspx</a></p>
<p>Now that I know which objects have been last updated, I can do the DB script very easily by just selecting those objects. Sweet isn&#8217;t it? <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/05/02/list-storedprocedures-or-database-objects-by-last-modified-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My bullshit&#8217;s sweet perfume etc</title>
		<link>http://www.mayvelous.com/2011/02/07/my-bullshits-sweet-perfume-etc/</link>
		<comments>http://www.mayvelous.com/2011/02/07/my-bullshits-sweet-perfume-etc/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 11:29:29 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Humors]]></category>
		<category><![CDATA[Life Style]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=581</guid>
		<description><![CDATA[Yet another random mumblings or something like what&#8217;s that cartoon says: &#8220;My bullshit&#8217;s sweet perfume etc&#8221; Via: Gapingvoid Damn Dishwasher I need a good flask or a little teapot for my tea. Don&#8217;t wanna waste tea bags for each cup of hot water I drink. 1 tea bag can be used for about 3 cups [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Yet another random mumblings or something like what&#8217;s that cartoon says: &#8220;<strong>My bullshit&#8217;s sweet perfume etc</strong>&#8221; <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.mayvelous.com/externals/gapingvoidimg/11444661503-thumb.jpg" alt="GapingVoid - My bullshit's sweet perfume etc" /><br />
Via: <a title="Gapingvoid" href="http://gapingvoid.com/">Gapingvoid</a></p>
<p><strong>Damn Dishwasher</strong><br />
I need a good flask or a little teapot for my tea. Don&#8217;t wanna waste tea bags for each cup of hot water I drink. 1 tea bag can be used for about 3 cups ie. I just want a mild lukewarm tea so gotta get a good little flask and have to keep it save in my drawer. Whenever I clean a cup and keep it on my desk, it disappears the next day. The office cleaner must have taken it back to the kitchen. Let me keep my own clean cup at least! I don&#8217;t like the dishwasher they have here, it&#8217;s not clean at all and very disgusting with many residues still sticking to the dishes after. Why can&#8217;t they just leave a traditional liquid soup and a sponge there! Anyways&#8230;You see, I use this folded tissue paper to cover my tea cup just to keep it warm a bit longer. I&#8217;ve been wondering why the side facing the hot water doesn&#8217;t get wet but the outer side does. Hmm someone care to explain me the reason? I&#8217;ve never been good at Chemistry. <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align: center;"><a title="04/02/2011 by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/5415288112/"><img src="http://farm6.static.flickr.com/5059/5415288112_5baf0295ac_m.jpg" alt="04/02/2011" width="240" height="180" /></a><a title="04/02/2011 by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/5415287632/"> <img src="http://farm6.static.flickr.com/5300/5415287632_81b8e09a53_m.jpg" alt="04/02/2011" width="180" height="240" /></a></p>
<p><strong>Tweets of the week</strong><br />
I just find this two pretty amusing.<br />
<a title="kaoskongo tweet" href="http://twitter.com/kaoskongo/status/33024234137583616">@kaoskongo</a> #YouKnowYourFijian &#8216;Umbrella&#8217; is pronounced &#8216;Um-ba-re-lla&#8217; #ella #ella</p>
<p><a title="sher0d tweet" href="http://twitter.com/sher0d/status/32561299728637952">@sher0d</a> Just viewed source on Bing: &lt;html&gt;&lt;head&gt;&lt;title&gt;Bing&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;iframe src=&#8221;http://www.google.com&#8221;&gt;&lt;/iframe&gt;&lt;/body&gt;&lt;/html&gt;</p>
<p><strong>Aussie Guys</strong><br />
Yesterday I was walking along Pitt St towards Castlereagh St and saw this two men kissing passionately in the middle of a very crowded street. Then another couple around World Square was hugging and whispering as they walk. Again this morning when I was on the way to work, on the bus, this big guy sitting next to me was flirting on the phone but I can very clearly hear the receiver from the other end was a man as well. Then I remember my Czech ex-flatmate once says; &#8220;In Australia, all the guys are either <strong>Married</strong>, <strong>Taken </strong>or <strong>Gays</strong>&#8220;. Hmm&#8230;O&#8230;K&#8230; I have no discrimination toward bi, tri, quad or whatever genders. I just find that people over here are very passionate and very openly show their affection in the public places. May be I&#8217;m just a traditionalist or come from a place where I don&#8217;t often see those kind of public affections so it&#8217;s kind of new for me.</p>
<p><strong>Santa&#8217;s Close Relatives</strong><br />
I always have a problem with hairy people, especially those with extreme facial hair. I just can&#8217;t understand why they&#8217;re so very much in love with their facial hair; some cultivate them very carefully, some just have them for the sake of having them and some just doesn&#8217;t own a mirror or a shave. Whatever their reasons are, they just freak me out and kind of scare me. We had a lunch at this bar, <a title="Lord Nelson Brewery" rel="external" href="http://www.lordnelsonbrewery.com/">Lord Nelson Brewery</a>, last Friday. It was quite a crowded lunch hour; our table was right beside the entrance and 80% of the guys coming in have all those ugly facial hair and untidy long bird nest hair&#8230;urgh! Anyways, the lunch was nice, I had chilli crab spaghetti. I&#8217;m thinking of trying out the pie next time cos&#8217; the table next to us were having pies and I&#8217;m very much curious about what those green stuffs on their pies are.</p>
<p>Ok that&#8217;s all for now. Ohhohoho <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
<img src="http://mayvelous.com/externals/gapingvoidimg/opinionated519.jpg" alt="Opinionated" /></p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/02/07/my-bullshits-sweet-perfume-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSDN Magazines: Silverlight Pivot Viewer</title>
		<link>http://www.mayvelous.com/2011/02/04/msdn-magazines-silverlight-pivot-viewer/</link>
		<comments>http://www.mayvelous.com/2011/02/04/msdn-magazines-silverlight-pivot-viewer/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 04:35:10 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[MSDN Magazines]]></category>
		<category><![CDATA[Silverlight Pivot Viewer]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=578</guid>
		<description><![CDATA[I was checking out this Silverlight Pivot Viewer where you can browse through 10yrs worth of MSDN Magazines; found it pretty neat fast loading interface but it&#8217;s annoying when you select an article and click either &#8220;Read Article&#8221; or &#8220;Download Code&#8221; link, it redirects you to the article page on the same viewer page. And [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I was checking out this <a title="Silverlight Pivot Viewer" href="http://msdn.microsoft.com/en-gb/magazine/default.aspx" target="_blank"><strong>Silverlight Pivot Viewer</strong></a> where you can browse through 10yrs worth of <strong><a title="MSDN Magazines Silverlight Pivot Viewer" href="http://msdn.microsoft.com/en-gb/magazine/default.aspx">MSDN Magazines</a></strong>; found it pretty neat fast loading interface but it&#8217;s annoying when you select an article and click either &#8220;Read Article&#8221; or &#8220;Download Code&#8221; link, it redirects you to the article page on the same viewer page. And when you want to go back, you have to relaunch the viewer and reenter the search criteria again. I wish they make the article links open in new window so we can still keep viewer open.</p>
<p>Below are the screenshot of the article page cloud based on the search criteria I entered and the zoom in view of it.</p>
<p><a title="Silverlight Pivot Viewer by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/5415152678/"><img src="http://farm5.static.flickr.com/4075/5415152678_355fccdb74_m.jpg" alt="Silverlight Pivot Viewer" width="240" height="123" /></a><a title="Silverlight Pivot Viewer by mayvelous, on Flickr" href="http://www.flickr.com/photos/mayvelous/5414542271/"> <img src="http://farm5.static.flickr.com/4152/5414542271_58dce9ea2e_m.jpg" alt="Silverlight Pivot Viewer" width="240" height="122" /></a></p>
<p>Anyways, it&#8217;s good that we can search all MSDN articles using this thing quite easily so I&#8217;m pretty satisfy with it.</p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/02/04/msdn-magazines-silverlight-pivot-viewer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oh Dear Me &amp; My Dances</title>
		<link>http://www.mayvelous.com/2011/02/04/oh-dear-me-my-dances/</link>
		<comments>http://www.mayvelous.com/2011/02/04/oh-dear-me-my-dances/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 03:41:19 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Life Style]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[Step Up Dance Studio]]></category>
		<category><![CDATA[Zouk-Lambada]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=575</guid>
		<description><![CDATA[We had a Zouk Lambada beginner class yesterday evening. It was really hard dance steps for us (me) though it&#8217;s only a few beginner steps to learn but some of us (me) just can&#8217;t follow. It&#8217;s really sexy dance if you dance it well; the moves are so cool when the instructor and another assistance [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>We had a <strong><a title="Zouk Lambda" href="http://en.wikipedia.org/wiki/Zouk-Lambada">Zouk Lambada</a></strong> beginner class yesterday evening. It was really hard dance steps for us (me) though it&#8217;s only a few beginner steps to learn but some of us (me) just can&#8217;t follow. It&#8217;s really sexy dance if you dance it well; the moves are so cool when the instructor and another assistance instructor demonstrated to us. There&#8217;s no way we can dance like that at this stage since we are still very much struggling with just one basic foot work.</p>
<p>&#8220;<strong>Anticipation leads to disappointment</strong>&#8220;, said so the instructor many times. He kept telling us to follow the men&#8217;s lead and let the guys do the thinking cos&#8217; they are the brains here and women just follow whatever the guys do.<br />
He said, there are only two rules in dancing (and in life as well);</p>
<blockquote><p>1st rule &#8211; &#8220;The man is always right&#8221;;<br />
2nd rule, &#8220;If you think he&#8217;s wrong, refer to rule #1&#8243;.</p></blockquote>
<p>If you step on the guy&#8217;s feet, say sorry cos&#8217; it&#8217;s your fault, you&#8217;re not following the guy&#8217;s lead.<br />
If he step on your toes, you apologise, it&#8217;s again your fault, cos&#8217; you didn&#8217;t move your foot back.<br />
(hmm&#8230;)</p>
<p>I would agree to follow the lead if the guy is a good leader but some of the guys are just very bad at dancing; forget about leading, they can&#8217;t even get their own footwork right. We have to rotate around the floor so get to dance with everyone. You make heaps of mistakes if the guy partner is terrible. There&#8217;s no team work in dancing, it&#8217;s just follow the guy&#8217;s lead (according to the instructor) so blame it all on the guys. It&#8217;s quite true cos&#8217; you dance so well if you get to partner with bronze level students or an advance level guys. They can lead you on not only on the footwork but also on the body movement as well. For us beginners, we only concentrate on the footwork and none at all for body/hip movement that all of us dancing like stiff mechanical robots at the moment.</p>
<p>You have to practice a lot in order to get the foot work right without looking down at the feet all the time. But for me, I forget the steps the min I step out of the studio so there&#8217;s no way for me to improve in dancing. Every Friday 8-11pm is a social dance where you can practice whatever you learn with everyone. The music keeps changing every few min and you get to dance with whoever ask you to dance. The problem for me is, I don&#8217;t even know which music beat is for which type of dance and even if I kinda know the beat, I forgot the footwork for the dance. <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  I&#8217;m totally hopeless in this area. At the last social dance, this girl asked me what&#8217;s my plan after this class, and I told her I have no idea cos&#8217; I wasn&#8217;t planning to join the classes to start with and I&#8217;m just coming here for a bit of laughter and fun since I need to de-stress myself. As for her, she comes to the studio to practice everyday, she&#8217;s really an advance level once and can dance so beautifully, plus she&#8217;s a very pretty Java Software developer. Whoop what a girl!</p>
<p>Anyways, so far I&#8217;m enjoying the lessons except for getting occasional sore toes cos&#8217; the guys keep stepping on my toes. Especially those tall guys who have long steps which keep clashing with my steps. And yes, yes, I did apologise them for not moving my foot far enough. I get hurt and have to apologise too, not good at all! The instructor told me I think too much; he told me not to think at all but just follow the guy and go with the flow. But but, I just can&#8217;t do it, my brain just automatically tick tick tick and have to go figure out what&#8217;s the next step is, so yes, my anticipation keeps getting me sore feet and disappointment. Nevertheless, I&#8217;m enjoying the dances so far!</p>
<p>Here is my favorite Zouk vid published on the studio&#8217;s site. You can check out <strong><a title="Rio Zouk Vids" href="http://www.adance.com.au/riozouk.php">some more vids</a></strong> and a bit of the info on Zouk here. They are all performed at the &#8220;<strong><a title="Step Up Dance Studio" href="http://www.adance.com.au/">Step Up Dance Studio</a></strong>&#8220;. So very cool yet so hard isn&#8217;t it?</p>
<p><a href="http://www.youtube.com/embed/VRjfhdbRbEM">Zouk-Lambada</a><br />
<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/VRjfhdbRbEM" frameborder="0" allowfullscreen></iframe></p>
<p>And here are recent <strong><a title="Step Up Dance Studio - Spring Ball Performances" href="http://www.youtube.com/user/stepupdancestudioAUs">Spring Ball performances</a></strong> and previous functions too. They are asking if we want to participate in the next function. We can ask the instructor of our choice to partner with us and he&#8217;ll teach us the choreography and everything. It&#8217;s pretty fun to watch all those previous performances.</p>
<p>Oh yes, coming Friday is V Day special social dance function so everyone has to wear pink or hot pink or anything to do with pink. Let&#8217;s see what the guys wear then. Ok, that&#8217;s all for now and I&#8217;ll be at the social dance tonight.</p>
<p>Enjoy your Friday!</p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/02/04/oh-dear-me-my-dances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System.Web.UI.HtmlControls.HtmlGenericControl</title>
		<link>http://www.mayvelous.com/2011/01/05/system-web-ui-htmlcontrols-htmlgenericcontrol/</link>
		<comments>http://www.mayvelous.com/2011/01/05/system-web-ui-htmlcontrols-htmlgenericcontrol/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 04:08:33 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Project Notes]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[System.Web.UI.HtmlControls.HtmlGenericControl]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=572</guid>
		<description><![CDATA[I learn something new today (I&#8217;m sure most of you already know, but I just found out). I didn&#8217;t know we can use html tags such as div, span etc as html server controls. I do know if you want to convert html controls into server control, you just have to add runat=&#8221;server&#8221; element but [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I learn something new today (I&#8217;m sure most of you already know, but I just found out). I didn&#8217;t know we can use html tags such as div, span etc as html server controls. I do know if you want to convert html controls into server control, you just have to add runat=&#8221;server&#8221; element but using div container as server control is a different story.</p>
<p>I normally use literal or panel server controls to show or hide the confirmation messages. But in this code, the div tag can act as a panel control by declaring it as HtmlGenericControl.</p>
<p>In the front-end you add id and runat=&#8221;server&#8221; elements to the div tag.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;fieldset&gt;
	&lt;h3&gt;Registration Validation&lt;/h3&gt;
	&lt;div id=&quot;divValidated&quot; runat=&quot;server&quot;&gt;
		Your account has been validated. You may now log in.
	&lt;/div&gt;
	&lt;div id=&quot;divNoAccount&quot; runat=&quot;server&quot;&gt;
		No matching account. If it has been over 30 days since you registered your
		account will have been deleted. Please sign up again.
	&lt;/div&gt;
	&lt;div id=&quot;divNoNeed&quot; runat=&quot;server&quot;&gt;
		Your account has already been validated.
	&lt;/div&gt;
&lt;/fieldset&gt;
</pre>
<p>In the back-end you declare it as HtmlGenericControl.</p>
<pre class="brush: csharp; title: ; notranslate">
protected System.Web.UI.HtmlControls.HtmlGenericControl divValidated;
protected System.Web.UI.HtmlControls.HtmlGenericControl divNoAccount;
protected System.Web.UI.HtmlControls.HtmlGenericControl divNoNeed;
</pre>
<p>Voila, you got your div panel with all those member variables you can make use of. So here is a little info on <strong>HtmlGenericControl</strong>.</p>
<blockquote><p>Use this class to represent an HTML server control element not directly represented by a .NET Framework class, such as <strong>&lt;span&gt;</strong>, <strong>&lt;div&gt;</strong>, <strong>&lt;body&gt;</strong>, or <strong>&lt;font&gt;</strong>.<br />
<strong><span>Caution</span></strong><br />
<span>This control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input.<br />
<a title="HtmlGenericControl Class" href="http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlgenericcontrol.aspx" target="_blank">HtmlGenericControl Class</a><br />
<a title="HtmlGenericControl Members" href="http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlgenericcontrol_members%28v=vs.71%29.aspx" target="_blank">HtmlGenericControl Members</a><br />
</span></p></blockquote>
<p>Pretty cool isn&#8217;t it? Well, I didn&#8217;t know that and now I know. <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2011/01/05/system-web-ui-htmlcontrols-htmlgenericcontrol/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;M&#8221; for &#8220;May&#8221;</title>
		<link>http://www.mayvelous.com/2009/10/09/m-for-may/</link>
		<comments>http://www.mayvelous.com/2009/10/09/m-for-may/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 07:42:11 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[Aside Notes]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Humors]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tag Game]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=559</guid>
		<description><![CDATA[I was tagged on facebook and couldn&#8217;t figure out how to post a note there so I&#8217;m posting here anyways. What is your name: May A four Letter Word: Moon A boy&#8217;s Name: Michael A girl&#8217;s Name: Marilyn An occupation: Manager A color: Magenta Something you&#8217;ll wear : Marc Jacobs + Maybelline A food: Mutton [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I was tagged on facebook and couldn&#8217;t figure out how to post a note there so I&#8217;m posting here anyways.</p>
<ol>
<li> What is your name: <em>May</em></li>
<li>A four Letter Word: <em>Moon</em></li>
<li>A boy&#8217;s Name: <em>Michael</em></li>
<li>A girl&#8217;s Name: <em>Marilyn</em></li>
<li>An occupation: <em>Manager</em></li>
<li>A color: <em>Magenta</em></li>
<li>Something you&#8217;ll wear : <em>Marc Jacobs + Maybelline</em></li>
<li>A food: <em>Mutton + Mashed Potatoes (Moon Cake + M&amp;Ms for dessert)</em></li>
<li>Something found in the bathroom: <em>Mat + Medicine cabinet </em></li>
<li>A place: <em>Melbourne</em></li>
<li>A reason for being late: <em>Malaria or Mad cow disease <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </em></li>
<li>Something you&#8217;d shout: <em>Mwahahaha!</em></li>
<li>A movie title: <em>Me, Myself &amp; Irene</em></li>
<li>Something you drink: <em>Mocha </em></li>
<li>A musical group: <em>Muse</em></li>
<li>An animal: <em>Mongoose</em></li>
<li>A street name: <em>Maunicau Rd (ok not exactly a street)</em></li>
<li>A type of car: <em>Mini Cooper (Mr. Bean&#8217;s car) or Mini Bus</em></li>
<li>The title of a song: <em>My Life Would Suck Without You, My Heart Will Go On</em></li>
<li>A verb:  <em>Motivate</em></li>
</ol>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2009/10/09/m-for-may/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SDLC &#8211; Software Development Lifecycle</title>
		<link>http://www.mayvelous.com/2009/10/06/sdlc-software-development-lifecycle/</link>
		<comments>http://www.mayvelous.com/2009/10/06/sdlc-software-development-lifecycle/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:23:35 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SDLC]]></category>
		<category><![CDATA[Software Development Lifecycle]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=552</guid>
		<description><![CDATA[Saw this over at &#8220;In search of simplicity, quality and tranquility in software engineering&#8220;; a series of posts on SDLC &#8211; Software Development Lifecycle. Thought a good series to follow and read it over the weekend. Love the graphics on each post! SDLC – Software Development Lifecycle … what’s the point? (part 1 of many) [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Saw this over at &#8220;<a title="SDLC software development lifecycle" rel="external" href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/10/06/sdlc-software-development-lifecycle-what-s-the-point-posts-links.aspx">In search of simplicity, quality and tranquility in software engineering</a>&#8220;; a series of posts on <strong>SDLC &#8211; Software Development Lifecycle</strong>. Thought a good series to follow and read it over the weekend. Love the graphics on each post!</p>
<p align="center"><a title="SDLC software development lifecycle" rel="external" href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/10/06/sdlc-software-development-lifecycle-what-s-the-point-posts-links.aspx"><img title="SDLC" src="http://www.mayvelous.com/wp-content/uploads/SDLC.jpg" alt="SDLC" width="450" height="345" /></a></p>
<blockquote>
<ol>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/02/01/sdlc-software-development-lifecycle-what-s-the-point-part-1-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … what’s the point? (part 1 of many)</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/02/01/sdlc-software-development-lifecycle-closer-look-at-basics-part-2-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … closer look at basics (part 2 of many)</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/02/03/sdlc-software-development-lifecycle-exploring-common-models-part-3-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … exploring common models (part 3 of many)</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/02/05/sdlc-software-development-lifecycle-agility-strikes-back-with-energy-part-4-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … agility strikes back with energy (part 4 of many)</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/02/06/sdlc-software-development-lifecycle-is-prototyping-part-of-the-good-the-bad-and-or-the-evil-part-5-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … is prototyping  part of the good, the bad and/or the evil? (part 5 of many)</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/02/22/sdlc-software-development-lifecycle-analyzing-the-battle-ahead-part-6-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … analyzing the battle ahead (part 6 of many)</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/02/26/sdlc-software-development-lifecycle-designing-the-blueprint-part-7-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … designing the blueprint (part 7 of many)</a></li>
<li>SDLC – Software Development Lifecycle … testing, the moment of truth (part 8 of many)</li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/03/07/sdlc-software-development-lifecycle-flashback-component-level-design-principles-part-9-of-many.aspx" target="_blank">SDLC – Software Development Lifecycle … flashback, component-level design principles (part 9 of many)</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/03/13/sdlc-software-development-lifecycle-visual-process-estimating-guessing-software-deliverables.aspx" target="_blank">SDLC – Software Development Lifecycle … Visual Process &amp; Estimating (Guessing) Software Deliverables</a></li>
<li><a href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/10/06/to-scrum-or-to-run-that-is-the-agile-question.aspx" target="_blank">To scrum or to Run … that is the agile question?</a> (<em>new</em>)</li>
<li><span style="color: #800000;">&#8212;<br />
</span></li>
</ol>
</blockquote>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2009/10/06/sdlc-software-development-lifecycle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Level of funniness</title>
		<link>http://www.mayvelous.com/2009/10/05/level-of-funniness/</link>
		<comments>http://www.mayvelous.com/2009/10/05/level-of-funniness/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 08:34:53 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Humors]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=550</guid>
		<description><![CDATA[Now that&#8217;s how you define how funny something is. When you say &#8220;LOL&#8221;, that means &#8220;hahahah&#8221;. via: stevecla Sponsor: (yet to be): Dreamhost: Get $50 Off with Discount Code: 50MV No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Now that&#8217;s how you define how funny something is. When you say &#8220;LOL&#8221;, that means &#8220;hahahah&#8221;. <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p align="center"><a href="http://www.flickr.com/photos/mayvelous/3982937354/" title="hahaha" rel="external"><img src="http://farm4.static.flickr.com/3429/3982937354_e1202ca554.jpg" width="500" height="149" alt="hahaha_2" /></a></p>
<p>via: <a href="http://blogs.msdn.com/stevecla01/archive/2009/10/03/ha-ha-ha.aspx" title="Ha Ha" rel="external">stevecla</a></p>
<p><a href="http://www.mayvelous.com"><img src="http://www.mayvelous.com/externals/thanks.gif" alt="Thanks for subscribing Mayvelous.com" border="0" /></a><br /><strong>Sponsor:</strong> <small>(yet to be)</small>: <a href="http://www.dreamhost.com/r.cgi?130793" title="Dreamhost $50 off discount code: 50MV">Dreamhost: Get $50 Off with Discount Code: <strong>50MV</strong></a></p> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2009/10/05/level-of-funniness/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

