<?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>Dot Net Learning Zone Blog</title>
	<atom:link href="http://dotnethacker.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnethacker.wordpress.com</link>
	<description>A blog about to learn Dot Net</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:56:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dotnethacker.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dot Net Learning Zone Blog</title>
		<link>http://dotnethacker.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnethacker.wordpress.com/osd.xml" title="Dot Net Learning Zone Blog" />
	<atom:link rel='hub' href='http://dotnethacker.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Entity Framework &#8211; SaveChanges() doesn&#8217;t get the generated Identity key</title>
		<link>http://dotnethacker.wordpress.com/2010/12/24/entity-framework-savechanges-doesnt-get-the-generated-identity-key/</link>
		<comments>http://dotnethacker.wordpress.com/2010/12/24/entity-framework-savechanges-doesnt-get-the-generated-identity-key/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 14:52:22 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[Entity framework]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=76</guid>
		<description><![CDATA[Step to get identity key Suppose T_Emp is table placed on emp.edmx. Now open with emp.edmx in xml and find EntityType Name=&#8221;T_EMP&#8221;. Finally , what you have to do add StoreGeneratedPattern=&#8221;Identity&#8221; in primary key . Now Save the edmx and execute the project. Now you can get identity key after SaveChanges() Entities e1 = new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=76&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Step to get identity key<br />
Suppose T_Emp is table placed on emp.edmx. Now open with emp.edmx in xml and find EntityType Name=&#8221;T_EMP&#8221;.<br />
Finally , what you have to do add StoreGeneratedPattern=&#8221;Identity&#8221; in primary key . Now Save the edmx and execute the project.<br />
Now you can get identity key after SaveChanges()</p>
<p>Entities e1 = new Entities();<br />
T_Empl a = new T_Empl();<br />
a.Name = &#8220;Rajesh&#8221;;<br />
e1.AddToT_Empl(a);<br />
e1.SaveChanges();<br />
var id = a.ID;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&lt;EntityType Name=&#8221;T_EMP&#8221;&gt;<br />
&lt;Key&gt;<br />
&lt;PropertyRef Name=&#8221;ID&#8221; /&gt;<br />
&lt;/Key&gt;<br />
&lt;Property Name=&#8221;ID&#8221; Type=&#8221;number&#8221; Nullable=&#8221;false&#8221; StoreGeneratedPattern=&#8221;Identity&#8221;/&gt;<br />
&lt;Property Name=&#8221;Name&#8221; Type=&#8221;varchar2&#8243; MaxLength=&#8221;100&#8243; /&gt;<br />
&lt;/EntityType&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=76&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/12/24/entity-framework-savechanges-doesnt-get-the-generated-identity-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>How to validate text box with only numeric value with two decimal place</title>
		<link>http://dotnethacker.wordpress.com/2010/12/24/how-to-validate-text-box-with-only-numeric-value-with-two-decimal-place/</link>
		<comments>http://dotnethacker.wordpress.com/2010/12/24/how-to-validate-text-box-with-only-numeric-value-with-two-decimal-place/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 14:21:05 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[Windows Form]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=74</guid>
		<description><![CDATA[We have created a sample project in windows form in c#. There is a text box which accept only numeric value with decimal like 1234.56. namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } string strNumber = &#8220;0123456789.&#8221;; private void textBox1_Leave(object sender, EventArgs e) { textBox1.Text = Convert.ToDecimal ( [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=74&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We have created a sample project in windows form in c#. There is a text box which accept only numeric value with decimal like 1234.56.<br />
namespace WindowsFormsApplication1<br />
{<br />
public partial class Form1 : Form<br />
{<br />
public Form1()<br />
{<br />
InitializeComponent();<br />
}</p>
<p>string strNumber = &#8220;0123456789.&#8221;;</p>
<p>private void textBox1_Leave(object sender, EventArgs e)<br />
{</p>
<p>textBox1.Text = Convert.ToDecimal ( textBox1.Text).ToString(&#8220;N2&#8243;).Replace (&#8220;,&#8221;,&#8221;");<br />
}</p>
<p>private void textBox1_KeyPress(object sender, KeyPressEventArgs e)<br />
{<br />
if (strNumber.IndexOf(e.KeyChar) == -1)<br />
{<br />
e.Handled = true;<br />
}</p>
<p>if ((textBox1.Text.IndexOf(&#8216;.&#8217;) &gt; -1) &amp;&amp; (e.KeyChar == &#8216;.&#8217;))<br />
{<br />
e.Handled = true ;<br />
}</p>
<p>}<br />
}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=74&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/12/24/how-to-validate-text-box-with-only-numeric-value-with-two-decimal-place/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Delay Sign an Assembly in .NET 2.0</title>
		<link>http://dotnethacker.wordpress.com/2010/05/27/how-to-delay-sign-an-assembly-in-net-2-0/</link>
		<comments>http://dotnethacker.wordpress.com/2010/05/27/how-to-delay-sign-an-assembly-in-net-2-0/#comments</comments>
		<pubDate>Thu, 27 May 2010 15:44:21 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[ASP.net2.0]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=68</guid>
		<description><![CDATA[How To Delay Sign an Assembly in .NET 2.0 J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Chaitanya Bijwe [edit] Summary of Steps Step 1. Create a public Key File for Delay Signing Step 2. Delay sign your assembly [edit] Step 1. Create a public Key File for Delay Signing When you use delay signing, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=68&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How To Delay Sign an Assembly in .NET 2.0<br />
J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Chaitanya Bijwe </p>
<p>[edit]<br />
Summary of Steps<br />
 	Step 1. Create a public Key File for Delay Signing<br />
 	Step 2. Delay sign your assembly </p>
<p>[edit]<br />
Step 1. Create a public Key File for Delay Signing<br />
When you use delay signing, distribute your public key in a .snk file that just contains the public key. Then, use the -keyfile compiler switch while you delay–sign the assemblies, or continue to use the AssemblyKeyFile attribute if you have existing .NET 1.x code that uses this attribute.<br />
The signing authority performs the following procedure to create a public key file that developers can use to delay sign their assemblies.<br />
[edit]<br />
Creating a Public Key File for Delay Signing<br />
To create a public key file for delay signing<br />
1.	Create a key pair for your organization.sn.exe -k keypair.snk<br />
2.	Extract the public key from the key pair file. sn -p keypair.snk publickey.snk<br />
3.	Protect Keypair.snk, which contains both the private and public keys. For example, put it on a compact disc or other hardware device, such as a smart card, and physically secure it.<br />
4.	Make Publickey.snk available to all developers. For example, put it on a network share. </p>
<p>[edit]<br />
Step 2. Delay Sign Your Assembly<br />
This procedure is performed by developers.<br />
[edit]<br />
Delay Signing an Assembly<br />
To delay sign an assembly<br />
1.	In Visual Studio .NET 2005, display the project properties.<br />
2.	Click the Signing tab, and select the Sign the assembly and Delay sign only check boxes.<br />
3.	In the Choose a strong name key file: drop-down box, select .<br />
4.	In the file selection dialog box, browse to the public key (.snk) and click OK.<br />
5.	Build your assembly. The complier will build a strong named assembly signed using the public key from the selected key pair (.snk) file. Note A delay signed project will not run and cannot be debugged. You can, however, use the Strong Name tool (Sn.exe) with the -Vr option to skip verification during development.<br />
6.	The delay signing process and the absence of an assembly signature means that the assembly will fail verification at load time. To work around this, use the following commands on development and test computers.<br />
	To disable verification for a specific assembly, use the following command.<br />
sn -Vr assembly.dll<br />
	To disable verification for all assemblies with a particular public key, use the following command.<br />
sn -Vr *,publickeytoken<br />
	To extract the public key and key token (a truncated hash of the public key), use the following command.<br />
sn -Tp assembly.dll Note Use an uppercase -T switch.<br />
7.	To fully complete the signing process and create a digital signature to make the assembly tamper proof, execute the following command. This requires the private key, and as a result the operation is normally performed as part of the formal build/release process. The following command uses key pair contained in the Keypair.snk file to re-sign an assembly called Assembly.dll with a strong name. sn -R assembly.dll keypair.snk Done </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=68&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/05/27/how-to-delay-sign-an-assembly-in-net-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>Which w3wp.exe Process Belongs to Which App Pool in IIS6 </title>
		<link>http://dotnethacker.wordpress.com/2010/05/07/which-w3wp-exe-process-belongs-to-which-app-pool-in-iis6%c2%a0/</link>
		<comments>http://dotnethacker.wordpress.com/2010/05/07/which-w3wp-exe-process-belongs-to-which-app-pool-in-iis6%c2%a0/#comments</comments>
		<pubDate>Fri, 07 May 2010 09:50:21 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=66</guid>
		<description><![CDATA[There is tool IISApp.vbs in windows 2003 server which list all the application,application Pool Name and PID. The script is already placed in systemroot\system32 on Windows Server 2003 so simply go to your Command Prompt and type in iisapp.vbs (the .vbs is optional) and you&#8217;ll have an instant list of all the App Pool information [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=66&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is tool IISApp.vbs in windows 2003 server which list all the application,application Pool Name and PID.</p>
<p>The script is already placed in systemroot\system32 on Windows Server 2003 so simply go to your Command Prompt and type in iisapp.vbs (the .vbs is optional) and you&#8217;ll have an instant list of all the App Pool information you&#8217;ve always wanted to know. You may need to type cscript iisapp.vbs if CScript isn&#8217;t your default WSH script host.<br />
Have no worries, Microsoft has given us the exact tool for the situation. IISApp.vbs lists all the applications, their PID and their App Pool name.</p>
<p>Let&#8217;s see an example of the output:<br />
W3WP.exe PID: 1468 AppPoolId: AppPoolForSite1.com<br />
W3WP.exe PID: 3056 AppPoolId: AppPoolForSite2.com<br />
W3WP.exe PID: 1316 AppPoolId: AppPoolForSite3.com</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=66&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/05/07/which-w3wp-exe-process-belongs-to-which-app-pool-in-iis6%c2%a0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF link</title>
		<link>http://dotnethacker.wordpress.com/2010/04/29/wcf-link/</link>
		<comments>http://dotnethacker.wordpress.com/2010/04/29/wcf-link/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 11:35:26 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=64</guid>
		<description><![CDATA[http://msdn.microsoft.com/en-us/library/aa480210.aspx http://msdn.microsoft.com/en-us/netframework/wcf-code-samples.aspx http://msdn.microsoft.com/en-us/library/ms750530.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=64&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>http://msdn.microsoft.com/en-us/library/aa480210.aspx</p>
<p>http://msdn.microsoft.com/en-us/netframework/wcf-code-samples.aspx</p>
<p>http://msdn.microsoft.com/en-us/library/ms750530.aspx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=64&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/04/29/wcf-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>Operation failed or  Your settings do not allow you to open files saved in older file format. To change your setting, navigate to the &#8220;Security&#8221; tab in the Options dialog box while MPP file save as Excel in Microsoft Project 2003.</title>
		<link>http://dotnethacker.wordpress.com/2010/04/29/operation-failed-or-your-settings-do-not-allow-you-to-open-files-saved-in-older-file-format-to-change-your-setting-navigate-to-the-security-tab-in-the-options-dialog-box-while-mpp-file-save-as/</link>
		<comments>http://dotnethacker.wordpress.com/2010/04/29/operation-failed-or-your-settings-do-not-allow-you-to-open-files-saved-in-older-file-format-to-change-your-setting-navigate-to-the-security-tab-in-the-options-dialog-box-while-mpp-file-save-as/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 10:55:04 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[Microsoft Project]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=61</guid>
		<description><![CDATA[olution: Open Microsoft project and go to options on Tools menu. Click on options and then click the Security Tab abd then click Macro setting .on options ,Legacy format ,select “Allow loading files with legacy or not default file formats.  To do this, follow these steps: 1.Click Start, click Run, type regedit, and then click OK. 2.Click the following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=61&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>olution:<br />
	 Open Microsoft project and go to options on Tools menu. Click on options and then click the Security Tab abd then click Macro setting .on options ,Legacy format ,select “Allow loading files with legacy or not default file formats.<br />
 To do this, follow these steps:<br />
1.Click Start, click Run, type regedit, and then click OK.<br />
2.Click the following registry subkey:<br />
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\MS Project\Security<br />
3.Double-click the LegacyFiles registry entry.</p>
<p>Note By default, this registry entry is not created until you change the setting on theSecurity tab in the Options dialog box. Otherwise, this registry entry is not created until you manually create this DWORD value.<br />
4.Type one of the following values, and then click OK:<br />
0<br />
This is the default value if the LegacyFiles registry entry does not exist. This value corresponds to the Do not load file with legacy or non default file formats in Project option in Project 2003.<br />
1<br />
This value corresponds to the Prompt when loading files with legacy or non default file format option in Project 2003.<br />
2<br />
This value corresponds to the Allow loading files with legacy or non default file formats option in Project 2003. This option is the default option in versions of Project 2003 that are earlier than Project 2003 SP3.<br />
5.Exit Registry Editor.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=61&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/04/29/operation-failed-or-your-settings-do-not-allow-you-to-open-files-saved-in-older-file-format-to-change-your-setting-navigate-to-the-security-tab-in-the-options-dialog-box-while-mpp-file-save-as/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuration  file for Gac ; Read confiuration file from GAC</title>
		<link>http://dotnethacker.wordpress.com/2010/04/25/configuration-file-for-gac-read-confiuration-file-from-gac/</link>
		<comments>http://dotnethacker.wordpress.com/2010/04/25/configuration-file-for-gac-read-confiuration-file-from-gac/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 05:07:49 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=57</guid>
		<description><![CDATA[Steps: 1) Create class library (Dal) 2) Generate strong name 3) Assign strong name with class library 4) Add config file(App.Config) 5) In App.Config File ,write 6) Compile and build class library 7) put assembly (Dal.dll) in Gac 8) go to run and Type c:\windows\assembly\gac_msil ,There is folder named as Dal will be appeared and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=57&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>Steps:</p>
<p>1)              Create class library (Dal)</p>
<p>2)              Generate strong name</p>
<p>3)              Assign strong name with class library</p>
<p>4)              Add config file(App.Config)</p>
<p>5)              In App.Config File ,write</p>
<p>6)              Compile and build class library</p>
<p>7)              put assembly (Dal.dll) in Gac</p>
<p>8)              go to run and  Type c:\windows\assembly\gac_msil ,There is folder named as Dal will be appeared and within Dal folder there is folder naming like  versionName_Publickey. Put Config file in this location  c:\windows\assembly\gac_msil\Dal\ versionName_Publickey</p>
<p>How to read config file </p>
<p>public string GetConnectionString()</p>
<p>        {</p>
<p>            string strConfig;</p>
<p>            String strDal = "";</p>
<p>            string strAppPath = AppDomain.CurrentDomain.BaseDirectory;<br />
            string strAssPath = System.Reflection.Assembly.GetExecutingAssembly().Location;   </p>
<p>            Configuration config2 = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExecutingAssembly().Location);</p>
<p>            strDal = config2.AppSettings.Settings["SQLConnectionString"].Value;</p>
<p>            if (ConfigurationManager.AppSettings["SQLConnectionString"] != null)</p>
<p>                strConfig = ConfigurationManager.AppSettings["name"];</p>
<p>            else</p>
<p>                strConfig = "Unbale to read App.config File";</p>
<p>            return strConfig;</p>
<p>        }</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=57&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/04/25/configuration-file-for-gac-read-confiuration-file-from-gac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add reference in SSIS</title>
		<link>http://dotnethacker.wordpress.com/2010/04/25/how-to-add-reference-in-ssis/</link>
		<comments>http://dotnethacker.wordpress.com/2010/04/25/how-to-add-reference-in-ssis/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 05:03:37 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=55</guid>
		<description><![CDATA[1 ) put assembly in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 OR C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies for accessing the dll , generate strong name for assemblies and put in Gac folder C:\windows\assembly\ Open the Add Reference dialog box again and the assembly should be visibile.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=55&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1 )  put assembly in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727</p>
<p>   OR C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies</p>
<p>for accessing the dll , generate strong name for assemblies and put in Gac folder C:\windows\assembly\</p>
<p>Open the Add Reference dialog box again and the assembly should be visibile.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=55&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/04/25/how-to-add-reference-in-ssis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>Execute SQL Task Pragmatically</title>
		<link>http://dotnethacker.wordpress.com/2010/04/25/execute-sql-task-pragmatically/</link>
		<comments>http://dotnethacker.wordpress.com/2010/04/25/execute-sql-task-pragmatically/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 05:02:45 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[SSIS]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=53</guid>
		<description><![CDATA[Dim p As New Package() Dim cm As ConnectionManager = p.Connections.Add("ADO.NET") cm.ConnectionString = " Data Source=rajeshsharma\sql2005; Integrated Security=SSPI;Initial Catalog=test;" Dim e As Executable = p.Executables.Add("STOCK:SQLTask") Dim th As TaskHost = CType(e, TaskHost) Dim est As ExecuteSQLTask = CType(th.InnerObject, ExecuteSQLTask) est.Connection = cm.Name est.SqlStatementSourceType = SqlStatementSourceType.DirectInput est.SqlStatementSource = " CREATE TABLE TestTable7 ( ID int NOT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=53&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code><br />
 Dim p As New Package()</p>
<p>        Dim cm As ConnectionManager = p.Connections.Add("ADO.NET")</p>
<p>        cm.ConnectionString = "  Data Source=rajeshsharma\sql2005; Integrated Security=SSPI;Initial Catalog=test;"<br />
        Dim e As Executable = p.Executables.Add("STOCK:SQLTask")<br />
        Dim th As TaskHost = CType(e, TaskHost)<br />
        Dim est As ExecuteSQLTask = CType(th.InnerObject, ExecuteSQLTask)<br />
        est.Connection = cm.Name<br />
        est.SqlStatementSourceType = SqlStatementSourceType.DirectInput<br />
        est.SqlStatementSource = " CREATE TABLE TestTable7   ( ID int NOT NULL, Description nchar(100));  "<br />
        'run the package</p>
<p>        Dim r As DTSExecResult = p.Execute()<br />
        If (r = DTSExecResult.Success) Then</p>
<p>        End If</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=53&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/04/25/execute-sql-task-pragmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Windows Service installed Path</title>
		<link>http://dotnethacker.wordpress.com/2010/04/25/get-windows-service-installed-path/</link>
		<comments>http://dotnethacker.wordpress.com/2010/04/25/get-windows-service-installed-path/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 04:54:16 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://dotnethacker.wordpress.com/?p=50</guid>
		<description><![CDATA[using System; using System.Management; using System.ServiceProcess; using System.IO; namespace ConsoleApplication1 { class Program { private static string _ServiceName = &#8220;TestService&#8221;; static void Main(string[] args) { ServiceController[] srvControllers = ServiceController.GetServices(); foreach (ServiceController service in srvControllers) { if (service.ServiceName == _ServiceName) { Console.WriteLine(GetServicePath(_ServiceName)); Console.ReadLine(); } } //GoogleUpdaterService } public static string GetServicePath(string serviceName) { string strServiceName = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=50&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>using System;<br />
using System.Management;<br />
using System.ServiceProcess;<br />
using System.IO;</p>
<p>namespace ConsoleApplication1<br />
{<br />
    class Program<br />
    {</p>
<p>        private static string _ServiceName = &#8220;TestService&#8221;;<br />
        static void Main(string[] args)<br />
        {</p>
<p>            ServiceController[] srvControllers = ServiceController.GetServices();</p>
<p>            foreach (ServiceController service in srvControllers)<br />
            {</p>
<p>                if (service.ServiceName == _ServiceName)<br />
                {<br />
                    Console.WriteLine(GetServicePath(_ServiceName));<br />
                    Console.ReadLine();<br />
                }<br />
            }</p>
<p>            //GoogleUpdaterService<br />
        }<br />
        public static string GetServicePath(string serviceName)<br />
        {<br />
            string strServiceName = &#8220;&#8221;;<br />
            using (ManagementObjectSearcher mos = new ManagementObjectSearcher(&#8220;SELECT PathName FROM Win32_Service WHERE Name = \&#8221;" + serviceName + &#8220;\&#8221;"))<br />
            {<br />
                foreach (ManagementObject mo in mos.Get())<br />
                {<br />
                    strServiceName = Path.GetDirectoryName(mo["PathName"].ToString());<br />
                }<br />
            }</p>
<p>            return strServiceName;<br />
        }<br />
    }</p>
<p>}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnethacker.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnethacker.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnethacker.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnethacker.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnethacker.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnethacker.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnethacker.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnethacker.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnethacker.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnethacker.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnethacker.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnethacker.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnethacker.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnethacker.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnethacker.wordpress.com&amp;blog=1463994&amp;post=50&amp;subd=dotnethacker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnethacker.wordpress.com/2010/04/25/get-windows-service-installed-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a4569660033e084ca73354bbd3c0719?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajesh20k</media:title>
		</media:content>
	</item>
	</channel>
</rss>
