<?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; .Net</title>
	<atom:link href="http://www.mayvelous.com/category/development/net/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>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>Dear DotLucene</title>
		<link>http://www.mayvelous.com/2009/02/14/dear-dotlucene/</link>
		<comments>http://www.mayvelous.com/2009/02/14/dear-dotlucene/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 11:30:10 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[DotLucene]]></category>
		<category><![CDATA[Lucene.Net]]></category>
		<category><![CDATA[Search Engine]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=508</guid>
		<description><![CDATA[Back in 2007 I posted a study notes post where I was planning to post about DotLucene and have forgotten about it. The other day I found these notes in my Google Notebook. Instead of lost and forgotten in my Google Notebook, it&#8217;s better to share here so someone can make a good use of [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Back in 2007 I posted a <a title="Study Notes" rel="external" href="http://www.mayvelous.com/2007/03/07/study-notes/">study notes post</a> where I was planning to post about DotLucene and have forgotten about it. The other day I found these notes in my Google Notebook. Instead of lost and forgotten in my Google Notebook, it&#8217;s better to share here so someone can make a good use of it. These are just links and notes dump that I found over various sites. I hope I didn&#8217;t forget to add the link back references for all the notes.</p>
<h3>What is Lucene.Net?</h3>
<blockquote><p>[ <a title="Lucene.Net" rel="external" href="http://incubator.apache.org/projects/lucene.net.html">#</a> ] Lucene.Net is a source code, class-per-class, API-per-API and algorithmatic port of the Java Lucene search engine to the C# and .NET  platform utilizing Microsoft .NET Framework.</p>
<p>Lucene.Net sticks to the APIs and classes used in the original Java  implementation of Lucene. The API names as well as class names are  preserved with the intention of giving Lucene.Net the look and feel of  the C# language and the .NET Framework. For example, the method  Hits.length() in the Java implementation now reads Hits.Length() in the C# port.</p>
<p>In addition to the APIs and classes port to C#, the algorithm of  Java Lucene is ported to C# Lucene. This means an index created with  Java Lucene is back-and-forth compatible with the C# Lucene; both at  reading, writing and updating. In fact a Lucene index can be  concurrently searched and updated using Java Lucene and C# Lucene  processes.</p></blockquote>
<p><span id="more-508"></span><br />
<strong>What happens to Lucene.NET library?</strong></p>
<p>This has <em>no effect</em> on Lucene.NET project incubated at Apache (<a title="Lucene.net at incubator" rel="external" href="http://incubator.apache.org/lucene.net/">http://incubator.apache.org/lucene.net/</a>) as <a title="dotlucene.net" rel="external" href="http://dotlucene.net">dotlucene.net</a> was an independent site promoting DotLucene/Lucene.NET.</p>
<h3>Where do I find more about Lucene.NET?</h3>
<ul>
<li>Official website: <a title="Official DotLucene Site" rel="external" href="http://incubator.apache.org/lucene.net/">http://incubator.apache.org/lucene.net/</a></li>
<li>Downloads: <a title="Download DotLucene" rel="external" href="http://incubator.apache.org/lucene.net/download/">http://incubator.apache.org/lucene.net/download/</a></li>
<li>API documentation: <a title="API Documentation" rel="external" href="http://incubator.apache.org/lucene.net/docs/">http://incubator.apache.org/lucene.net/docs/</a> (1.4.3, 1.9.1, 2.0, 2.1)</li>
<li>Apache Lucene &#8211; Java code: <a title="Apache Lucene" rel="external" href="http://lucene.apache.org/java/docs/">http://lucene.apache.org/java/docs/</a></li>
<li>Cross-Platform Implementations: <a title="Cross-Platform Implementations" rel="external" href="http://wiki.apache.org/lucene-java/LuceneImplementations">http://wiki.apache.org/lucene-java/LuceneImplementation</a></li>
<li>Sites that use Lucene/Powered By: <a title="Powered By" rel="external" href="http://wiki.apache.org/lucene-java/PoweredBy">http://wiki.apache.org/lucene-java/PoweredBy</a></li>
</ul>
<h3>Is <a title="dotlucene.net" rel="external" href="http://dotlucene.net">dotlucene.net</a> content available?</h3>
<p>The devoted dotlucene.net fans can download <strong>www.dotlucene.net</strong> content as a zip archive: <a title="dotlucene.net.zip" rel="external" href="http://www.dotlucene.net/www.dotlucene.net.zip">www.dotlucene.net.zip</a> (476 kB). <a title="DotLucene API Search Demo" rel="external" href="http://www.dotlucene.net/DotLuceneAPISearchDemo-1.1.zip">DotLucene API Search demo 1.1</a> (2.38 MB)</p>
<h3>Lucene.Net Architecture [ <a title="Lucene.Net Architecture" rel="external" href="http://weblogs.asp.net/lkempe/archive/2008/03/07/indexing-and-searching-business-entities-using-lucene-net-framework-part-2.aspx">#</a> ]</h3>
<p align="center"><img src="http://farm3.static.flickr.com/2412/2316420682_b2fe668382_o.jpg" alt="Lucene.Net Architecture" /></p>
<p>The lower layer is the data access layer (Storage). Then, the upper  layer is about accessing the index files (data access). This layer is  used by the indexing system and the searching system. On top of those  we find a layer for searching and a search request parser layer used by  the searching part of Lucene.Net. Identically we found a parser layer  and a document layer used for the indexation part of Lucene.Net.</p>
<blockquote><p>[ <a title="luncene.net" rel="external" href="http://vijay.screamingpens.com/archive/2008/07/21/linq-amp-lambda-part-4-lucene.net.aspx">#</a> ] At the heart of the engine is the <a title="Index search engine" rel="external" href="http://en.wikipedia.org/wiki/Index_%28search_engine%29">index</a> (similar to a database table) with fields (like database columns) that  contains documents (like database rows). To search one must write a  query and give it to the engine to finding matching documents. The  query language for a database is SQL and for Lucene it&#8217;s a <a title="lucene.net search query" rel="external" href="http://incubator.apache.org/lucene.net/docs/2.1/Lucene.Net.Search.Query.html">query</a> object (you can construct complex queries by composing an object graph of query instances).</p>
<p>Search engines are super fast for finding text because documents are stored in an <a title="Inverted Index" rel="external" href="http://en.wikipedia.org/wiki/Inverted_index">inverted index</a> (where the terms of each field is tokenized, hashed and sorted at index time).</p>
<p>In contrast to database queries, search engines can calculate  relevance scores when searching. This is because they use a better  querying model called the <a title="vector space mode" rel="external" href="http://en.wikipedia.org/wiki/Vector_space_model">vector space model</a> instead of the classical boolean model. In the vector model, documents and queries are represented as vectors. The <em><strong>similarity</strong></em> between a query and any document can be calculated with simple vector  operations. Documents with a higher similarity will appear higher in  the results. Conversely, databases only know if rows meets the <em><strong>where</strong></em> criteria or not and cannot compute a relevance score &#8211; this true/false classification is how the boolean model got it&#8217;s name.</p></blockquote>
<h3>Resources/Reference links</h3>
<ul>
<li><a title="Introduction Lucene.net" rel="external" href="http://www.codeproject.com/KB/library/IntroducingLucene.aspx">Introducing Lucene.Net</a></li>
<li><a title="Lucene an introduction" rel="external" href="http://semeru2007.wordpress.com/2007/10/17/lucene-an-introduction/">Lucene, an introduction</a></li>
<li><a title="DotLuceneSearch" rel="external" href="http://www.codeproject.com/KB/aspnet/DotLuceneSearch.aspx">DotLucene: Full-Text Search for Your Intranet or Website using 37 Lines of Code</a></li>
<li><a title="Working with Lucene.Net" rel="external" href="http://www.aspfree.com/c/a/BrainDump/Working-with-Lucene-dot-Net/">Working with Lucene.Net</a></li>
<li><a title="Lucene.Net Text Analysis" rel="external" href="http://www.codeproject.com/KB/cs/lucene_analysis.aspx">Lucene.Net &#8211; Text Analysis</a></li>
<li><a title="Indexing and search1" rel="external" href="http://weblogs.asp.net/lkempe/archive/2007/11/16/indexing-and-searching-business-entities-using-lucene-net-framework-part-1.aspx">Indexing and searching business entities using Lucene.Net Framework, part 1</a></li>
<li><a title="Indexing and search2" rel="external" href="http://weblogs.asp.net/lkempe/archive/2008/03/07/indexing-and-searching-business-entities-using-lucene-net-framework-part-2.aspx">Indexing and searching business entities using Lucene.Net Framework, part 2 </a></li>
<li><a title="Indexing and search3" rel="external" href="http://weblogs.asp.net/lkempe/archive/2008/03/07/indexing-and-searching-business-entities-using-lucene-net-framework-part-3.aspx">Indexing and searching business entities using Lucene.Net Framework, part 3</a></li>
<li><a title="C and lucene to index search" rel="external" href="http://www.aspcode.net/C-and-Lucene-to-index-and-search.aspx">C# and Lucene to index and search</a> (used VS 2005 and C#)</li>
<li><a title="Indexing database content with dotlucene" rel="external" href="http://www.wwwcoder.com/main/parentid/255/site/5017/68/default.aspx">Indexing Database Content with dotLucene</a></li>
<li><a title="Indexing and searching image files" rel="external" href="http://www.ddj.com/windows/210603684">Indexing and Searching Image files</a> (Using Lucene.NET along with open-source libraries)</li>
<li><a title="Full text search with hibernate search" rel="external" href="http://cagataycivici.wordpress.com/2007/03/06/full_text_search_with_hibernate/">Full Text Search with Hibernate Search</a></li>
<li><a title="Luke Lucene Index toolbox" rel="external" href="http://www.getopt.org/luke/">Luke &#8211; Lucene Index Toolbox</a></li>
<li><a title="LuSql" rel="external" href="http://lab.cisti-icist.nrc-cnrc.gc.ca/cistilabswiki/index.php/LuSql">LuSql</a> is a simple but powerful tool for building Lucene indexes from  relational databases. It is a command-line Java application for the  construction of a Lucene index from an arbitrary SQL query of a  JDBC-accessible SQL database.</li>
<li><a title="Implementing lucene.net search" rel="external" href="http://usoniandream.blogspot.com/2007/10/tutorial-implementing-lucenenet-search.html">Tutorial: implementing lucene.NET search </a></li>
<li><a href="http://code.google.com/p/cs2project/">cs2project</a></li>
<li>Lucene in Action book, <a title="Lucene in Action book1" rel="external" href="http://www.manning.com/hatcher2/">First</a> and <a title="Lucene in Action book2" rel="external" href="http://www.manning.com/hatcher3/">Second</a> Edition</li>
<li><a title="LuceneIntro" rel="external" href="http://today.java.net/pub/a/today/2003/07/30/LuceneIntro.html">Lucene Intro</a> and <a title="QueryParser Rules" rel="external" href="http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.html">QueryParser Rules</a> <em>by Erik Hatcher</em> (<em>Java version</em>)</li>
<li><a title="Introducing Lucene.Net" rel="external" href="http://www.codeproject.com/KB/library/IntroducingLucene.aspx">Introducing Lucene.Net</a>: A plunge intro creating a fast, full text index, with advanced searching capabilities.</li>
<li><a title="Linq to Lucene" rel="external" href="http://www.codeplex.com/linqtolucene">LINQ to Lucene</a>: Providing a custom LINQ solution for the Lucene Information Retrieval System, commonly referred to as a search-engine.
<ul>
<li><a title="Linq and Lambda" rel="external" href="http://vijay.screamingpens.com/archive/2008/07/21/linq-amp-lambda-part-4-lucene.net.aspx">LINQ &amp; Lambda, Part 4: Lucene.Net</a>.</li>
</ul>
</li>
<li>NHibernate.Search using Lucene.NET Full Text Index <em>by Simon Green</em>
<ul>
<li><a title="Lucene.net full text index1" rel="external" href="http://blogs.intesoft.net/post/2008/03/NHibernateSearch-using-Lucene-NET-Full-Text-Index-Part1.aspx">Part 1</a>: How to use Lucene.NET with NHibernate to provide full-text searching.</li>
<li><a title="Lucene.net full text index2" rel="external" href="http://blogs.intesoft.net/post/2008/03/NHibernateSearch-using-Lucene-NET-Full-Text-Index-Part2.aspx">Part 2</a>: Performing Google-like searches of NHibernate-persisted objects using Lucene.NET search engine.</li>
<li><a title="Lucene.Net full text index3" rel="external" href="http://blogs.intesoft.net/post/2008/04/NHibernateSearch-using-LuceneNET-Full-Text-Index-%28Part-3%29.aspx">Part 3</a>: Using Lucene.NET to find similar items for ‘posts like this’ or ‘related pages’.</li>
</ul>
</li>
<li><a title="C and lucene to index and search" rel="external" href="http://www.aspcode.net/C-and-Lucene-to-index-and-search.aspx">C# and Lucene to index and search</a>: This sample will show you how to use Lucene from your .NET application to index and search content.</li>
<li><a title="Fun with Lucene.Net for BlogEngineNet" rel="external" href="http://turbochimp.com/post/Fun-with-LuceneNet-for-BlogEngineNet.aspx">Fun with Lucene.Net for BlogEngine.Net</a> by Jared</li>
</ul>
<h3>Lucene.Net Cross-Platform Implementations: <a title="Lucene.Net Cross Platform Implementations" rel="external" href="http://wiki.apache.org/lucene-java/LuceneImplementations?action=fullsearch&amp;value=linkto%3A%22LuceneImplementations%22&amp;context=180">LuceneImplementations</a></h3>
<p>Lucene implementations in languages other than Java:</p>
<ul>
<li><a title="CLucene" rel="external" href="http://sourceforge.net/projects/clucene/"> CLucene</a> &#8211; Lucene implementation in C++</li>
<li><a title="Lucene.Net" rel="external" href="http://incubator.apache.org/lucene.net/"> Lucene.Net</a> &#8211; Lucene implementation in .NET</li>
<li><a title="Lucene4c" rel="external" href="http://incubator.apache.org/lucene4c/"> Lucene4c</a> &#8211; Lucene implementation in C</li>
<li><a title="LuceneKit" rel="external" href="http://www.dromasoftware.com/etoile/mediawiki/index.php?title=LuceneKit"> LuceneKit</a> &#8211; Lucene implementation in Objective-C (Cocoa/GNUstep support)</li>
<li><a title="Lupy" rel="external" href="http://divmod.org/trac/wiki/WhitherLupy"> Lupy</a> &#8211; Lucene implementation in Python (RETIRED)</li>
<li><a title="NLucene" rel="external" href="http://sourceforge.net/projects/nlucene/"> NLucene</a> &#8211; another Lucene implementation in .NET (out of date)</li>
<li><a title="Zend Search" rel="external" href="http://framework.zend.com/manual/en/zend.search.html"> Zend Search</a> &#8211; Lucene implementation in the Zend Framework for PHP 5</li>
<li><a title="Plucene" rel="external" href="http://search.cpan.org/search?query=plucene&amp;mode=all"> Plucene</a> &#8211; Lucene implementation in Perl</li>
<li><a title="KinoSearch" rel="external" href="http://www.rectangular.com/kinosearch/">KinoSearch</a> &#8211; a new Lucene implementation in Perl</li>
<li><a title="PyLucene" rel="external" href="http://pylucene.osafoundation.org/">PyLucene</a> &#8211;  GCJ-compiled version of Java Lucene integrated with Python</li>
<li><a title="MUTIS" rel="external" href="http://mutis.sourceforge.net/">MUTIS</a> &#8211;  Lucene implementation in Delphi</li>
<li><a title="Ferret" rel="external" href="http://ferret.davebalmain.com/trac/">Ferret</a> &#8211; Lucene implementation in Ruby</li>
</ul>
<h3>Other Search/Indexing Services</h3>
<ul>
<li>Searcharoo 4: <a title="C sharp search engine" rel="external" href="http://www.codeproject.com/KB/IP/Searcharoo_4.aspx">C# search engine: refactored to search Word, PDF and more</a></li>
<li>Searcharoo.Net: <a title="searcharoo.net" rel="external" href="http://www.searcharoo.net/">http://www.searcharoo.net/</a></li>
<li><a title="Castle Project" rel="external" href="http://www.castleproject.org/">CastleProject</a></li>
<li><a title="C Sharp Parser" rel="external" href="http://www.codeplex.com/csparser">C# Parser</a></li>
</ul>
<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/02/14/dear-dotlucene/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ClickOnce Deployment and the little AVG Free stumbling block</title>
		<link>http://www.mayvelous.com/2008/10/21/clickonce-deployment-and-the-little-avg-free-stumbling-block/</link>
		<comments>http://www.mayvelous.com/2008/10/21/clickonce-deployment-and-the-little-avg-free-stumbling-block/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 00:29:11 +0000</pubDate>
		<dc:creator>Zatlite</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Bugs and Fixes]]></category>
		<category><![CDATA[VS.Net]]></category>
		<category><![CDATA[Antivirus]]></category>
		<category><![CDATA[AVG 8.0]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=431</guid>
		<description><![CDATA[I was trying to deploy a .NET 2.0 application using ClickOnce Deployment the other day. I had all the IIS settings configured and folder paths entered correctly. When I clicked &#8216;Publish Now&#8217;, I got an error message that made me wonder if I needed to reinstall Visual Studio. Cannot publish because a project failed to [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I was trying to deploy a .NET 2.0 application using ClickOnce Deployment the other day.<br />
I had all the IIS settings configured and folder paths entered correctly.<br />
When I clicked &#8216;Publish Now&#8217;, I got an error message that made me wonder if I needed to reinstall Visual Studio. </p>
<blockquote><p>Cannot publish because a project failed to build.<br />
Could not find required file &#8216;setup.bin&#8217; in &#8216;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Engine&#8217;.
</p>
</blockquote>
<p><a href="http://www.flickr.com/photos/87407050@N00/2959325559/" title="Publishing ClickOnce Deployment by kalongthayann, on Flickr" rel="external"><img src="http://farm4.static.flickr.com/3271/2959325559_e9aa408a0e_m.jpg" width="240" height="207" alt="Publishing ClickOnce Deployment" /></a></p>
<p>My first reaction was oh damn, I don&#8217;t want to reinstall whatever it is that&#8217;s broken.<br />
My second smarter reaction was to google the error <img src='http://www.mayvelous.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
Found <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3770629&#038;SiteID=1" title="reference" rel="external">this post</a> on MSDN forums. </p>
<p>Basically, it was AVG Antivirus 8.0 that incorrectly identified and quarantined a required file as a Trojan.<br />
AVG Free marked the file C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Engine\setup.bin as a Trojan horse BackDoor.VB.DIY </p>
<p><a href="http://www.flickr.com/photos/87407050@N00/2959337667/" title="AVG Free Virus Vault by kalongthayann, on Flickr" rel="external"><img src="http://farm4.static.flickr.com/3145/2959337667_a1c3736f40_m.jpg" width="240" height="107" alt="AVG Free Virus Vault" /></a></p>
<p>Simply select the file and click the &#8216;Restore&#8217; button from AVG&#8217;s Virus Vault. (So glad I havn&#8217;t been emptying my vault!)</p>
<p>Once that little error was corrected, it was a simple matter to click &#8216;Publish Now&#8217; again and I was happily on my way to my first ever ClickOnce Deployment!<br />
I&#8217;m glad it wasn&#8217;t a serious problem requiring reinstalls. </p>
<p><strike>Some days, I wonder if I want to keep an antivirus program running on my computer.<br />
I don&#8217;t need much protection as I am careful in my mail box and I rarely visit websites out of google&#8217;s domain.<br />
Google Reader gets me everything I want to read anyway.<br />
</strike>Scratch that thought I lend my flash drive out to other people sometimes so it wouldn&#8217;t be a good idea to have no protection.<br />
I trust myself but you just can&#8217;t trust people&#8217;s machines.</p>
<p><a href="http://"><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/2008/10/21/clickonce-deployment-and-the-little-avg-free-stumbling-block/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 and the .Net Framework 4.0</title>
		<link>http://www.mayvelous.com/2008/09/30/visual-studio-2010-and-the-net-framework-40/</link>
		<comments>http://www.mayvelous.com/2008/09/30/visual-studio-2010-and-the-net-framework-40/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 09:22:41 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[VS.Net]]></category>
		<category><![CDATA[.Net Framework 4.0]]></category>
		<category><![CDATA[code-named Rosario]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Visual Studio Team System]]></category>
		<category><![CDATA[VSTS 2010]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=419</guid>
		<description><![CDATA[Just going through my feeds and this one interests me. There is an announcement of the next version of Visual Studio and .Net Framework: Visual Studio 2010 and .Net Framework 4.0. Visual Studio 2010 and the .NET Framework 4.0 mark the next generation of developer tools from Microsoft. Designed to address the latest needs of [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Just going through my feeds and this one interests me. There is an announcement of the next version of Visual Studio and .Net Framework: <a href="http://www.microsoft.com/presspass/press/2008/sep08/09-29VS10PR.mspx" title="Visual Studio 2010 and .Net Framework 4.0" rel="external">Visual Studio 2010 and .Net Framework 4.0</a>.</p>
<blockquote><p>Visual Studio 2010 and the .NET Framework 4.0 mark the next generation of developer tools from Microsoft. Designed to address the latest needs of developers, Visual Studio and the .NET Framework deliver key innovations in the following pillars:</p>
<ul>
<li><strong>Democratizing Application Lifecycle Management</strong><br />Application Lifecycle Management (ALM) crosses many roles within an organization and traditionally not every one of the roles has been an equal player in the process. Visual Studio Team System 2010 continues to build the platform for functional equality and shared commitment across an organization’s ALM process.</li>
<li><strong>Enabling emerging trends</strong><br />Every year the industry develops new technologies and new trends. With Visual Studio 2010, Microsoft delivers tooling and framework support for the latest innovations in application architecture, development and deployment.</li>
<li><strong>Inspiring developer delight</strong></br >Ever since the first release of Visual Studio, Microsoft has set the bar for developer productivity and flexibility. Visual Studio 2010 continues to deliver on the core developer experience by significantly improving upon it for roles involved with the software development process.</li>
<li><strong>Riding the next generation platform wave</strong><br />Microsoft continues to invest in the market leading operating system, productivity application and server platforms to deliver increased customer value in these offerings. With Visual Studio 2010 customers will have the tooling support needed to create amazing solutions around these technologies.</li>
<li><strong>Breakthrough Departmental Applications</strong><br />Customers continue to build applications that span from department to the enterprise. Visual Studio 2010 will ensure development is supported across this wide spectrum of applications.</li>
</ul>
</blockquote>
<p>Here is a full overview of <a href="http://msdn.microsoft.com/en-us/vstudio/products/cc948977.aspx" title="Visual Studio 2010 and .NET Framework 4.0" rel="external">Visual Studio 2010 and .NET Framework 4.0</a> and some more reading on vSTS 2010 (code-name &#8220;Rosario&#8221;): <a href="http://blogs.msdn.com/habibh/archive/2008/09/29/what-s-new-in-visual-studio-team-system-2010-issue-1.aspx" title="What’s new in Visual Studio Team System 2010" rel="external">What’s new in Visual Studio Team System 2010</a>. Read some more detail announcement on Somasegar&#8217;s (senior vice president of the Developer Division at Microsoft) post: <a href="http://blogs.msdn.com/somasegar/archive/2008/09/29/what-s-next-for-visual-studio-and-net-fx.aspx" title="What's next for Visual Studio and .NET FX?" rel="external">What&#8217;s next for Visual Studio and .NET FX?</a></p>
<p>Ok, 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> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2008/09/30/visual-studio-2010-and-the-net-framework-40/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio Gallery + MSDN Code Gallery</title>
		<link>http://www.mayvelous.com/2008/02/28/visual-studio-gallery-msdn-code-gallery/</link>
		<comments>http://www.mayvelous.com/2008/02/28/visual-studio-gallery-msdn-code-gallery/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 09:28:15 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Aside Notes]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[VS.Net]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=382</guid>
		<description><![CDATA[Just an aside note for myself. Visual Studio GalleryA place where all developers can go to find extensions to Visual Studio. The site has everything from community built power toys for VS to industry partner solutions for enterprise development. MSDN Code GalleryMSDN Code Gallery is your destination for downloading sample applications and code snippets , [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Just an aside note for myself.</p>
<blockquote><p><strong><a href="http://visualstudiogallery.com/" title="Visual Studio Gallery" rel="external">Visual Studio Gallery</a></strong><br />A place where all developers can go to find extensions to Visual Studio.  The site has everything from community built power toys for VS to industry partner solutions for enterprise development.</p>
<p><strong>MSDN Code Gallery</strong><br />MSDN Code Gallery is your destination for downloading sample applications and code snippets , as well as sharing your own resources.</p>
</blockquote>
<p>Via: (<a href="http://blogs.msdn.com/somasegar/archive/2008/02/27/visual-studio-gallery.aspx" title="VS Gallery" rel="External">#</a>) | (<a href="http://blogs.msdn.com/acangialosi/archive/2008/02/27/welcome-to-the-visual-studio-gallery.aspx" title="VS Gallery" rel="external">#</a>)</p>
<p>Updated: <a href="http://blogs.msdn.com/acangialosi/archive/2008/07/02/the-visual-studio-gallery-gets-a-fresh-set-of-features.aspx" rel="external" title="Visual Studio Gallery Gets New Features">New Features.</a> Thx Anthony.</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/2008/02/28/visual-studio-gallery-msdn-code-gallery/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Microsoft Certifications Lifecycle</title>
		<link>http://www.mayvelous.com/2008/02/09/microsoft-certifications-lifecycle/</link>
		<comments>http://www.mayvelous.com/2008/02/09/microsoft-certifications-lifecycle/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 14:17:01 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Certifications]]></category>
		<category><![CDATA[Microsoft exams]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=373</guid>
		<description><![CDATA[This is what I mean by I.T being cool yet sux, or exciting yet pain in the god knows where! We cannot survive in I.T profession if we don&#8217;t update yourself, ie. like&#8230;forever &#8230; and ever. Professional-series certifications (MCITP and MCPD) require an update every three years from the date that you earned the certification, [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>This is what I mean by I.T being cool yet sux, or exciting yet pain in the god knows where! We cannot survive in I.T profession if we don&#8217;t update yourself, ie. like&#8230;forever &#8230; and ever.</p>
<blockquote><p>Professional-series certifications (MCITP and MCPD) require an update every three years from the date that you earned the certification, or your certification will lapse.</p>
<p>More info: <a href="http://www.microsoft.com/learning/mcp/newgen/lifecycle/default.mspx" title="New Generation Certification Lifecycle Policies" rel="external">New Generation Certification Lifecycle Policies</a></p>
</blockquote>
<p>So like, I recently done 5 exams and become <a href="http://www.microsoft.com/learning/mcp/mcpd/entapp/default.mspx" title="MCPD Enterprise Application Developer" rel="external">MCPD &#8211; Enterprise Application Developer</a> or whatever. I still haven&#8217;t receive the certificates yet, must have been lost along with the <a href="http://www.mayvelous.com/?p=372" title="Cyclone Gene" rel="external">Cyclone Gene</a>. I entered my home address for mailing; should have use P.O.Box or work address.</p>
<p>Anyhow, according to that certification lifecycle policies, those papers prove their worth for 3years; after that you can throw them away and start pursuing new set of papers. So mine will last till 2011, then what &#8211; I don&#8217;t know.</p>
<p>PS: The <a href="http://www.microsoft.com/learning/mcp/offers/secondshot/default.mspx" title="Microsoft Second Shot Exam Offer" rel="external">Second Shot offer</a> extended till June 30, 2008 so you might as well take that chance and finish as much as you can.</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/2008/02/09/microsoft-certifications-lifecycle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Filtering Date Parts in LLBLGen</title>
		<link>http://www.mayvelous.com/2008/01/10/filtering-date-parts-in-llblgen/</link>
		<comments>http://www.mayvelous.com/2008/01/10/filtering-date-parts-in-llblgen/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 04:32:21 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[LLBLGen]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=368</guid>
		<description><![CDATA[Keeping in mind that LLBLGen generate dynamic sql statements and no need for storeprocedures, sometimes it&#8217;s hard for me to find the right code to retrieve data using complicated queries. Eg. those of multiple JOIN statements and DATEPART functions. The followings can be used in search functions where you search by date range or by [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Keeping in mind that LLBLGen generate dynamic sql statements and no need for storeprocedures, sometimes it&#8217;s hard for me to find the right code to retrieve data using complicated queries. Eg. those of multiple JOIN statements and DATEPART functions.</p>
<p>The followings can be used in search functions where you search by date range or by datepart such as by Day or Month or Year.</p>
<p>For my first scenario, I want to search records by &#8220;Date&#8221; ie. &#8220;dd/MM/yyyy&#8221; only and not considering the Time part.</p>
<p>By default when you insert a Date using WinForm DateTimePicker or Infragistic ultraDatePicker, the Time part goes in as 0s. eg. &#8220;10/01/2008 12:00:00&#8243;. But sometimes there are cases where you have to record the Time as well. My saved records include default Date values as well as DateTime values.</p>
<p><span id="more-368"></span></p>
<p>In such case, to search by Date (passing DateTime variable), we cannot use the normal PredicateExpression to filter records. If you&#8217;re using normal expression ie. <strong>filter.PredicateExpression.Add(EntityField.Field == _searchDate)</strong> while EntityField has Time value, that compare expression will never retrieve proper search result for _searchDate is passing as Date value with default Time value ie. 12:00:00/0s. To solve it, we have to choose either <strong>FieldCompareRangePredicate</strong><strong> or </strong><strong>FieldBetweenPredicate</strong> and split the date into StartDate and EndDate as in the following function.</p>
<pre class="brush: csharp; title: ; notranslate">
public EntityCollection&lt;actualflightentity&gt; SelectFlightsByDate(DateTime arrDate)
    {
        // Declare Flight EntityCollection
        EntityCollection&lt;actualflightentity&gt; _flightCollection = new EntityCollection&lt;actualflightentity&gt;(new ActualFlightEntityFactory());

        // Create RelationPredicateBucket named &quot;filter&quot;
        IRelationPredicateBucket filter = new RelationPredicateBucket();

        // Split passed variable ie. arrDate into startDate and endDate
        DateTime startDate = Convert.ToDateTime(arrDate.ToString(&quot;yyyy-MM-dd&quot;) + &quot; 00:00:00&quot;);
        DateTime endDate = Convert.ToDateTime(arrDate.ToString(&quot;yyyy-MM-dd&quot;) + &quot; 23:59:59&quot;);

        // Add FieldBetweenPredicate expression to the filter.
        filter.PredicateExpression.Add((new FieldBetweenPredicate(ActualFlightFields.ScheduledDateTime, null, startDate, endDate)));

        // Fetch the filtered EntityCollection and return it.
        using (DataAccessAdapter adapter = new DataAccessAdapter())
        {
            adapter.FetchEntityCollection(_flightCollection, filter);
            return _flightCollection;
        }
    }
</pre>
<p>For the second scenario, I need to search by &#8220;Year&#8221; part, where you pass &#8220;Integer&#8221; instead of &#8220;DateTime&#8221; property. Say, you are searching &#8220;Public Holidays&#8221; by &#8220;Year&#8221;. This function took me ages to figure it out. I tried using many predicates and even thought of creating a storeprocedure and use the &#8220;RetrievalProcedures&#8221; call. Finally after a long search in the documentation and the <a href="http://llblgen.com/tinyforum/Messages.aspx?ThreadID=10677&#038;HighLight=1" title="DbFunctionCall" rel="external">forum</a>, got the solution. Have to set the field with <strong>DbFunctionCall</strong>expression. Pheeeewwh! Check the following code and compare with the above.</p>
<pre class="brush: csharp; title: ; notranslate">
// Select All Public Holidays by Year
    public EntityCollection&lt;publicholidayentity&gt; SelectAllPublicHolidayByYear(int _year)
    {
        // Declaring Public Holiday EntityCollection
        EntityCollection&lt;publicholidayentity&gt; _publicHolidays = new EntityCollection&lt;publicholidayentity&gt;(new PublicHolidayEntityFactory());

        // Create RelationRedicateBucket for filter
        IRelationPredicateBucket filter = new RelationPredicateBucket();

        // Create a new PublicHoliday Date field and set the expression on that field.
        EntityField2 field = PublicHolidayFields.Date;
        field.SetExpression(new DbFunctionCall(&quot;YEAR&quot;, new object[] { PublicHolidayFields.Date }));

        // Apply the expression with value passed ie. _year and at to the filter.
        IPredicateExpression phExpression = new PredicateExpression(field == _year);
        filter.PredicateExpression.Add(phExpression);

        // Fetch the filtered EntityCollection and return it.
        using (DataAccessAdapter adapter = new DataAccessAdapter())
        {
            adapter.FetchEntityCollection(_publicHolidays, filter);
            return _publicHolidays;
        }
    }
</pre>
<p>There you have it.<br />Refer to this section of LLBLGen documentation for further information on Predicate Expressions.</p>
<blockquote><p>Generated code &#8211; The predicate system, Adapter<br />
Generated code &#8211; Field expressions and aggregates</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> <p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mayvelous.com/2008/01/10/filtering-date-parts-in-llblgen/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>.Net Framework Source Code Released</title>
		<link>http://www.mayvelous.com/2007/10/04/net-framework-source-code-released/</link>
		<comments>http://www.mayvelous.com/2007/10/04/net-framework-source-code-released/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 04:11:38 +0000</pubDate>
		<dc:creator>May</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Aside Notes]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[VS.Net]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=363</guid>
		<description><![CDATA[Source code for .Net Framework Libraries are available for download with the next release of VS 2008 and .Net 3.5 next year. ScottGu explains more. Have been said, it&#8217;s way too advance for me to dig through those source code as I&#8217;m still struggling to learn the efficient use of the libraries itself. But hey, [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Source code for .Net Framework Libraries are available for download with the next release of VS 2008 and .Net 3.5 next year. <a rel="external" title=".Net framework source code released" href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx"><br />
ScottGu explains more</a>.</p>
<p>Have been said, it&#8217;s way too advance for me to dig through those source code as I&#8217;m still struggling to learn the efficient use of the libraries itself. But hey, it&#8217;s all good that you get the source too. Cool!</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/2007/10/04/net-framework-source-code-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Licenses.licx and VSS</title>
		<link>http://www.mayvelous.com/2007/06/06/licenseslicx-and-vss/</link>
		<comments>http://www.mayvelous.com/2007/06/06/licenseslicx-and-vss/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 12:14:16 +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[Software]]></category>
		<category><![CDATA[VS.Net]]></category>
		<category><![CDATA[VSS]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.mayvelous.com/?p=349</guid>
		<description><![CDATA[In our current project, we have to work with WinForms using VS 2005 and VSS as the project source control. There are two solid developers and one developer/Product Manager involved in the coding of this project. Our Product Manager suggests and prefers we use VSS rather than SVN for better source management (check in/out). As [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>In our current project, we have to work with WinForms using VS 2005 and VSS as the project source control. There are two solid developers and one developer/Product Manager involved in the coding of this   project. Our Product Manager suggests and prefers we use VSS rather than SVN for better source management (check in/out). As for us, developers (me and my bro), we had a great time using SVN in the last   project and prefer to use SVN; nevertheless both of us are flexible and agreed to work with VSS after a few discussion. Things are fine when I focus on designing forms and my bro working on code behinds.   But the problem arises when we start testing on a few forms, which need both of us to work on design view.</p>
<p>In VS2005 WinForm IDE, it adds or writes to the licenses.licx file whenever you use custom controls/third party controls such as Infragistic in your form. Though I&#8217;m not so sure, I observe that the licenses.licx   file is not needed if you work entirely with normal winform controls, but with third party controls, it acts as a config file storing the references of the controls.</p>
<p>Once you add a project to VSS DB, the licenses.licx file is always binded since it&#8217;s part of the project property. You can check out the code just fine but when you work with the form design, you&#8217;re forced to   check out the licenses file. If you don&#8217;t/can&#8217;t check it out, you can&#8217;t do anything to the form design. With VSS, it&#8217;s really a pain if one developer checked out the licenses file exclusively, others can&#8217;t do any   design work on any of the forms. To solve the exclusive checkout on licenses file, we tried to exclude the licenses.licx from the project and let it stay in local folder. Unfortunately, the file itself is part of   project property and once it&#8217;s excluded, it loses the references as well. For that little experiment, I&#8217;ve lost two of my form designs and have to start all over; thank god, they were just small forms. With that   failed experiment and out of ideas, we searched for the solution on the web. Found out that it was a known issue for VS2005 IDE and the fix would only available with the next release of Visual Studio.   The only work around they suggest so far is to use VSS multiple check out mode.</p>
<p>We don&#8217;t want to use Multiple check out mode in our VSS DB for:</p>
<ol>
<li>VSS doesn&#8217;t provide individual file multiple check out mode but for the whole DB,</li>
<li>There are a few careful steps to take before checking back in the multiple check out file. (You cannot check in directly. You must get latest on that file to ensure you get different versions from other   developers to merge the file then only you can successfully check it back in.)</li>
<li>VSS merge is a real pain and <strike>should</strike> I would never trust it. Unless ofcos&#8217; you don&#8217;t care about losing some of your codes or have a separate backup, go a head and try it out.</li>
<li>There is the need of source control administrator for merging files.</li>
<li>And again, don&#8217;t trust VSS Merge and can&#8217;t rely on it.</li>
</ol>
<p>But untill the next VS release, it&#8217;s the only possible way so we don&#8217;t have a choice but to use that method. Don&#8217;t have time to dig up properly either. So gonna stuck with this problem for the whole project. It’s just making my life miserable. *sign*</p>
<p><strong>Readings</strong>: <a title="Licenses file problem" rel="external" href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=123332">MS Feedback</a> | <a title="Check out license file" rel="external" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=173093&#038;SiteID=1">Forum Q&#038;A</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/2007/06/06/licenseslicx-and-vss/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

