<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Web Developer Friend - Viral Sarvaiya</title>
	<atom:link href="http://viralsarvaiya.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://viralsarvaiya.wordpress.com</link>
	<description>Web Developer Friends, dot net Developer, Sql Server Developer</description>
	<lastBuildDate>Sun, 22 Jan 2012 21:40:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='viralsarvaiya.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/11202ed7c31bbe9e2c7d505c1e10a6bb?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Web Developer Friend - Viral Sarvaiya</title>
		<link>http://viralsarvaiya.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://viralsarvaiya.wordpress.com/osd.xml" title="Web Developer Friend - Viral Sarvaiya" />
	<atom:link rel='hub' href='http://viralsarvaiya.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Prevent Silverlight XAP file from caching in your browser.</title>
		<link>http://viralsarvaiya.wordpress.com/2012/01/19/prevent-silverlight-xap-file-from-caching-in-your-browser/</link>
		<comments>http://viralsarvaiya.wordpress.com/2012/01/19/prevent-silverlight-xap-file-from-caching-in-your-browser/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 10:24:31 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[clearing cache]]></category>
		<category><![CDATA[object tag]]></category>
		<category><![CDATA[Param]]></category>
		<category><![CDATA[param name]]></category>
		<category><![CDATA[Prevent Silverlight XAP file from caching in your browser]]></category>
		<category><![CDATA[version numbers]]></category>
		<category><![CDATA[XAP]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=940</guid>
		<description><![CDATA[Sometime when we deploy silverlight project, that happen often that when you run website it run older deploy project. because that comes from the cache, so clear the cache of the Browser and some time that problem occur also after clearing cache. so for that we have to force website to download new version of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=940&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometime when we deploy silverlight project, that happen often that when you run website it run older deploy project. because that comes from the cache,</p>
<p>so clear the cache of the Browser and some time that problem occur also after clearing cache.</p>
<p>so for that we have to force website to download new version of xap file every time when it run.</p>
<p>normally we have tag for XAP file, as like below</p>
<p><pre class="brush: xml;">
&lt;param name=&quot;source&quot; value=&quot;/ClientBin/SilverApp.xap&quot; /&gt;
</pre></p>
<p>but we have to download our XAP file new at every run of site.</p>
<p>so there so many option for that.</p>
<p>1) changing the Assembly and File version numbers</p>
<p>2) GUID value for the project</p>
<p>but, here is the simple and best solution for that and then it worked like a charm everytime.</p>
<p><pre class="brush: xml;">
&lt;param name=&quot;source&quot; value=&quot;/ClientBin/SilverApp.xap?ignoreme=&lt;%=System.DateTime.Now.ToUniversalTime()%&gt;&quot; /&gt;
</pre></p>
<p>Enjoy,</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net/'>ASP.NET</a>, <a href='http://viralsarvaiya.wordpress.com/category/silverlight/'>Silverlight</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/browser/'>Browser</a>, <a href='http://viralsarvaiya.wordpress.com/tag/cache/'>Cache</a>, <a href='http://viralsarvaiya.wordpress.com/tag/clearing-cache/'>clearing cache</a>, <a href='http://viralsarvaiya.wordpress.com/tag/object-tag/'>object tag</a>, <a href='http://viralsarvaiya.wordpress.com/tag/param/'>Param</a>, <a href='http://viralsarvaiya.wordpress.com/tag/param-name/'>param name</a>, <a href='http://viralsarvaiya.wordpress.com/tag/prevent-silverlight-xap-file-from-caching-in-your-browser/'>Prevent Silverlight XAP file from caching in your browser</a>, <a href='http://viralsarvaiya.wordpress.com/tag/silverlight/'>Silverlight</a>, <a href='http://viralsarvaiya.wordpress.com/tag/version-numbers/'>version numbers</a>, <a href='http://viralsarvaiya.wordpress.com/tag/xap/'>XAP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/940/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/940/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/940/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/940/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/940/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/940/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/940/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/940/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/940/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/940/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/940/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/940/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/940/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/940/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=940&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2012/01/19/prevent-silverlight-xap-file-from-caching-in-your-browser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Run two Skype accounts on the same computer</title>
		<link>http://viralsarvaiya.wordpress.com/2012/01/18/run-two-skype-accounts-on-the-same-computer/</link>
		<comments>http://viralsarvaiya.wordpress.com/2012/01/18/run-two-skype-accounts-on-the-same-computer/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 06:47:14 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[double click]]></category>
		<category><![CDATA[field target]]></category>
		<category><![CDATA[General Tips]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[target field]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Two Account in one computer]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=936</guid>
		<description><![CDATA[To use more than one Skype account on the same computer at the same time you need to start a new instance of Skype. Click Start &#62; Run (or press the Windows and R keys on your keyboard at the same time) In the Run window, enter the following command (include the quotes) and press [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=936&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To use more than one Skype account on the same computer at the same time you need to start a new instance of Skype.</p>
<ol>
<li>Click <strong>Start</strong> &gt; <strong>Run</strong> (or press the <strong>Windows</strong> and <strong>R</strong> keys on your keyboard at the same time)</li>
<li>In the Run window, enter the following command (include the quotes) and press <strong>OK</strong>:
<p><em>&#8220;C:\Program Files\Skype\Phone\Skype.exe&#8221; /secondary<br />
</em></li>
</ol>
<p>&nbsp;</p>
<p>If this solution fails, you can try another option:</p>
<ol>
<li>Find the Skype executable file (Skype.exe) in: <em>C:\Program Files\Skype\Phone\ </em></li>
<li>Right click on it and select <strong>Send to</strong> &gt; <strong>Desktop (create shortcut)</strong></li>
<li>Locate the shortcut on the desktop, then right-click on it and select <strong>Properties</strong></li>
<li>In the <strong>Target</strong> field, add: <em>/secondary</em>. The Target field should now be <em>&#8220;C:\Program Files\Skype\Phone\Skype.exe&#8221; /secondary</em></li>
<li>Click <strong>OK</strong>. You can now start a new instance of Skype every time you double-click the new shortcut.</li>
</ol>
<p>Enjoy&#8230;</p>
<p>Jay Ganesh&#8230;</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/general/'>General</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/double-click/'>double click</a>, <a href='http://viralsarvaiya.wordpress.com/tag/field-target/'>field target</a>, <a href='http://viralsarvaiya.wordpress.com/tag/general-tips/'>General Tips</a>, <a href='http://viralsarvaiya.wordpress.com/tag/skype/'>Skype</a>, <a href='http://viralsarvaiya.wordpress.com/tag/target-field/'>target field</a>, <a href='http://viralsarvaiya.wordpress.com/tag/tips/'>Tips</a>, <a href='http://viralsarvaiya.wordpress.com/tag/two-account-in-one-computer/'>Two Account in one computer</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/936/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=936&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2012/01/18/run-two-skype-accounts-on-the-same-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Reporting Services Error- Maximum request length exceeded</title>
		<link>http://viralsarvaiya.wordpress.com/2012/01/16/sql-reporting-services-error-maximum-request-length-exceeded/</link>
		<comments>http://viralsarvaiya.wordpress.com/2012/01/16/sql-reporting-services-error-maximum-request-length-exceeded/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 09:21:23 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[Report]]></category>
		<category><![CDATA[executionTimeout]]></category>
		<category><![CDATA[httpRuntime]]></category>
		<category><![CDATA[maximum request length exceeded]]></category>
		<category><![CDATA[maxRequestLength]]></category>
		<category><![CDATA[Report Server]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL EXPRESS]]></category>
		<category><![CDATA[SQL Reporting Services Error]]></category>
		<category><![CDATA[Sql Server]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=932</guid>
		<description><![CDATA[Today i upload all report of my project and get error Error : There was an Exception running the extension specified in the config file &#8211;&#62; maximum request length exceeded. The basic problem here, is that your posting an amount of data to a web app larger than it is configured to accept.  Hence, it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=932&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today i upload all report of my project and get error</p>
<p><strong>Error : There was an Exception running the extension specified in the config file &#8211;&gt; maximum request length exceeded.</strong></p>
<p>The basic problem here, is that your posting an amount of data to a web app larger than it is configured to accept.  Hence, it is throwing an error, and simply saying &#8220;no!&#8221;</p>
<p>It&#8217;s an easy fix though! You&#8217;ve got to tweak the web.config for the web app, which in the case of reporting server, is usually somewhere like this:</p>
<p><strong>C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLEXPRESS\Reporting Services\ReportServer</strong></p>
<p>Find the web.config file for your reporting services instance, open it up, and track down the line that looks something like this</p>
<p><pre class="brush: xml;">
&lt;httpRuntime executionTimeout = &quot;9000&quot; /&gt;
</pre></p>
<p>Now just add a max request length attribute in there to fix the problem, adjust your size as needed.  This is 5meg.</p>
<p><pre class="brush: xml;">
&lt;httpRuntime executionTimeout = &quot;9000&quot; maxRequestLength=&quot;500000&quot; /&gt;
</pre></p>
<p>And now you&#8217;ll need to restart IIS.  start-&gt;run-&gt;&#8221;iisreset&#8221;</p>
<p>Enjoy&#8230;.</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/sql-server/report/'>Report</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/executiontimeout/'>executionTimeout</a>, <a href='http://viralsarvaiya.wordpress.com/tag/httpruntime/'>httpRuntime</a>, <a href='http://viralsarvaiya.wordpress.com/tag/maximum-request-length-exceeded/'>maximum request length exceeded</a>, <a href='http://viralsarvaiya.wordpress.com/tag/maxrequestlength/'>maxRequestLength</a>, <a href='http://viralsarvaiya.wordpress.com/tag/report-server/'>Report Server</a>, <a href='http://viralsarvaiya.wordpress.com/tag/reporting-services/'>Reporting Services</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-express/'>SQL EXPRESS</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-reporting-services-error/'>SQL Reporting Services Error</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-server/'>Sql Server</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/932/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/932/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/932/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/932/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/932/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/932/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/932/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/932/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/932/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/932/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/932/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/932/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/932/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/932/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=932&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2012/01/16/sql-reporting-services-error-maximum-request-length-exceeded/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>RESEED/Reset Table Identity Value in sql server</title>
		<link>http://viralsarvaiya.wordpress.com/2012/01/06/reseedreset-table-identity-value-in-sql-server/</link>
		<comments>http://viralsarvaiya.wordpress.com/2012/01/06/reseedreset-table-identity-value-in-sql-server/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 12:11:16 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[Sql Server]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[RESEED]]></category>
		<category><![CDATA[Reset]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=928</guid>
		<description><![CDATA[DBCC CHECKIDENT can reset the identity value of the table, For example if table has 500 reords and not we want to delete all records or want to start data from 600 then this command will help us. OR Most of our identity we start with 1 so must have to take care that identity [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=928&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DBCC CHECKIDENT can reset the identity value of the table,</p>
<p>For example if table has 500 reords and not we want to delete all records or want to start data from 600 then this command will help us.</p>
<p><pre class="brush: sql;">
DBCC CHECKIDENT (Table_name, reseed, 0)
</pre></p>
<p>OR</p>
<p><pre class="brush: sql;">
DBCC CHECKIDENT (Table_name, reseed, 600)
</pre></p>
<p>Most of our identity we start with 1 so must have to take care that identity set to 0.</p>
<p>If identity is set below values that currently are in table, it will violate the uniqueness constraint as soon as the values start to duplicate and will generate error.</p>
<p>Enjoy&#8230;</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/sql-server/'>Sql Server</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/identity/'>Identity</a>, <a href='http://viralsarvaiya.wordpress.com/tag/reseed/'>RESEED</a>, <a href='http://viralsarvaiya.wordpress.com/tag/reset/'>Reset</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql/'>SQL</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-index/'>SQL Index</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-performance/'>SQL Performance</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-query/'>SQL Query</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-scripts/'>SQL Scripts</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-security/'>SQL Security</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-server/'>Sql Server</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://viralsarvaiya.wordpress.com/tag/t-sql/'>T SQL</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/928/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/928/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/928/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=928&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2012/01/06/reseedreset-table-identity-value-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Ways to check whether a trigger exists in SQL Server</title>
		<link>http://viralsarvaiya.wordpress.com/2011/12/13/ways-to-check-whether-a-trigger-exists-in-sql-server/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/12/13/ways-to-check-whether-a-trigger-exists-in-sql-server/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 15:20:34 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[Sql Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Trigger]]></category>
		<category><![CDATA[Trigger in sql server]]></category>
		<category><![CDATA[Ways to check whether a trigger exists in SQL Server]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=921</guid>
		<description><![CDATA[Hi, How to find there are trigger is exists in database or not? there are 2 ways to find the list of the trigger in database or and if you want to find trigger from particular table, or &#160; Enjoy&#8230; Filed under: Sql Server Tagged: SQL, Sql Server, Trigger, Trigger in sql server, Ways to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=921&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>How to find there are trigger is exists in database or not?</p>
<p>there are 2 ways to find the list of the trigger in database</p>
<p><pre class="brush: sql;">

select * from dbo.sysobjects
where OBJECTPROPERTY(id, 'IsTrigger') = 1

</pre></p>
<p>or</p>
<p><pre class="brush: sql;">

select * from sys.triggers

</pre></p>
<p>and if you want to find trigger from particular table,</p>
<p><pre class="brush: sql;">

exec sp_helptrigger 'TableName'

</pre></p>
<p>or</p>
<p><pre class="brush: sql;">

select * from sys.triggers where name = 'TableName'

</pre></p>
<p>&nbsp;</p>
<p>Enjoy&#8230;</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/sql-server/'>Sql Server</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/sql/'>SQL</a>, <a href='http://viralsarvaiya.wordpress.com/tag/sql-server/'>Sql Server</a>, <a href='http://viralsarvaiya.wordpress.com/tag/trigger/'>Trigger</a>, <a href='http://viralsarvaiya.wordpress.com/tag/trigger-in-sql-server/'>Trigger in sql server</a>, <a href='http://viralsarvaiya.wordpress.com/tag/ways-to-check-whether-a-trigger-exists-in-sql-server/'>Ways to check whether a trigger exists in SQL Server</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/921/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=921&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/12/13/ways-to-check-whether-a-trigger-exists-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert Text in to Image using C#</title>
		<link>http://viralsarvaiya.wordpress.com/2011/12/13/convert-text-in-to-image-using-c/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/12/13/convert-text-in-to-image-using-c/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 08:05:37 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Bitmap]]></category>
		<category><![CDATA[Convert Text in to Image using C#]]></category>
		<category><![CDATA[Convert Text To Image]]></category>
		<category><![CDATA[font object]]></category>
		<category><![CDATA[Generate Image from text]]></category>
		<category><![CDATA[Generate Image from text using C#]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image text]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=917</guid>
		<description><![CDATA[.net provide us very good functionality to Create image from text, here is function that return Bitmap and take string as a parameter. Enjoy&#8230;. Filed under: .Net, ASP.NET Tagged: Bitmap, Convert Text in to Image using C#, Convert Text To Image, font object, Generate Image from text, Generate Image from text using C#, image, image [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=917&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>.net provide us very good functionality to Create image from text, here is function that return Bitmap and take string as a parameter.</p>
<p><pre class="brush: csharp;">

private Bitmap CreateBitmapImage(string TextImage)
{
Bitmap objBmp = new Bitmap(1, 1);

int Width = 0;

int Height = 0;

// Create the Font object for the image text drawing.

Font objFont = new Font(&quot;Arial&quot;, 20, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Pixel);

// Create a graphics object to measure the text's width and height.

Graphics objGraphics = Graphics.FromImage(objBmp);

// This is where the bitmap size is determined.

Width = (int)objGraphics.MeasureString(TextImage, objFont).Width;

Height = (int)objGraphics.MeasureString(TextImage, objFont).Height;

// Create the bmpImage again with the correct size for the text and font.

objBmp = new Bitmap(objBmp, new Size(Width, Height));

// Add the colors to the new bitmap.

objGraphics = Graphics.FromImage(objBmp);

// Set Background color

objGraphics.Clear(Color.White);

objGraphics.SmoothingMode = SmoothingMode.AntiAlias;

objGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;

objGraphics.DrawString(TextImage, objFont, new SolidBrush(Color.FromArgb(102, 102, 102)), 0, 0);

objGraphics.Flush();

return (objBmp);
}
</pre></p>
<p>Enjoy&#8230;.</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net/'>ASP.NET</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/bitmap/'>Bitmap</a>, <a href='http://viralsarvaiya.wordpress.com/tag/convert-text-in-to-image-using-c/'>Convert Text in to Image using C#</a>, <a href='http://viralsarvaiya.wordpress.com/tag/convert-text-to-image/'>Convert Text To Image</a>, <a href='http://viralsarvaiya.wordpress.com/tag/font-object/'>font object</a>, <a href='http://viralsarvaiya.wordpress.com/tag/generate-image-from-text/'>Generate Image from text</a>, <a href='http://viralsarvaiya.wordpress.com/tag/generate-image-from-text-using-c/'>Generate Image from text using C#</a>, <a href='http://viralsarvaiya.wordpress.com/tag/image/'>image</a>, <a href='http://viralsarvaiya.wordpress.com/tag/image-text/'>image text</a>, <a href='http://viralsarvaiya.wordpress.com/tag/text/'>text</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/917/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=917&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/12/13/convert-text-in-to-image-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Send Email Attachment Using A Memory Stream</title>
		<link>http://viralsarvaiya.wordpress.com/2011/12/12/send-email-attachment-using-a-memory-stream/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/12/12/send-email-attachment-using-a-memory-stream/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 16:02:55 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net feature]]></category>
		<category><![CDATA[Attachment]]></category>
		<category><![CDATA[Attachment Using A Memory Stream]]></category>
		<category><![CDATA[Memory Stream]]></category>
		<category><![CDATA[Send Email]]></category>
		<category><![CDATA[Send Email Attachment Using A Memory Stream]]></category>
		<category><![CDATA[Send Email using C#]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=912</guid>
		<description><![CDATA[mainly we send attachment as a file which is already in the server, but from memory stream we can also send as a attachment in email, below is code for that, Enjoy&#8230; Filed under: ASP.NET, asp.net feature Tagged: Attachment, Attachment Using A Memory Stream, Memory Stream, Send Email, Send Email Attachment Using A Memory Stream, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=912&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>mainly we send attachment as a file which is already in the server, but from memory stream we can also send as a attachment in email, below is code for that,</p>
<p><pre class="brush: vb;">

Dim strMailServer As String = &quot;SMTPServerName&quot;

Dim fs As New FileStream(&quot;FilePath\FileName.txt&quot;, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)

Dim sReader As New StreamReader(fs)

Dim objMemoryStream As New MemoryStream()

Dim sb As New System.Text.StringBuilder(&quot;&quot;)
Dim str As String

'--read through template form, replace variables and add lines to string builder

Do While sReader.Peek() &gt;= 0

str = sReader.ReadLine()

'--replace [Date_Time]
'Replace string here

sb.Append(str)

Loop

Dim Encoding As New UTF8Encoding

Dim arrByt() As Byte = Encoding.GetBytes(sb.ToString())

objMemoryStream.Write(arrByt, 0, arrByt.Length)

objMemoryStream.Position = 0

'--release file system resources

sReader.Close()

sReader.Dispose()

fs.Close()

fs.Dispose()

Dim objMailMessage As New MailMessage

Dim objSMTP As New SmtpClient

Dim toAddress As New MailAddress(&quot;ToEmailAddress&quot;, &quot;ToEmailName&quot;)

objMailMessage.To.Add(toAddress)

Dim fromAddress As New MailAddress(&quot;FromEmailAddress&quot;, &quot;FromEmailName&quot;)

objMailMessage.From = fromAddress

objMailMessage.IsBodyHtml = False
objMailMessage.Priority = MailPriority.Normal

objMailMessage.Subject = &quot;EmailSubject&quot;

objMailMessage.Body = &quot;Email Body&quot;

' add fax cover page as first file attachment

objMailMessage.Attachments.Add(New Attachment(objMemoryStream, &quot;FileName.txt&quot;))

Try

objSMTP.Host = strMailServer

objSMTP.Send(objMailMessage)

Catch ex As Exception

Throw ex

End Try
&lt;pre&gt;</pre></p>
<p>Enjoy&#8230;</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/asp-net/'>ASP.NET</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net-feature/'>asp.net feature</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/attachment/'>Attachment</a>, <a href='http://viralsarvaiya.wordpress.com/tag/attachment-using-a-memory-stream/'>Attachment Using A Memory Stream</a>, <a href='http://viralsarvaiya.wordpress.com/tag/memory-stream/'>Memory Stream</a>, <a href='http://viralsarvaiya.wordpress.com/tag/send-email/'>Send Email</a>, <a href='http://viralsarvaiya.wordpress.com/tag/send-email-attachment-using-a-memory-stream/'>Send Email Attachment Using A Memory Stream</a>, <a href='http://viralsarvaiya.wordpress.com/tag/send-email-using-c/'>Send Email using C#</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/912/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/912/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/912/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/912/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/912/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/912/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/912/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=912&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/12/12/send-email-attachment-using-a-memory-stream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Silverlight XAP and Hosting Page URL</title>
		<link>http://viralsarvaiya.wordpress.com/2011/12/05/get-silverlight-xap-and-hosting-page-url/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/12/05/get-silverlight-xap-and-hosting-page-url/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 09:39:42 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Get Silverlight XAP and Hosting Page URL]]></category>
		<category><![CDATA[Hostnig Page URL]]></category>
		<category><![CDATA[Silverlight XAP]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[XAP]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=907</guid>
		<description><![CDATA[Get the URL to the current xap file: App.Current.Host.Source.AbsoluteUri Sample: http://www.WebsiteName.com/ClientBin/SilverlightApplicationName.xap Get the full URL of the page hosting the xap (with QueryStrings): HtmlPage.Document.DocumentUri.ToString() Sample: http://www.WebsiteName.com/SilverlightApplicationName.aspx?param=1 Filed under: .Net, ASP.NET, Silverlight, Visual Studio Tagged: Get Silverlight XAP and Hosting Page URL, Hostnig Page URL, Silverlight, Silverlight XAP, URL, XAP<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=907&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Get the URL to the current xap file:<br />
App.Current.Host.Source.AbsoluteUri</p>
<p>Sample:</p>
<p>http://www.WebsiteName.com/ClientBin/SilverlightApplicationName.xap</p>
<p>Get the full URL of the page hosting the xap (with QueryStrings):<br />
HtmlPage.Document.DocumentUri.ToString()</p>
<p>Sample:</p>
<p>http://www.WebsiteName.com/SilverlightApplicationName.aspx?param=1</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net/'>ASP.NET</a>, <a href='http://viralsarvaiya.wordpress.com/category/silverlight/'>Silverlight</a>, <a href='http://viralsarvaiya.wordpress.com/category/visual-studio/'>Visual Studio</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/get-silverlight-xap-and-hosting-page-url/'>Get Silverlight XAP and Hosting Page URL</a>, <a href='http://viralsarvaiya.wordpress.com/tag/hostnig-page-url/'>Hostnig Page URL</a>, <a href='http://viralsarvaiya.wordpress.com/tag/silverlight/'>Silverlight</a>, <a href='http://viralsarvaiya.wordpress.com/tag/silverlight-xap/'>Silverlight XAP</a>, <a href='http://viralsarvaiya.wordpress.com/tag/url/'>URL</a>, <a href='http://viralsarvaiya.wordpress.com/tag/xap/'>XAP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/907/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=907&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/12/05/get-silverlight-xap-and-hosting-page-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Bind Multiple Columns in Combobox in Silverlight</title>
		<link>http://viralsarvaiya.wordpress.com/2011/10/15/bind-multiple-columns-in-combobox-in-silverlight/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/10/15/bind-multiple-columns-in-combobox-in-silverlight/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 17:26:30 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Bind Multiple Columns in Combobox in Silverlight]]></category>
		<category><![CDATA[Combobox]]></category>
		<category><![CDATA[Combobox in Silverlight]]></category>
		<category><![CDATA[Multiple properties]]></category>
		<category><![CDATA[Properties]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=900</guid>
		<description><![CDATA[Silverlight has simple combobox like below. we use ItemSource property for binding data to combobox. we can set DisplayMemberPath property as like for the multiple property we can edit compbobox itemTemplate. for that you have to remove DisplayMemberPath property from Combobox tag and use the below tag for binding multiple properties to Combobox. if you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=900&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Silverlight has simple combobox like below.</p>
<p><pre class="brush: xml;">
&lt;Combobox x:Name=&quot;combo1&quot;  Width=&quot;100&quot; Height=&quot;30&quot; /&gt;
</pre></p>
<p>we use ItemSource property for binding data to combobox.<br />
we can set DisplayMemberPath property as like</p>
<p><pre class="brush: xml;">
&lt;Combobox x:Name=&quot;combo1&quot;  Width=&quot;100&quot; Height=&quot;30&quot;  DisplayMemberPath =&quot;Name&quot;  /&gt;
</pre></p>
<p>for the multiple property we can edit compbobox itemTemplate.<br />
for that you have to remove DisplayMemberPath property from Combobox tag and use the below tag for binding multiple properties to Combobox.</p>
<p><pre class="brush: xml;">
&lt;ComboBox x:Name=&quot;cboTest&quot;&gt;
&lt;ComboBox.ItemTemplate&gt;
&lt;DataTemplate&gt;
&lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
&lt;TextBlock Text=&quot;{Binding Name, Mode=OneWay}&quot; /&gt;
&lt;TextBlock Text=&quot; &quot; /&gt;
&lt;TextBlock Text=&quot;{Binding Surname, Mode=OneWay}&quot; /&gt;
&lt;/StackPanel&gt;
&lt;/DataTemplate&gt;
&lt;/ComboBox.ItemTemplate&gt;
&lt;/ComboBox&gt;
</pre></p>
<p>if you want to select an item and want Id of selected item then you can use SelectedValue or Selecteditem Property as like below</p>
<p><pre class="brush: xml;">
&lt;ComboBox x:Name=&quot;cboTest&quot; ItemSource=&quot;{Binding MyList, Mode=TwoWay}&quot; SelectedValue={Binding Path=Name, Mode=&quot;TwoWay&quot;}&gt;
&lt;ComboBox.ItemTemplate&gt;
&lt;DataTemplate&gt;
&lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
&lt;TextBlock Text=&quot;{Binding Name, Mode=OneWay}&quot; /&gt;
&lt;TextBlock Text=&quot; &quot; /&gt;
&lt;TextBlock Text=&quot;{Binding Surname, Mode=OneWay}&quot; /&gt;
&lt;/StackPanel&gt;
&lt;/DataTemplate&gt;
&lt;/ComboBox.ItemTemplate&gt;
&lt;/ComboBox&gt;
</pre></p>
<p>hope this will help you.</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net/'>ASP.NET</a>, <a href='http://viralsarvaiya.wordpress.com/category/silverlight/'>Silverlight</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/bind-multiple-columns-in-combobox-in-silverlight/'>Bind Multiple Columns in Combobox in Silverlight</a>, <a href='http://viralsarvaiya.wordpress.com/tag/combobox/'>Combobox</a>, <a href='http://viralsarvaiya.wordpress.com/tag/combobox-in-silverlight/'>Combobox in Silverlight</a>, <a href='http://viralsarvaiya.wordpress.com/tag/multiple-properties/'>Multiple properties</a>, <a href='http://viralsarvaiya.wordpress.com/tag/properties/'>Properties</a>, <a href='http://viralsarvaiya.wordpress.com/tag/silverlight/'>Silverlight</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/900/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/900/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/900/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/900/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/900/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/900/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/900/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/900/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/900/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/900/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/900/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/900/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/900/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/900/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=900&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/10/15/bind-multiple-columns-in-combobox-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Monitoring the File System</title>
		<link>http://viralsarvaiya.wordpress.com/2011/09/20/monitoring-the-file-system/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/09/20/monitoring-the-file-system/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 18:21:37 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net feature]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Delete File]]></category>
		<category><![CDATA[FileSystemWatcher]]></category>
		<category><![CDATA[Monitoring the File System]]></category>
		<category><![CDATA[Rename file]]></category>
		<category><![CDATA[System.IO]]></category>
		<category><![CDATA[Update File]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=891</guid>
		<description><![CDATA[Today i get new thing in my project that use FileSystemWatcher Class, so here i explain how to monitoring the file system, You can use the FileSystemWatcher class (part of the System.IO namespace) to respond to updated files, new files, renamed files, and other updates to the file system. First, create an instance of FileSystemWatcher [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=891&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today i get new thing in my project that use FileSystemWatcher Class, so here i explain how to monitoring the file system,</p>
<p>You can use the FileSystemWatcher class (part of the System.IO namespace) to respond to updated files, new files, renamed files, and other updates to the file system. First, create an instance of FileSystemWatcher by providing the path to be monitored. Then, configure roperties of the FileSystemWatcher instance to control whether to monitor subdirectories and which types of changes to monitor. Next, add a method as an event handler. Finally, set the FileSystemWatcher.EnableRaisingEvent property to true. The following code sample demonstrates a basic usage.</p>
<p><pre class="brush: csharp;">
// Create an instance of FileSystemWatcher
FileSystemWatcher fsw = new FileSystemWatcher(Environment.GetEnvironmentVariable(&quot;USERPROFILE&quot;));
// Set the FileSystemWatcher properties
fsw.IncludeSubdirectories = true;
fsw.NotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite;
// Add the Changed event handler
fsw.Changed += new FileSystemEventHandler(fsw_Changed);
// Start monitoring events
fsw.EnableRaisingEvents = true;
</pre></p>
<p><strong>Handling FileSystemWatcher Events</strong> When a file is changed that meets the criteria you specify, the CLR calls the FileSystemWatcher.Changed event handler for all changes, creations, and deletions. For files and folders that are renamed, the CLR calls the FileSystemWatcher.Renamed event handler. The previous code sample added the fsw_Changed method to handle the Changed event. The following code sample shows a simple way to handle the event:</p>
<p><pre class="brush: csharp;">

static void fsw_Changed(object sender, FileSystemEventArgs e)
{
// Write the path of a changed file to the console
Console.WriteLine(e.ChangeType + &quot;: &quot; + e.FullPath);
}

</pre></p>
<p>You can use a single event handler for the Changed, Created, and Deleted events. The FileSystemEventArgs parameter provides the path to the updated file and the type of change that occurred. If you need to respond to files that are renamed, you need to create an event handler that accepts a RenamedEventArgs parameter instead of a FileSystemEventArgs parameter, as the following code sample demonstrates:</p>
<p><pre class="brush: csharp;">

static void fsw_Renamed(object sender, RenamedEventArgs e)
{
// Write the path of a changed file to the console
Console.WriteLine(e.ChangeType + &quot; from &quot; + e.OldFullPath + &quot; to &quot; + e.Name);
}

</pre></p>
<p><strong>Configuring</strong> : FileSystemWatcher Properties You can configure the following properties of the FileSystemWatcher class to control which types of updates cause the CLR to throw the Changed event:</p>
<p><strong>Filter : </strong> Used to configure the filenames that trigger events. To watch for changes in all files, set the Filter property to an empty string (&#8220;&#8221;) or use wildcards (&#8220;*.*&#8221;). To watch a specific file, set the Filter property to the filename. For example, to watch for changes in the file MyDoc.txt, set the Filter property to &#8220;MyDoc.txt&#8221;. You can also watch for changes in a certain type of file. For example, to watch for changes in text files, set the Filter property to &#8220;*.txt&#8221;.</p>
<p>NotifyFilter Configure the types of changes for which to throw events by setting NotifyFilter to one or more of these values:</p>
<ul>
<li>FileName</li>
<li>DirectoryName</li>
<li>Attributes</li>
<li>Size</li>
<li>LastWrite</li>
<li>LastAccess</li>
<li>CreationTime</li>
<li>Security</li>
</ul>
<p><strong>Path</strong> : Used to define the folder to be monitored. You can define the path using the FileSystemWatcher constructor. You can watch for the renaming, deletion, or creation of files or directories. For example, to watch for the renaming of text files, set the Filter property to &#8220;*.txt&#8221; and call the WaitForChanged method with a Renamed value specified for its parameter.</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net/'>ASP.NET</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net-feature/'>asp.net feature</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/net/'>.net</a>, <a href='http://viralsarvaiya.wordpress.com/tag/c/'>C#</a>, <a href='http://viralsarvaiya.wordpress.com/tag/delete-file/'>Delete File</a>, <a href='http://viralsarvaiya.wordpress.com/tag/filesystemwatcher/'>FileSystemWatcher</a>, <a href='http://viralsarvaiya.wordpress.com/tag/monitoring-the-file-system/'>Monitoring the File System</a>, <a href='http://viralsarvaiya.wordpress.com/tag/rename-file/'>Rename file</a>, <a href='http://viralsarvaiya.wordpress.com/tag/system-io/'>System.IO</a>, <a href='http://viralsarvaiya.wordpress.com/tag/update-file/'>Update File</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/891/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=891&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/09/20/monitoring-the-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>NHibernate for .NET</title>
		<link>http://viralsarvaiya.wordpress.com/2011/09/05/nhibernate-for-net/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/09/05/nhibernate-for-net/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 08:48:00 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[asp.net feature]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[NHibernate for .NET]]></category>
		<category><![CDATA[object-relational mappers]]></category>
		<category><![CDATA[ORM]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=888</guid>
		<description><![CDATA[Recently I have do some work in new technology – NHibernate. NHibernate is same as JAVA’s Hibernate Core in .net framework. NHibernate is object-relational mappers(ORM). It handles persisting plain .NET objects to and from an underlying relational database. with an XML description of your entities and relationships, NHibernate automatically generates SQL for the objects.Persistent classes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=888&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I have do some work in new technology – NHibernate.</p>
<p>NHibernate is same as JAVA’s Hibernate Core in .net framework. NHibernate is object-relational mappers(ORM). It handles persisting plain .NET objects to and from an underlying relational database. with an XML description of your entities and relationships, NHibernate automatically generates SQL for the objects.Persistent classes do not need to implement any interface or inherit from a special base class. This makes it possible to design the business logic using plain .NET (CLR) objects and object-oriented idiom.</p>
<p>NHibernate key features:</p>
<p><strong>Natural programming model</strong> &#8211; NHibernate supports natural OO idiom; inheritance, polymorphism, composition and the .NET collections framework, including generic collections.</p>
<p><strong>Native .NET</strong> &#8211; NHibernate API uses .NET conventions and idioms</p>
<p><strong>Support for fine-grained object models</strong> &#8211; a rich variety of mappings for collections and dependent objects</p>
<p><strong>No build-time bytecode enhancement</strong> &#8211; there&#8217;s no extra code generation or bytecode processing steps in your build procedure</p>
<p><strong> The query options</strong> &#8211; NHibernate addresses both sides of the problem; not only how to get objects into the database, but also how to get them out again</p>
<p><strong>Custom SQL</strong> &#8211; specify the exact SQL that NHibernate should use to persist your objects. Stored procedures are supported on Microsoft SQL Server.</p>
<p><strong>Support for &#8220;conversations&#8221;</strong> &#8211; NHibernate supports long-lived persistence contexts, detach/reattach of objects, and takes care of optimistic locking automatically</p>
<p><strong>Free/open source</strong> &#8211; NHibernate is licensed under the LGPL (Lesser GNU Public License)</p>
<p>&nbsp;</p>
<p>For More details :</p>
<p><a href="http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx" target="_blank">http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx</a></p>
<p><a href="http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx" target="_blank">http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx</a></p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net-feature/'>asp.net feature</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/net/'>.net</a>, <a href='http://viralsarvaiya.wordpress.com/tag/nhibernate/'>NHibernate</a>, <a href='http://viralsarvaiya.wordpress.com/tag/nhibernate-for-net/'>NHibernate for .NET</a>, <a href='http://viralsarvaiya.wordpress.com/tag/object-relational-mappers/'>object-relational mappers</a>, <a href='http://viralsarvaiya.wordpress.com/tag/orm/'>ORM</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/888/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=888&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/09/05/nhibernate-for-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Interop type cannot be embedded. Use the applicable interface instead</title>
		<link>http://viralsarvaiya.wordpress.com/2011/08/02/interop-type-cannot-be-embedded-use-the-applicable-interface-instead/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/08/02/interop-type-cannot-be-embedded-use-the-applicable-interface-instead/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 12:49:16 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[asp.net feature]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[.Net3.5]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[Interop]]></category>
		<category><![CDATA[Interop type cannot be embedded. Use the applicable interface instead]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=881</guid>
		<description><![CDATA[Today i face one more difficulty in my current project, i am useing .net 4.0 framework with WPF application. In this application i am adding one dll file that communicate with COM port and i get error &#8220;Interop type cannot be embedded. Use the applicable interface instead.&#8221;. this code is perfactly run with .net 3.5 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=881&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today i face one more difficulty in my current project,</p>
<p>i am useing .net 4.0 framework with WPF application.</p>
<p>In this application i am adding one dll file that communicate with COM port and i get error &#8220;Interop type cannot be embedded. Use the applicable interface instead.&#8221;.</p>
<p>this code is perfactly run with .net 3.5 framework but not in 4.0.</p>
<p>and i get the solution for that as below.</p>
<p>Common Language Runtime in .Net 4.0 supports embedding of COM types information directly into managed assemblies in order to simplify deployment process. Managed assemblies need not have to read type information from interop assemblies any more.</p>
<p>In the managed assembly  you can embaded only COM type metadata so it will only works with interfaces, structures, enums and delegates</p>
<p>so what to do for this problem? the solution is &#8220;use interfaces instead of classes&#8221; or &#8220;simply copy constant values from the class definition locally and use them instead.&#8221;</p>
<p><a href="http://viralsarvaiya.files.wordpress.com/2011/08/property1.png"><img class="alignnone size-full wp-image-884" title="Property" src="http://viralsarvaiya.files.wordpress.com/2011/08/property1.png" alt="" width="367" height="328" /></a></p>
<p>hope this will helps you..</p>
<p>thanks</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net-feature/'>asp.net feature</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/net-4-0/'>.Net 4.0</a>, <a href='http://viralsarvaiya.wordpress.com/tag/net3-5/'>.Net3.5</a>, <a href='http://viralsarvaiya.wordpress.com/tag/dll/'>dll</a>, <a href='http://viralsarvaiya.wordpress.com/tag/interface/'>interface</a>, <a href='http://viralsarvaiya.wordpress.com/tag/interop/'>Interop</a>, <a href='http://viralsarvaiya.wordpress.com/tag/interop-type-cannot-be-embedded-use-the-applicable-interface-instead/'>Interop type cannot be embedded. Use the applicable interface instead</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/881/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=881&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/08/02/interop-type-cannot-be-embedded-use-the-applicable-interface-instead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>

		<media:content url="http://viralsarvaiya.files.wordpress.com/2011/08/property1.png" medium="image">
			<media:title type="html">Property</media:title>
		</media:content>
	</item>
		<item>
		<title>Check printer status in .net</title>
		<link>http://viralsarvaiya.wordpress.com/2011/08/01/check-printer-status-in-net/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/08/01/check-printer-status-in-net/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 12:08:35 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net feature]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Check printer status in .net]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[Printer]]></category>
		<category><![CDATA[Printer Status in .net]]></category>
		<category><![CDATA[Win32]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=878</guid>
		<description><![CDATA[Hi Today i get new thing from my current projet, how to check the status of the printer means wether the printer is connected to PC or not. For that we have to add reference of the &#8220;System.Management&#8221; Here it is code for check status of the printer. &#160; thanks and enjoy coding&#8230; Filed under: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=878&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>Today i get new thing from my current projet, how to check the status of the printer means wether the printer is connected to PC or not.</p>
<p>For that we have to add reference of the &#8220;System.Management&#8221;</p>
<p>Here it is code for check status of the printer.</p>
<p><pre class="brush: csharp;">

using System.Management;

class PrinterOffline
{
private static void Main(string[] args)
{
// Set management scope
ManagementScope scope = new ManagementScope(&quot;\\root\\cimv2&quot;);
scope.Connect();
// Select Printers from WMI Object Collections
ManagementObjectSearcher searcher = new ManagementObjectSearcher(&quot;SELECT * FROM Win32_Printer&quot;);
string printerName = &quot;&quot;;
foreach (ManagementObject printer in searcher.Get()) {
printerName = printer(&quot;Name&quot;).ToString().ToLower();
if (printerName.Equals(&quot;Name_Of_Printer&quot;)) {
Console.WriteLine(&quot;Printer = &quot; + printer(&quot;Name&quot;));
if (printer(&quot;WorkOffline&quot;).ToString().ToLower().Equals(&quot;true&quot;)) {
// printer is offline by user
Console.WriteLine(&quot;Your Plug-N-Play printer is not connected.&quot;);
} else {
// printer is not offline
Console.WriteLine(&quot;Your Plug-N-Play printer is connected.&quot;);
}
}
}
}
}

</pre></p>
<p>&nbsp;</p>
<p>thanks and enjoy coding&#8230;</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net/'>ASP.NET</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net-feature/'>asp.net feature</a>, <a href='http://viralsarvaiya.wordpress.com/category/visual-studio/'>Visual Studio</a>, <a href='http://viralsarvaiya.wordpress.com/category/wpf/'>WPF</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/net/'>.net</a>, <a href='http://viralsarvaiya.wordpress.com/tag/check-printer-status-in-net/'>Check printer status in .net</a>, <a href='http://viralsarvaiya.wordpress.com/tag/offline/'>offline</a>, <a href='http://viralsarvaiya.wordpress.com/tag/online/'>online</a>, <a href='http://viralsarvaiya.wordpress.com/tag/printer/'>Printer</a>, <a href='http://viralsarvaiya.wordpress.com/tag/printer-status-in-net/'>Printer Status in .net</a>, <a href='http://viralsarvaiya.wordpress.com/tag/win32/'>Win32</a>, <a href='http://viralsarvaiya.wordpress.com/tag/wmi/'>WMI</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/878/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=878&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/08/01/check-printer-status-in-net/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>Understanding the Dynamic Keyword in C# 4</title>
		<link>http://viralsarvaiya.wordpress.com/2011/06/13/understanding-the-dynamic-keyword-in-c-4/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/06/13/understanding-the-dynamic-keyword-in-c-4/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 12:38:52 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[asp.net feature]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C#4.0]]></category>
		<category><![CDATA[Dynamic]]></category>
		<category><![CDATA[Dynamic keyword]]></category>
		<category><![CDATA[key word]]></category>
		<category><![CDATA[Understanding the Dynamic Keyword in C# 4]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=867</guid>
		<description><![CDATA[The dynamic keyword and the Dynamic Language Runtime (DLR) are major new features in C# 4 and the Microsoft .NET Framework 4. These features generated a lot of interest when announced—along with a lot of questions. There were a number of answers as well, but they’re now spread throughout documentation and on various technical blogs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=867&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The dynamic keyword and the Dynamic Language Runtime (DLR) are major new features in C# 4 and the Microsoft .NET Framework 4. These features generated a lot of interest when announced—along with a lot of questions. There were a number of answers as well, but they’re now spread throughout documentation and on various technical blogs and articles. So people continue asking the same questions again and again on forums and at conferences.</p>
<p>This article provides a general overview of the new dynamic features in C# 4 and also delves into some more in-depth information about how they work with other language and framework features, such as reflection or implicitly typed variables. Given there’s a lot of information available already, I’ll sometimes reuse classic examples with links to the original sources. I’ll also provide plenty of links for further reading.</p>
<p>For More Details Click <a href="http://msdn.microsoft.com/en-us/magazine/gg598922.aspx" target="_blank">Here</a></p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/net-2/'>.Net</a>, <a href='http://viralsarvaiya.wordpress.com/category/asp-net-feature/'>asp.net feature</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/c/'>C#</a>, <a href='http://viralsarvaiya.wordpress.com/tag/c4-0/'>C#4.0</a>, <a href='http://viralsarvaiya.wordpress.com/tag/dynamic/'>Dynamic</a>, <a href='http://viralsarvaiya.wordpress.com/tag/dynamic-keyword/'>Dynamic keyword</a>, <a href='http://viralsarvaiya.wordpress.com/tag/key-word/'>key word</a>, <a href='http://viralsarvaiya.wordpress.com/tag/understanding-the-dynamic-keyword-in-c-4/'>Understanding the Dynamic Keyword in C# 4</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/867/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=867&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/06/13/understanding-the-dynamic-keyword-in-c-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
		<item>
		<title>How to recover lost/missing system tray icon?</title>
		<link>http://viralsarvaiya.wordpress.com/2011/06/10/how-to-recover-lostmissing-system-tray-icon/</link>
		<comments>http://viralsarvaiya.wordpress.com/2011/06/10/how-to-recover-lostmissing-system-tray-icon/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 15:10:51 +0000</pubDate>
		<dc:creator>viralsarvaiya</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How to recover lost/missing system tray icon?]]></category>
		<category><![CDATA[Recover missing System tray Icon]]></category>
		<category><![CDATA[Recover system try icons]]></category>
		<category><![CDATA[system tray]]></category>

		<guid isPermaLink="false">http://viralsarvaiya.wordpress.com/?p=864</guid>
		<description><![CDATA[Please follow the steps for recover Lost/missing system tray icon. 1. Back up the Registry by creating a restore point. 2. Go to Start &#62; Run (or Windows-key + R), type in regedit and hit OK. 3. Navigate to the key HKEY_CURRENT_USER\Software\Cla sses\Local Settings\Software\Microsoft\Wi ndows\CurrentVersion \TrayNotify. 4. Delete the values IconStreams and PastIconsStream. 5. Open [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=864&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Please follow the steps for recover Lost/missing system tray icon.</p>
<p>1. Back up the Registry by creating a restore point.<br />
2. Go to Start &gt; Run (or Windows-key + R), type in regedit and hit OK.<br />
3. Navigate to the key HKEY_CURRENT_USER\Software\Cla sses\Local Settings\Software\Microsoft\Wi ndows\CurrentVersion \TrayNotify.<br />
4. Delete the values IconStreams and PastIconsStream.<br />
5. Open up the Task Manager (Ctrl + Shift + Esc), go to the Processes tab, select explorer.exe and click End Process.<br />
6. Open the Applications tab and click New Task at the bottom-right of the window.<br />
7. In the message box that pops up type in explorer.exe and hit OK.<br />
8. Explorer.exe will reload, and the missing icons should now be back in the system-tray where they belong.<br />
9. Then if the volume bar isnt there, go to taskbar properties (where the volume was gray) and simply tick the box.</p>
<br />Filed under: <a href='http://viralsarvaiya.wordpress.com/category/general/'>General</a> Tagged: <a href='http://viralsarvaiya.wordpress.com/tag/how-to-recover-lostmissing-system-tray-icon/'>How to recover lost/missing system tray icon?</a>, <a href='http://viralsarvaiya.wordpress.com/tag/recover-missing-system-tray-icon/'>Recover missing System tray Icon</a>, <a href='http://viralsarvaiya.wordpress.com/tag/recover-system-try-icons/'>Recover system try icons</a>, <a href='http://viralsarvaiya.wordpress.com/tag/system-tray/'>system tray</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/viralsarvaiya.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/viralsarvaiya.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/viralsarvaiya.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/viralsarvaiya.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/viralsarvaiya.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/viralsarvaiya.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/viralsarvaiya.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/viralsarvaiya.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/viralsarvaiya.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/viralsarvaiya.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/viralsarvaiya.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/viralsarvaiya.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/viralsarvaiya.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/viralsarvaiya.wordpress.com/864/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=viralsarvaiya.wordpress.com&amp;blog=6697203&amp;post=864&amp;subd=viralsarvaiya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://viralsarvaiya.wordpress.com/2011/06/10/how-to-recover-lostmissing-system-tray-icon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e6abc27af354689e557e1094f01e639e?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">viralsarvaiya</media:title>
		</media:content>
	</item>
	</channel>
</rss>
