<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-10551639</id><updated>2012-04-16T02:57:34.766Z</updated><category term='Bit-torrent'/><category term='.Net Remoting'/><category term='Favourite recipes'/><category term='Download sites'/><category term='SQL management studio 2005'/><category term='Technology'/><category term='SQL 2005 Reporting Services'/><category term='Object Oriented Programming (OOP)'/><title type='text'>My Head Hurts!</title><subtitle type='html'>This is a blog to record my ramblings on mainly .Net, SQL and Information Technology, although I may get side tracked. Feel free to add a comment. Please try and keep to the subject matter of Information Technology.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default?start-index=26&amp;max-results=25'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10551639.post-3406042973683699558</id><published>2010-07-24T15:00:00.000Z</published><updated>2010-07-24T15:00:42.523Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Favourite recipes'/><title type='text'>Blue-Cheese-Crusted Steaks with Red Wine Sauce</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Arial, Verdana, sans-serif; font-size: 10px;"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div&gt;Blue cheese can really add flavor to a steak. The combination of the steak flavor with the bite of blue cheese really stands out.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Ingredients&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4 tablespoons (1/2 stick) &amp;nbsp;butter&lt;/div&gt;&lt;div&gt;3 garlic cloves, chopped&lt;/div&gt;&lt;div&gt;1 large shallot, chopped&lt;/div&gt;&lt;div&gt;1 tablespoon chopped fresh thyme&lt;/div&gt;&lt;div&gt;3/4 cup beef broth&lt;/div&gt;&lt;div&gt;1/2 cup dry red wine&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1/2 cup coarsely crumbled blue cheese (about 2 ounces)&lt;/div&gt;&lt;div&gt;1/4 cup &amp;nbsp;breadcrumbs&lt;/div&gt;&lt;div&gt;1 tablespoon chopped fresh parsley&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4 filet steaks (each 6 to 8 ounces)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Instructions&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Red Wine sauce.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Melt 1 tablespoon butter in heavy medium skillet over medium-high heat. Add garlic, shallot, and thyme. Sauté until shallot is tender, about 5 minutes. Add broth and wine. Boil until sauce is reduced to 1/2 cup, about 12 minutes. Set sauce aside.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Blue Cheese and bread crumbs&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Blend cheese, bread crumbs and parsley in small bowl.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Fillet steaks&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Melt 2 tablespoons butter in heavy large skillet over medium-high heat. Sprinkle steaks with salt and pepper. Add steaks to skillet and cook. About 5 minutes per side for medium-rare.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Transfer steaks to grilling tray. Press cheese mixture onto top of steaks, dividing equally. Grill until cheese browns, about 2 minutes. Transfer steaks to plates.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pour sauce into skillet. Bring to boil, scraping up browned bits. Boil 2 minutes. Whisk in remaining 1 tablespoon butter. Season with salt and pepper. Spoon sauce around steaks and serve&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-3406042973683699558?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/3406042973683699558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=3406042973683699558' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/3406042973683699558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/3406042973683699558'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/07/blue-cheese-crusted-steaks-with-red.html' title='Blue-Cheese-Crusted Steaks with Red Wine Sauce'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-8777953170354519394</id><published>2010-07-24T13:17:00.001Z</published><updated>2010-07-24T15:01:22.018Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Favourite recipes'/><title type='text'>Blue Cheese sauce</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;b&gt;Ingredients&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;200g blue cheese, eg, Stilton, roquefort, gorgonzola 4tbsp crème fraîche or sour cream&lt;br /&gt;1tbsp Dijon mustard&lt;br /&gt;1tsp Worcestershire sauce&lt;br /&gt;1tbsp tomato purée&lt;br /&gt;½tsp paprika&lt;br /&gt;Good pinch of ground cayenne&lt;br /&gt;Freshly ground pepper&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;b&gt;METHOD&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Combine 150g of blue cheese with the crème fraîche, mustard, Worcestershire sauce, tomato purée, paprika, cayenne and pepper in a saucepan and heat gently, stirring with a wooden spoon until the cheese has melted, and keep warm.&amp;nbsp;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-8777953170354519394?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/8777953170354519394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=8777953170354519394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/8777953170354519394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/8777953170354519394'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/07/blue-cheese-sauce.html' title='Blue Cheese sauce'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-7197717832578981812</id><published>2010-06-17T18:33:00.001Z</published><updated>2010-06-17T18:41:04.070Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL management studio 2005'/><title type='text'>Prevent SQL Injection in Asp.Net (C#)</title><content type='html'>How to prevent SQL Injection in Asp.Net (C#)?&lt;br /&gt;&lt;br /&gt;An SQL  Injection attack takes place when someone inserts SQL code&amp;nbsp;into a field  on a web page that is then passed on to the database.&amp;nbsp;For example if I  had a grudge against some company and their site&amp;nbsp;wasn't&amp;nbsp;secure, I could  insert an SQL Injection attack on their&amp;nbsp;unsecured website and delete  all the data in their database, or&amp;nbsp;possible steal all their credit card  numbers.&lt;br /&gt;&lt;br /&gt;Preventing an SQL Injection attack is as simple as using  proper&amp;nbsp;coding standards when accessing your backend database. Using  these&amp;nbsp;methods&amp;nbsp;doesn't&amp;nbsp;add significantly to your development time and  in&amp;nbsp;many cases actually reduces it, because it reduces many  opportunities&amp;nbsp;for errors, and allows for better error  handling.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sample Bad Query:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  -----------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strSQL = “SELECT * FROM CUSTOMERS  WHERE EMAILADDRESS = " +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtEmailAddress.Text +";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In  the above C# code, basically we are taking input directly from the&amp;nbsp;web  field containing the user entered email address and passing it&amp;nbsp;straight  into our query without any checks. If for example I had typed in ” 1';  DELETE FROM CUSTOMERS; “, it would have selected the&amp;nbsp;customers where  the email address equals “1? and then deleted all&amp;nbsp;records from  CUSTOMERS.&lt;br /&gt;&lt;br /&gt;This vunerability is amazingly common even on today’s  modern websitesand most of them don’t even realize it.&lt;br /&gt;&lt;br /&gt;The Solution&lt;br /&gt;------------------&lt;br /&gt;Solving this little problem  is as simple as changing the way you make your query. Instead of  contactenating your strings to build a query,&amp;nbsp;simply use an&amp;nbsp;SQL&amp;nbsp;Command  object and parameters. Not only are you&amp;nbsp;gaining the added security and  protecting your business, you will&amp;nbsp;actually make your site more  efficient because queries using&amp;nbsp;parameters are compiled for future use  by SqlServer and therefore&amp;nbsp;have better repeat&amp;nbsp;performance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sample Proper Code:&lt;br /&gt;-------------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdTemp.CommandText = “SELECT *  FROM CUSTOMERS WHERE EMAILADDRESS =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @EMAILADDRESS”;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  cmdTemp.Parameters.Add(&lt;a href="mailto:%E2%80%9C@EMAILADDRESS"&gt;“@EMAILADDRESS&lt;/a&gt;”,  SqlDbType.Varchar, 50).Value&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = txtEmailAddress.Text;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Yes you have one extra line of code, but that line of code actually&amp;nbsp;helps you out. For example if this was an INSERT instead of a SELECT&amp;nbsp;then it would automatically prevent me from sending a string that was&amp;nbsp;to long for the field to the SQL Server, allowing me to catch the&amp;nbsp;error  on the business logic side. The same would hold true if for&amp;nbsp;example I  was trying to pass a string into an int field.&lt;br /&gt;&lt;br /&gt;Take this simple  step, it’s not only a better way to code, it could potentially save  your company millions in lawsuits and hundreds or&amp;nbsp;thousands of people  the pain and suffering of having their credit card numbers  stolen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-7197717832578981812?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/7197717832578981812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=7197717832578981812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/7197717832578981812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/7197717832578981812'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/06/prevent-sql-injection-in-aspnet-c.html' title='Prevent SQL Injection in Asp.Net (C#)'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-2055923079466125178</id><published>2010-04-19T22:20:00.000Z</published><updated>2010-04-19T22:20:23.036Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net Remoting'/><title type='text'>How To: Build and Host a Remote Object in a Windows Service</title><content type='html'>&lt;div align="center" class="MsoNormal" style="text-align: auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 3.75pt; margin-left: -3.0pt; margin-right: 7.5pt; mso-margin-top-alt: auto; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;Remote objects (that is, .NET objects accessed remotely using .NET Remoting technology) can be hosted in Windows services, custom executables, or ASP.NET. Clients communicate with remote objects hosted in custom executables or Windows services by using the TCP channel. Clients communicate with remote objects hosted in ASP.NET by using the HTTP channel. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;This example shows how to write a simple "Hello World" remote application. The client passes a String to the remote object that appends the words "Hi There" to the string and returns the result back to the client. This code can be easily modified to execute a command or open an application on the remote server. In order to modify this sample to use HTTP rather than TCP, simply replace TCP with HTTP in the source files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;This example was compiled using C# in the 2.0 .Net Framework.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="font-family: Verdana;"&gt;Overview&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;The “Hello World" client class interacts directly with the remote object class. The remote object class is installed on the remote server using the Windows Service Hosting Application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;!--[if mso &amp; !supportInlineShapes &amp; supportFields]&gt;&lt;span lang=EN-US style='font-size:8.5pt;font-family:Verdana'&gt;&lt;span style='mso-element: field-begin;mso-field-lock:yes'&gt;&lt;/span&gt;&lt;span style='mso-spacerun:yes'&gt; &lt;/span&gt;SHAPE&lt;span style='mso-spacerun:yes'&gt;  &lt;/span&gt;\* MERGEFORMAT &lt;span style='mso-element:field-separator'&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:group  id="_x0000_s1026" editas="canvas" style='width:6in;height:270pt;  mso-position-horizontal-relative:char;mso-position-vertical-relative:line'  coordorigin="2527,3292" coordsize="7200,4629"&gt;  &lt;o:lock v:ext="edit" aspectratio="t"/&gt;  &lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75"   o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;   &lt;v:stroke joinstyle="miter"/&gt;   &lt;v:formulas&gt;    &lt;v:f eqn="if lineDrawn pixelLineWidth 0"/&gt;    &lt;v:f eqn="sum @0 1 0"/&gt;    &lt;v:f eqn="sum 0 0 @1"/&gt;    &lt;v:f eqn="prod @2 1 2"/&gt;    &lt;v:f eqn="prod @3 21600 pixelWidth"/&gt;    &lt;v:f eqn="prod @3 21600 pixelHeight"/&gt;    &lt;v:f eqn="sum @0 0 1"/&gt;    &lt;v:f eqn="prod @6 1 2"/&gt;    &lt;v:f eqn="prod @7 21600 pixelWidth"/&gt;    &lt;v:f eqn="sum @8 21600 0"/&gt;    &lt;v:f eqn="prod @7 21600 pixelHeight"/&gt;    &lt;v:f eqn="sum @10 21600 0"/&gt;   &lt;/v:formulas&gt;   &lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/&gt;   &lt;o:lock v:ext="edit" aspectratio="t"/&gt;  &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_s1027" type="#_x0000_t75" style='position:absolute;   left:2527;top:3292;width:7200;height:4629' o:preferrelative="f"&gt;   &lt;v:fill o:detectmouseclick="t"/&gt;   &lt;v:path o:extrusionok="t" o:connecttype="none"/&gt;   &lt;o:lock v:ext="edit" text="t"/&gt;  &lt;/v:shape&gt;&lt;v:rect id="_x0000_s1028" style='position:absolute;left:2677;top:3601;   width:6900;height:1542' fillcolor="#cfc"&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;Remote Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:rect&gt;&lt;v:oval id="_x0000_s1029" style='position:absolute;left:4027;top:4063;   width:1200;height:926' fillcolor="#ff9"&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal align=center style='text-align:center'&gt;&lt;b      style='mso-bidi-font-weight:normal'&gt;&lt;span style='font-size:8.0pt;      font-family:Verdana;mso-ansi-language:EN-GB'&gt;Remote Object&lt;/span&gt;&lt;/b&gt;&lt;span      style='mso-ansi-language:EN-GB'&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:oval&gt;&lt;v:rect id="_x0000_s1030" style='position:absolute;left:2677;top:6223;   width:2700;height:1543' fillcolor="#cfc"&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;Client&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;mso-ansi-language:EN-GB'&gt;&lt;span      style='mso-spacerun:yes'&gt; &lt;/span&gt;Application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:rect&gt;&lt;v:oval id="_x0000_s1031" style='position:absolute;left:4027;top:6686;   width:1200;height:926' fillcolor="#ff9"&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal align=center style='text-align:center'&gt;&lt;b      style='mso-bidi-font-weight:normal'&gt;&lt;span style='font-size:9.0pt;      mso-ansi-language:EN-GB'&gt;Remote Client Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:oval&gt;&lt;v:shape id="_x0000_s1032" type="#_x0000_t75" style='position:absolute;   left:2827;top:3292;width:1075;height:1389'&gt;   &lt;v:imagedata src="file:///C:\Users\New\AppData\Local\Temp\msohtml1\01\clip_image001.wmz"    o:title=""/&gt;  &lt;/v:shape&gt;&lt;v:shape id="_x0000_s1033" type="#_x0000_t75" style='position:absolute;   left:2827;top:6069;width:1050;height:1080'&gt;   &lt;v:imagedata src="file:///C:\Users\New\AppData\Local\Temp\msohtml1\01\clip_image002.png"    o:title=""/&gt;  &lt;/v:shape&gt;&lt;v:line id="_x0000_s1034" style='position:absolute' from="4627,4989"   to="4627,6686"&gt;   &lt;v:stroke startarrow="block" endarrow="block"/&gt;  &lt;/v:line&gt;&lt;v:oval id="_x0000_s1035" style='position:absolute;left:5827;top:4063;   width:1800;height:926' fillcolor="#ff9"&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal align=center style='text-align:center'&gt;&lt;b      style='mso-bidi-font-weight:normal'&gt;&lt;span style='font-size:8.0pt;      font-family:Verdana;mso-ansi-language:EN-GB'&gt;RemotingHost &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=MsoNormal align=center style='text-align:center'&gt;&lt;b      style='mso-bidi-font-weight:normal'&gt;&lt;span style='font-size:8.0pt;      font-family:Verdana;mso-ansi-language:EN-GB'&gt;Applicatiom&lt;/span&gt;&lt;/b&gt;&lt;span      style='font-size:8.0pt;font-family:Verdana;mso-ansi-language:EN-GB'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:oval&gt;&lt;v:line id="_x0000_s1036" style='position:absolute;flip:x' from="5227,4526"   to="5827,4526"&gt;   &lt;v:stroke endarrow="block"/&gt;  &lt;/v:line&gt;&lt;v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202"   path="m,l,21600r21600,l21600,xe"&gt;   &lt;v:stroke joinstyle="miter"/&gt;   &lt;v:path gradientshapeok="t" o:connecttype="rect"/&gt;  &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_s1037" type="#_x0000_t202" style='position:absolute;   left:7777;top:3755;width:1500;height:1234'&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt;font-family:Verdana;      mso-ansi-language:EN-GB'&gt;The RemotingHost Application installs the Remote      object as a windows service on the remote server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:shape&gt;&lt;v:shape id="_x0000_s1038" type="#_x0000_t202" style='position:absolute;   left:4777;top:5298;width:1650;height:771'&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal&gt;&lt;span lang=EN-US style='font-size:8.5pt;font-family:      Verdana'&gt;The remote object listens for client requests&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:shape&gt;&lt;v:shape id="_x0000_s1039" type="#_x0000_t202" style='position:absolute;   left:3877;top:3446;width:1650;height:463'&gt;   &lt;v:textbox&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding=0 cellspacing=0 width="100%"&gt;&lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class=MsoNormal&gt;&lt;b style='mso-bidi-font-weight:normal'&gt;&lt;span      style='font-size:10.0pt;font-family:Verdana;mso-ansi-language:EN-GB'&gt;Remote      Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;&lt;/table&gt;&lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:shape&gt;&lt;w:wrap type="none"/&gt;  &lt;w:anchorlock/&gt; &lt;/v:group&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;!--[if mso &amp; !supportInlineShapes &amp; supportFields]&gt;&lt;span lang=EN-US style='font-size:8.5pt;font-family:Verdana'&gt;&lt;v:shape id="_x0000_i1025"  type="#_x0000_t75" style='width:6in;height:270pt'&gt;  &lt;v:imagedata croptop="-65520f" cropbottom="65520f"/&gt; &lt;/v:shape&gt;&lt;span style='mso-element:field-end'&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="font-family: Verdana;"&gt;Steps to create a remote object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 36.0pt; margin-right: 7.5pt; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;1.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Create a Remote Client Class.&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 36.0pt; margin-right: 7.5pt; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;2.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Create the Remote Object Class.&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 36.0pt; margin-right: 7.5pt; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;3.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Create a Microsoft Windows Service Host Application.&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 36.0pt; margin-right: 7.5pt; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;4.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Install and start the Windows Service.&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt; &lt;/span&gt;  &lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;u&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 10.0pt;"&gt;Step1: Create a Remote Client Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Configuration;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Runtime.Remoting;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Runtime.Remoting.Channels;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Runtime.Remoting.Channels.Tcp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;namespace&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt; RemotingSamples&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;public&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;Client&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;public&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; Execute_Remote_Job()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//Create new client channel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;foreach&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; (&lt;span style="color: #2b91af;"&gt;IChannel&lt;/span&gt; channel &lt;span style="color: blue;"&gt;in&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ChannelServices&lt;/span&gt;.RegisteredChannels)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;ChannelServices&lt;/span&gt;.UnregisterChannel(channel);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;TcpChannel&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; Chnl = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;TcpChannel&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//Register Channel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;ChannelServices&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;.RegisterChannel(Chnl, &lt;span style="color: blue;"&gt;false&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//Instansiate remote object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//Please replace &lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;localhost:8090&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt; &lt;/span&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;with the name and port number of your //remote server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="color: #33cccc; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;HelloServer&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt; obj = (&lt;span style="color: #33cccc;"&gt;HelloServer&lt;/span&gt;)&lt;span style="color: #33cccc;"&gt;Activator&lt;/span&gt;.GetObject(&lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(RemotingSamples.&lt;span style="color: #33cccc;"&gt;HelloServer&lt;/span&gt;) , &lt;span style="color: red;"&gt;"tcp://&lt;b style="mso-bidi-font-weight: normal;"&gt;localhost:8090&lt;/b&gt;/RemotingSamples.&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;HelloServer&lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;"&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//Call Remote object Method&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;String&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; strRet = &lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;obj&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;.RunMain_Job(&lt;span style="color: red;"&gt;“Hello World.”&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//**********Return the new string**************************&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-indent: 36.0pt;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;return&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; strRet;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//*********************************************************&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt; &lt;/span&gt;  &lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;u&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 10.0pt;"&gt;Step 2: Create a Remote Object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 9.0pt;"&gt;*Note: Derive the &lt;b&gt;HelloServer&lt;/b&gt; class from &lt;b&gt;MarshalByRefObject&lt;/b&gt; to make the class remotable&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;.&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.ComponentModel;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Diagnostics;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;namespace&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;RemotingSamples&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;public&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;HelloServer&lt;/span&gt;:&lt;span style="color: #2b91af;"&gt;MarshalByRefObject&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//When you design a singleton object, override //InitializeLifetimeService and return a null object as the new lease, //indicating that this lease never expires&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;public&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;object&lt;/span&gt; InitializeLifetimeService()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;return&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//Create Remote object method here. T&lt;/span&gt;&lt;span lang="EN-US" style="color: #339966; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;his code can be easily modified to //execute a command or open an application on the remote server&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;public&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; RunMain_Job(&lt;span style="color: blue;"&gt;string&lt;/span&gt; strHello)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; strRet = &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-tab-count: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;strRet = strHello;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;//************Append string and return it**************&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-tab-count: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 36.0pt; mso-layout-grid-align: none; text-autospace: none; text-indent: 36.0pt;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;strRet+= &lt;span style="color: #a31515;"&gt;" Hi there"&lt;/span&gt;;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; (strRet);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-no-proof: yes;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt; &lt;/span&gt;  &lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-right: 7.5pt; mso-margin-top-alt: auto; vertical-align: top;"&gt;&lt;b&gt;&lt;u&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 10.0pt; line-height: 140%;"&gt;Step 3: Create a Microsoft Windows Service Host Application.&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;u&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 10.0pt; line-height: 140%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="line-height: 140%; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;This procedure creates a Windows service application, which will be used to host the remote object. When the service is started it will configure the TCP remoting channel to listen for client requests.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; vertical-align: top;"&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Note&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;This procedure uses an Installer class and the Installutil.exe command line utility to install the Windows service. To uninstall the service, run Installutil.exe with the &lt;b&gt;/u&lt;/b&gt; switch.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 140%; vertical-align: top;"&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;To create a Windows Service host application&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;1.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Add a new Visual C# Windows Service project called &lt;b&gt;RemotingHost&lt;/b&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;2.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Use Solution Explorer to rename Service1.cs as RemotingHost.cs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;3.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Add the following code to RemotingHost.cs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 12.0pt; margin-right: 0cm; margin-top: 0cm; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.ServiceProcess;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Runtime.Remoting;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;namespace&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; RemotingHost&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;RemotingHost&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: grey;"&gt;///&lt;/span&gt;&lt;span style="color: green;"&gt; &lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;summary&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/summary&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: grey;"&gt;///&lt;/span&gt;&lt;span style="color: green;"&gt; The main entry point for the application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: grey;"&gt;///&lt;/span&gt;&lt;span style="color: green;"&gt; &lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; &lt;st1:place w:st="on"&gt;Main&lt;/st1:place&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;ServiceBase&lt;/span&gt;[] ServicesToRun;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;// More than one user Service may run within the same process. To add&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;// another service to this process, change the following line to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;// create a second service object. For example,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;//&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ServicesToRun = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ServiceBase&lt;/span&gt;[] { &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;HostService&lt;/span&gt;() };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;ServiceBase&lt;/span&gt;.Run(ServicesToRun);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 12.0pt; margin-right: 0cm; margin-top: 0cm; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 140%; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 140%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-no-proof: yes;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt; &lt;/span&gt;  &lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 12.0pt; margin-right: 0cm; margin-top: 0cm; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;4.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;In RemotingHost.cs, rename the &lt;b&gt;Service1&lt;/b&gt; class as &lt;b&gt;HostService&lt;/b&gt; and add the following code. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.ComponentModel;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Diagnostics;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.ServiceProcess;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Runtime.Remoting;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;namespace&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; RemotingHost &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;partial&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;HostService&lt;/span&gt; : &lt;span style="color: #2b91af;"&gt;ServiceBase&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; HostService()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;InitializeComponent();&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; OnStart(&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;// TODO: Add code here to start your service.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;System.Diagnostics.&lt;span style="color: #2b91af;"&gt;EventLog&lt;/span&gt;.WriteEntry(ServiceName, ServiceName + &lt;span style="color: #a31515;"&gt;"::OnStart()"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;RemotingConfiguration&lt;/span&gt;.Configure(&lt;span style="color: #2b91af;"&gt;AppDomain&lt;/span&gt;.CurrentDomain.BaseDirectory.ToString() + &lt;span style="color: #a31515;"&gt;"RemotingHost.exe.config"&lt;/span&gt;,&lt;span style="color: blue;"&gt;false&lt;/span&gt;);&lt;span style="mso-tab-count: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; OnStop()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;// TODO: Add code here to perform any tear-down necessary to stop your service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;base&lt;/span&gt;.OnStop();&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 12.0pt; margin-right: 0cm; margin-top: 0cm; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 140%; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 12.0pt; margin-right: 0cm; margin-top: 0cm; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 140%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-no-proof: yes;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt; &lt;/span&gt;  &lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 12.0pt; margin-right: 0cm; margin-top: 0cm; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;5.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Add a new C# class file to the project and name it &lt;b&gt;HostServiceInstaller&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;6.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Add an assembly reference to the System.Configuration.Install.dll assembly and add the following code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.ComponentModel;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.ServiceProcess;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;using&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; System.Configuration.Install;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;namespace&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; RemotingHost&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;[&lt;span style="color: #2b91af;"&gt;RunInstaller&lt;/span&gt;(&lt;span style="color: blue;"&gt;true&lt;/span&gt;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;HostServiceInstaller&lt;/span&gt; : &lt;span style="color: #2b91af;"&gt;Installer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ServiceInstaller&lt;/span&gt; HostInstaller;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ServiceProcessInstaller&lt;/span&gt; HostProcessInstaller;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; HostServiceInstaller()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HostInstaller = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ServiceInstaller&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HostInstaller.StartType = System.ServiceProcess.&lt;span style="color: #2b91af;"&gt;ServiceStartMode&lt;/span&gt;.Manual;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HostInstaller.ServiceName = &lt;span style="color: #a31515;"&gt;"RemotingHost"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HostInstaller.DisplayName = &lt;span style="color: #a31515;"&gt;"Remoting Host Service"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Installers.Add(HostInstaller);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HostProcessInstaller = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ServiceProcessInstaller&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HostProcessInstaller.Account = &lt;span style="color: #2b91af;"&gt;ServiceAccount&lt;/span&gt;.User;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Installers.Add(HostProcessInstaller);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-no-proof: yes;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt; &lt;/span&gt;  &lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;7.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Within Solution Explorer, right-click &lt;b&gt;RemotingHost&lt;/b&gt;, point to &lt;b&gt;Add&lt;/b&gt;, and then click &lt;b&gt;Add New Item&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;8.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;In the &lt;b&gt;Templates&lt;/b&gt; list, click &lt;b&gt;Text&lt;/b&gt; &lt;b&gt;File&lt;/b&gt; and name the file &lt;b&gt;app.config&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-left: 30.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Configuration files with the name app.config are automatically copied by Visual Studio .NET as part of the build process to the output folder (for example, &amp;lt;&lt;i&gt;projectdir&lt;/i&gt;&amp;gt;\bin\debug) and renamed as &amp;lt;&lt;i&gt;applicationname&lt;/i&gt;&amp;gt;.config.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-left: 30.0pt; vertical-align: top;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;9.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Click &lt;b&gt;OK&lt;/b&gt; to add the new configuration file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-left: 30.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: top;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;10.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Add the following configuration elements to the new configuration file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 8.5pt;"&gt;*Note make sure port number used is the same as in the client class &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;configuration&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;system.runtime.remoting&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;application&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;name&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;=&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;span style="color: blue;"&gt;RemotingHost&lt;/span&gt;"&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;channels&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;channel&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;ref&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;=&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;span style="color: blue;"&gt;tcp&lt;/span&gt;"&lt;span style="color: blue;"&gt; &lt;/span&gt;&lt;span style="color: red;"&gt;port&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;8090&lt;/span&gt;"&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;serverProviders&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;formatter&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;ref&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;=&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;span style="color: blue;"&gt;binary&lt;/span&gt;"&lt;span style="color: blue;"&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;serverProviders&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;channel&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;channels&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;service&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;wellknown&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt; &lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;type&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;=&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt; RemotingSamples.&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;HelloServer, &lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;RemotingSamples&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-tab-count: 4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;objectUri&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;=&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;RemotingSamples.&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;HelloServer&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-tab-count: 4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;mode&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;=&lt;/span&gt;&lt;span lang="EN-US" style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;"&lt;span style="color: blue;"&gt;Singleton&lt;/span&gt;"&lt;span style="color: blue;"&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;service&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;application&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;system.runtime.remoting&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&lt;/span&gt;&lt;span lang="EN-US" style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;configuration&lt;/span&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span lang="EN-US" style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 140%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-no-proof: yes;"&gt;&lt;br clear="all" style="page-break-before: always;" /&gt; &lt;/span&gt;  &lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 3.75pt; margin-right: 7.5pt; mso-margin-top-alt: auto; vertical-align: top;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;u&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 10.0pt; line-height: 140%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;"&gt;Step 4: &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 10.0pt; line-height: 140%;"&gt;Install and start the Windows Service.&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;u&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 10.0pt; line-height: 140%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;This procedure installs a Windows service using the installutil.exe utility and then starts the service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;Steps To install the Windows service&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 40.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level1 lfo3; tab-stops: list 36.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;1.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Open a DOS command window and change directory to the folder which contains the executable file of your remote service. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: #DDDDDD; line-height: 140%; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 40.0pt; margin-right: 10.0pt; margin-top: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;D:\cd.. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 40.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level1 lfo3; tab-stops: list 36.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;2.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;If a pervious version has been installed please un-install this version first by running the installutil.exe\u utility to un-install the service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; text-indent: 36.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Use the following in the command line to un-install.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: #DDDDDD; line-height: 140%; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 40.0pt; margin-right: 10.0pt; margin-top: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;installutil.exe/u &lt;span style="color: red; mso-no-proof: yes;"&gt;RemotingHost&lt;/span&gt;&lt;span style="color: red;"&gt;.exe&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 40.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level1 lfo3; tab-stops: list 36.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;3.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Run the installutil.exe utility to install the service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 22.0pt; margin-right: 0cm; margin-top: 0cm; text-indent: 14.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Use the following line in the command line.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="background: #DDDDDD; line-height: 140%; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 40.0pt; margin-right: 10.0pt; margin-top: 0cm; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;"&gt;installutil.exe &lt;span style="color: red; mso-no-proof: yes;"&gt;RemotingHost&lt;/span&gt;&lt;span style="color: red;"&gt;.exe&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 22.0pt; margin-right: 0cm; margin-top: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 22.0pt; margin-right: 0cm; margin-top: 0cm;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;In the &lt;b&gt;Set&lt;/b&gt; &lt;b&gt;Service&lt;/b&gt; &lt;b&gt;Login&lt;/b&gt; dialog box, enter user name and password&lt;span style="color: red;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 40.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level1 lfo3; tab-stops: list 36.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;4.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;View the output from the installutil.exe utility and confirm that the service is installed correctly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 40.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level1 lfo3; tab-stops: list 36.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;5.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;Close the DOS command window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt; &lt;/span&gt;  &lt;br /&gt;&lt;b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;Steps To Start the Windows service&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: 140%;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 72.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level2 lfo3; tab-stops: list 72.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;1.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;From the &lt;b&gt;Administrative&lt;/b&gt; &lt;b&gt;Tools&lt;/b&gt; program group in the control panel, start the Services MMC snap-in.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 72.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level2 lfo3; tab-stops: list 72.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;2.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;In the &lt;b&gt;Services&lt;/b&gt; list, find and right-click on &lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;"&gt;RemotingHost&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;, and then click &lt;b&gt;Properties&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 72.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level2 lfo3; tab-stops: list 72.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;3.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Enter the full path to the service's configuration file into the &lt;b&gt;Start parameters&lt;/b&gt; field. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 72.0pt; margin-right: 0cm; margin-top: 0cm;"&gt;&lt;b&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Note:&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;A quick way to find the correct path is to select and copy the &lt;b&gt;Path to executable&lt;/b&gt; field and paste it into the &lt;b&gt;Start&lt;/b&gt; &lt;b&gt;parameters&lt;/b&gt; field. Then add &lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span lang="EN-US" style="color: #3366ff; font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;.config&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="color: red; font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt; to the end of the string inside the quotation marks.&lt;b&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 72.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level2 lfo3; tab-stops: list 72.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;4.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;Click &lt;b&gt;Start&lt;/b&gt; to start the service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 72.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level2 lfo3; tab-stops: list 72.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;5.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;Click &lt;b&gt;OK&lt;/b&gt; to close the &lt;b&gt;Properties&lt;/b&gt; dialog box. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt; margin-left: 72.0pt; margin-right: 0cm; margin-top: 0cm; mso-list: l1 level2 lfo3; tab-stops: list 72.0pt; text-indent: -18.0pt;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"&gt;&lt;span style="mso-list: Ignore;"&gt;6.&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 8.5pt; line-height: 140%;"&gt;Confirm that the service status changes to &lt;b&gt;Started&lt;/b&gt; in the services list.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 140%; margin-bottom: 5.0pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-2055923079466125178?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/2055923079466125178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=2055923079466125178' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/2055923079466125178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/2055923079466125178'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/04/how-to-build-and-host-remote-object-in.html' title='How To: Build and Host a Remote Object in a Windows Service'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-798139675475245035</id><published>2010-04-19T22:05:00.001Z</published><updated>2010-04-19T22:06:46.593Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Oriented Programming (OOP)'/><title type='text'>Object Oriented Programming: Polymorphism</title><content type='html'>&lt;h3&gt;What is Polymorphism? &lt;/h3&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Polymorphism&lt;/b&gt; allows objects to be represented in multiple forms. Even&lt;br /&gt;though classes are &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; or &lt;i style="mso-bidi-font-style: normal;"&gt;inherited&lt;/i&gt; from the same parent class, each&lt;br /&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; class can have its own behaviour. &lt;b style="mso-bidi-font-weight: normal;"&gt;Polymorphism&lt;/b&gt; is a concept linked&lt;br /&gt;to &lt;b style="mso-bidi-font-weight: normal;"&gt;inheritance&lt;/b&gt; and assures that &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; classes have the same functions&lt;br /&gt;even though each &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; class performs different operations.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Polymorphism&lt;/b&gt; is important not only to the &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; classes, but to the base classes as well. Designers of a base class can anticipate the aspects of their base class that are likely to change for a &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; type. For example, a base class for cars might contain behaviour that is subject to change when the car in question is a minivan or a convertible. A base class can mark those class members as &lt;i style="mso-bidi-font-style: normal;"&gt;virtual&lt;/i&gt;, allowing &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; classes representing convertibles and minivans to &lt;i style="mso-bidi-font-style: normal;"&gt;override&lt;/i&gt; that behaviour.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-798139675475245035?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/798139675475245035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=798139675475245035' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/798139675475245035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/798139675475245035'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/04/polymorphism.html' title='Object Oriented Programming: Polymorphism'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-2795724659070622500</id><published>2010-04-19T22:03:00.000Z</published><updated>2010-04-19T22:03:40.930Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Oriented Programming (OOP)'/><title type='text'>Object Oriented Programming: Inheritance</title><content type='html'>&lt;span class="Apple-style-span" style="color: blue; font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: 18px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: small;"&gt;&lt;b&gt;&lt;h3&gt;What is Inheritance?&lt;/h3&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; In OOP, a parent or base class can &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;inherit&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; its behaviour and state to children or &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;derived&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; classes. &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;Inheritance&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; gives you the ability to build new classes based on an existing class. You can then extend a base class by enabling a new class to &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;inherit&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; its characteristics and behaviour.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;Inheritance&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp;allows one class (the&amp;nbsp;sub-class) to be based upon another (the&amp;nbsp;super-class) and &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;inherit&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; all of its functionality automatically. Additional code may then be added to create a more specialised version of the class (&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;Polymorphism&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;For example a base class of vehicles can have sub-classes for cars or motorcycles. Each would still have all of the behaviour of a vehicle but can add specialised methods and properties. This mechanism of redefining the functionality of the base class in the derived class is called “&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;overriding&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;”&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Some programming languages allow for&amp;nbsp;multiple &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;inheritances&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp;where a sub-class is &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;derived&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; from two or more super-classes. C# does not permit this but does allow a class to implement multiple&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;interfaces&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;. An interface defines a contract for the methods and properties of classes that implement it. However, it does not include any actual functionality.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-2795724659070622500?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/2795724659070622500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=2795724659070622500' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/2795724659070622500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/2795724659070622500'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/04/object-oriented-programming-inheritance.html' title='Object Oriented Programming: Inheritance'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-7124681856422199455</id><published>2010-03-27T17:00:00.002Z</published><updated>2010-04-19T21:59:25.487Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Oriented Programming (OOP)'/><title type='text'>Object Oriented Programming: Abstraction.</title><content type='html'>&lt;div style="margin-bottom: .0001pt; margin: 0cm;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: small;"&gt;&lt;h3&gt;&lt;a href="" name="_Toc258924116"&gt;What is Abstraction?&lt;/a&gt;&lt;/h3&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Abstraction&lt;/b&gt; is the process of hiding all but the relevant data about an object in order to reduce complexity and increase efficiency.&amp;nbsp;The result of removing the elements not directly related to solving the problem at hand is that you're able to focus specifically on the problem and not be mired in the details of how your class works. The class's interface is the implementation of the &lt;b style="mso-bidi-font-weight: normal;"&gt;abstraction&lt;/b&gt;.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;This understanding will help you create an interface that gives the user access to the information and methods that they need, yet insulates them from the internal workings of the class. You need to design an interface not only to solve today's problems but also to abstract sufficiently from the class's internals so that private class members can undergo unlimited changes without affecting existing code. The user can then declare/modify attributes, variables and methods within the class without having to worry about clashes with other objects. This basically means that data within a class is only available /modifiable via the class methods.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Always consider the programmer who is going to &lt;i style="mso-bidi-font-style: normal;"&gt;instantiate&lt;/i&gt; or &lt;i style="mso-bidi-font-style: normal;"&gt;derive&lt;/i&gt; from the classes that you create when designing your classes. Designing the abstraction of your classes in a way most useful to the programmers using them is paramount in developing reusable software.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href="" name="_Toc258924117"&gt;Access Modifiers&lt;/a&gt;&lt;/h3&gt;&lt;div class="MsoNormal"&gt;Abstraction in C# can be achieved by using &lt;i style="mso-bidi-font-style: normal;"&gt;Access modifiers &lt;/i&gt;when designing your class. &lt;i style="mso-bidi-font-style: normal;"&gt;Access modifiers&lt;/i&gt; are keywords used to specify the declared accessibility of a member (such as a variable, constant or method) or type (which could be a data type such as an integer or a string).&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;In C# there are 5 different types of Access Modifiers.&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: 5.4pt; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 160; width: 90.78%;"&gt;&lt;tbody&gt;&lt;tr style="height: 12.7pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;"&gt;   &lt;td style="background: silver; border: inset gray 1.0pt; height: 12.7pt; mso-border-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 139.1pt;" valign="top" width="185"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;b&gt;&lt;span lang="EN-US" style="color: white; font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Modifier&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: none; border-right: inset gray 1.0pt; border-top: inset 1.0pt; height: 12.7pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; mso-border-top-alt: inset windowtext .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;b&gt;&lt;span lang="EN-US" style="color: white; font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Description&lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="height: 27.6pt; mso-yfti-irow: 1;"&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: inset 1.0pt; border-right: inset gray 1.0pt; border-top: none; height: 27.6pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-left-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 139.1pt;" valign="top" width="185"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Public&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: none; border-right: inset gray 1.0pt; border-top: none; height: 27.6pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;There are no restrictions on accessing   public members.&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="height: 42.9pt; mso-yfti-irow: 2;"&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: inset 1.0pt; border-right: inset gray 1.0pt; border-top: none; height: 42.9pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-left-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 139.1pt;" valign="top" width="185"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Private&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: none; border-right: inset gray 1.0pt; border-top: none; height: 42.9pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Access is limited to within the class   definition. This is the default access modifier type if none is formally   specified&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="height: 33.0pt; mso-yfti-irow: 3;"&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: inset 1.0pt; border-right: inset gray 1.0pt; border-top: none; height: 33.0pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-left-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 139.1pt;" valign="top" width="185"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Protected&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: none; border-right: inset gray 1.0pt; border-top: none; height: 33.0pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Access is limited to within the class   definition and any class that inherits from the class&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="height: 33.0pt; mso-yfti-irow: 4;"&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: inset 1.0pt; border-right: inset gray 1.0pt; border-top: none; height: 33.0pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-left-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 139.1pt;" valign="top" width="185"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Internal&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: none; border-right: inset gray 1.0pt; border-top: none; height: 33.0pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Access is limited exclusively to classes   defined within the current project assembly&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="height: 54.6pt; mso-yfti-irow: 5; mso-yfti-lastrow: yes;"&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: inset 1.0pt; border-right: inset gray 1.0pt; border-top: none; height: 54.6pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-left-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 139.1pt;" valign="top" width="185"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;protected internal&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: silver; border-bottom: inset 1.0pt; border-left: none; border-right: inset gray 1.0pt; border-top: none; height: 54.6pt; mso-border-bottom-alt: inset windowtext .75pt; mso-border-right-alt: inset gray .75pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;   &lt;div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"&gt;&lt;span lang="EN-US" style="font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;Access is limited to the current assembly   and types derived from the containing class. All members in current project   and all members in derived class can access the variables.&lt;/span&gt;&lt;span lang="EN-US" style="mso-ansi-language: EN-US; mso-fareast-language: EN-US;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;public:&lt;/b&gt; Any code that uses a class can only access the methods that have been marked with the keyword public. The public declaration gives the interface to the external world and defines what the class does, as viewed by the rest of the world. &lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;private: &lt;/b&gt;This means that it is not visible outside the class, Marking a field or method as private effectively ensures that that field or method will be part of the internal working of the class, as opposed to the external interface. The advantage of this is that if you decide to change the internal you can just make the change without breaking the code outside the class definition - nothing from outside of this class can access this field.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;protected:&lt;/b&gt; The protected keyword makes a member accessible within its class and by derived class instances.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;internal: &lt;/b&gt;The internal keyword makes a member accessible&lt;span style="color: black; font-family: &amp;quot;Segoe UI&amp;quot;; font-size: 10.0pt;"&gt; &lt;/span&gt;by any code in the same assembly, but not from another assembly. A common use of internal access is in component-based development because it enables a group of components to cooperate in a private manner without being exposed to the rest of an application’s code&lt;span style="color: black; font-family: &amp;quot;Segoe UI&amp;quot;; font-size: 10.0pt;"&gt;.&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;protectedinternal&lt;/b&gt;: The protectedinternal accessibility means protected OR internal, not protected AND internal. In other words, a protectedinternal member is accessible from any class in the same assembly, including any derived class in another assembly.&lt;/div&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB;"&gt;&lt;br clear="all" style="mso-special-character: line-break; page-break-before: always;" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-7124681856422199455?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/7124681856422199455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=7124681856422199455' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/7124681856422199455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/7124681856422199455'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/03/object-oriented-programming-abstraction.html' title='Object Oriented Programming: Abstraction.'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-8619628133746139151</id><published>2010-03-11T00:49:00.002Z</published><updated>2010-04-19T21:57:28.816Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Oriented Programming (OOP)'/><title type='text'>Object Oriented Programming: Encapsulation</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 15px; font-weight: bold;"&gt;What is Encapsulation (or information hiding)?&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Encapsulation&lt;/b&gt; (as in enclosed in a capsule), sometimes called&amp;nbsp;information hiding,&amp;nbsp;is the ability to hide the internals of an object from its users and to provide an interface to only those members that you want the client to be able to directly manipulate.&amp;nbsp;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Encapsulation&lt;/b&gt; provides the boundary between a class's external interface, its public members visible to the class's users and its internal implementation details. The result is that each object exposes to any class a certain interface&amp;nbsp;(those members accessible to that class). The interface must &lt;b style="mso-bidi-font-weight: normal;"&gt;encapsulate&lt;/b&gt; the implementation - hide it from other parts of a program and protect an implementation from unintended actions and inadvertent access, exposing only the members of a class that will remain static, or unchanged, while hiding the more dynamic and volatile class internals.&amp;nbsp;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;The advantage of encapsulation means once the interface to the object is designed you don't have to be concerned as others work on it, fix bugs and find better ways to implement it. You'll get the benefit of these improvements but none of them will affect what you do in your program. Because you're depending solely on the interface nothing they do can break your code. Your program is insulated from the object's implementation. The implementation is insulated from anything that you or other users of the object might do.&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-8619628133746139151?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/8619628133746139151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=8619628133746139151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/8619628133746139151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/8619628133746139151'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/03/object-oriented-programming.html' title='Object Oriented Programming: Encapsulation'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-967158438501745878</id><published>2010-03-03T00:00:00.005Z</published><updated>2010-04-19T21:55:00.745Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Oriented Programming (OOP)'/><title type='text'>Object Oriented Programming: The Class</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; font-weight: bold;"&gt;What is a Class?&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;The difference between a Class and an object is a source of a lot of confusion for programmers new to the terminology of object-oriented programming. The basic building blocks of object-oriented programming are the &lt;b style="mso-bidi-font-weight: normal;"&gt;class&lt;/b&gt; and the&amp;nbsp;&lt;b style="mso-bidi-font-weight: normal;"&gt;object&lt;/b&gt;.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;In object-oriented programming, a Class is a construct which is defined by a programmer in code and is used as a template (or blueprint) to create objects of that class. This template describes the state and behaviour that the objects of the Class all share.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;A &lt;b style="mso-bidi-font-weight: normal;"&gt;class&lt;/b&gt; &lt;b style="mso-bidi-font-weight: normal;"&gt;encapsulates&lt;/b&gt; the state and behaviour of the concept it represents.&lt;/div&gt;&lt;div class="ListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol;"&gt;·&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;It&amp;nbsp;&lt;b style="mso-bidi-font-weight: normal;"&gt;encapsulates&lt;/b&gt;&amp;nbsp;state through data placeholders called attributes (or member variables);&lt;/div&gt;&lt;div class="ListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol;"&gt;·&lt;span style="font: normal normal normal 7pt/normal 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;It&amp;nbsp;&lt;b style="mso-bidi-font-weight: normal;"&gt;encapsulates&lt;/b&gt;&amp;nbsp;behaviour through reusable sections of code called methods.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;A class is used to create new instances (Objects) by &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;instantiating&lt;/i&gt;&lt;/b&gt;&amp;nbsp;the class. An Object doesn't exist until an instance of the class has been created. The class is just a definition.&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-967158438501745878?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/967158438501745878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=967158438501745878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/967158438501745878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/967158438501745878'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/03/class-in-oop.html' title='Object Oriented Programming: The Class'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-5307123459670497677</id><published>2010-02-23T01:16:00.015Z</published><updated>2010-04-19T21:51:01.326Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Oriented Programming (OOP)'/><title type='text'>Object Oriented Programming: The Object</title><content type='html'>&lt;h2&gt;&lt;a href="" name="_Toc258924109"&gt;The Object&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;&lt;a href="" name="_Toc258924110"&gt;What is an Object?&lt;/a&gt;&lt;/h3&gt;&lt;div class="MsoNormal"&gt;To define objects we have to define two things: &lt;/div&gt;&lt;div class="ListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;State (Attributes, properties) &lt;/div&gt;&lt;div class="ListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Behaviour (Methods)&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Real-world objects share two characteristics: They all have state and behaviour. Dogs have state (name, colour, hunger) and behaviour (barking, fetching, wagging tail).&lt;br /&gt;&lt;br /&gt;Real-world objects vary in complexity; a desktop lamp may have only two possible states (on and off) and two possible behaviours (turn on, turn off), but a desktop radio might have additional states (on, off, volume, station) and behaviour (turn on, turn off, increase volume, decrease volume, seek, scan, and tune). You may also notice that some objects, in turn, will also contain other objects. These real-world observations all translate into the world of object-oriented programming.&lt;br /&gt;&lt;br /&gt;The term “Object,” that gives OOP its name, refers to a conceptual object that represents an item in our program or system. This could be anything from a&amp;nbsp;button on a web page&amp;nbsp;or a computer file, to a real world object such as a car.&lt;br /&gt;&lt;br /&gt;Software objects like real-world objects also consist of state and related behaviour.&lt;/div&gt;&lt;div class="ListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;An object stores its state (Attributes)&amp;nbsp;in&amp;nbsp;fields&amp;nbsp;or&amp;nbsp;variables&lt;/div&gt;&lt;div class="ListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;An object exposes its behaviour through&amp;nbsp;methods&amp;nbsp;(functions in some programming languages).&lt;/div&gt;&lt;div class="MsoNormal"&gt;Methods operate on an object's internal state and serve as the primary mechanism for object-to-object communication.&lt;br /&gt;&lt;br /&gt;Hiding the internal state and methods of a class through&amp;nbsp;&lt;b style="mso-bidi-font-weight: normal;"&gt;abstraction&lt;/b&gt; and requiring all interaction to be performed through an object's methods is known as&amp;nbsp;&lt;b style="mso-bidi-font-weight: normal;"&gt;encapsulation&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Bundling code into individual software objects provides a number of benefits, including:&lt;/div&gt;&lt;div class="ListParagraphCxSpFirst" style="mso-list: l1 level1 lfo2; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Modularity:&lt;/b&gt; The source code for an object can be written and maintained independently of the source code for other objects. If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement. This is analogous to fixing mechanical problems in the real world. If a bolt breaks, you replace it, not the entire machine.&lt;/div&gt;&lt;div class="ListParagraphCxSpLast" style="mso-list: l1 level1 lfo2; text-indent: -18.0pt;"&gt;&lt;span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&lt;span style="font: 7.0pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Information-hiding:&lt;/b&gt; By interacting only with an object's methods, the details of its internal implementation remain hidden from the outside world.&lt;br /&gt;Code re-use: If an object already exists (perhaps written by another software developer), you can use that object in your program.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-5307123459670497677?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/5307123459670497677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=5307123459670497677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/5307123459670497677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/5307123459670497677'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/02/object.html' title='Object Oriented Programming: The Object'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-9117989288832516202</id><published>2010-02-17T00:41:00.018Z</published><updated>2010-04-19T21:48:50.267Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Oriented Programming (OOP)'/><title type='text'>Principals of Object Oriented Programming (OOP)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I decided to write this as I remember how hard it was to get my head around the principals of Object Oriented Programming (OOP) when I made the jump from procedural (or sequential) programming in C to using OOP in &amp;nbsp;C#. &lt;br /&gt;I think some programmers underestimate how big a leap this is when someone say from an engineering background who learned to program in a procedural language has difficulty with the principals of OOP. This is mainly because it just isn't how we learned to think about programming and requires having to relearn our approach to solving our programming problems. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;Object oriented programming (OOP)&amp;nbsp;is a programming model that uses the concept of breaking programs or assemblies into a collection of smaller more&amp;nbsp;manageable&amp;nbsp;&lt;b style="mso-bidi-font-weight: normal;"&gt;Objects&lt;/b&gt; or building&amp;nbsp;blocks thus&amp;nbsp;keeping&amp;nbsp;projects simple and promoting improved code reusability and maintainability.&lt;br /&gt;&lt;br /&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;A&amp;nbsp;Class&lt;/b&gt;&amp;nbsp;(classification - class) represents the definition for an &lt;b style="mso-bidi-font-weight: normal;"&gt;object&lt;/b&gt;. A class is the generic definition of what an object is - a template. A term unique to OOP,&amp;nbsp;&lt;i style="mso-bidi-font-style: normal;"&gt;instantiation&lt;/i&gt;,&amp;nbsp;is simply the act of creating an instance of a class. That instance is an &lt;b style="mso-bidi-font-weight: normal;"&gt;object&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;A summary of the principals that define OOP are:&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Encapsulation:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Binding related data and functionality in an object is called data encapsulation and allows the user to hide the information/behaviour of the object from the outside world using&amp;nbsp;abstraction.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Abstraction:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Abstraction is the process of hiding all but the relevant data about an object in order to reduce complexity and increase efficiency.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Inheritance:&lt;/b&gt;&lt;br /&gt;In OOP, a parent or base class can inherit its behaviour and state to children or &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; classes. Inheritance gives you the ability to build new classes based on an existing class. You can then extend a base class by enabling a new class to inherit its characteristics and behaviour.&lt;br style="mso-special-character: line-break;" /&gt; &lt;br style="mso-special-character: line-break;" /&gt; &lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Polymorphism:&lt;/b&gt;&lt;br /&gt;Poly meaning many, and morph meaning forms, literally many forms. Polymorphism allows objects to be represented in multiple forms. Even though classes are &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; or inherited from the same parent class, each &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; class will have its own behaviour. Polymorphism is a concept linked to&amp;nbsp;inheritance&amp;nbsp;and assures that &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; classes have the same functions even though each &lt;i style="mso-bidi-font-style: normal;"&gt;derived&lt;/i&gt; class performs different operations.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div style="display: inline !important;"&gt;&lt;div style="display: inline !important;"&gt;&lt;/div&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-9117989288832516202?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/9117989288832516202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=9117989288832516202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/9117989288832516202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/9117989288832516202'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/02/principals-of-object-oriented.html' title='Principals of Object Oriented Programming (OOP)'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-6602765528072315819</id><published>2010-01-31T17:06:00.002Z</published><updated>2010-01-31T19:42:37.530Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL management studio 2005'/><title type='text'>SQL management studio 2005: Creating a temp pivot table</title><content type='html'>I used the following dynamic SQL to create a temp pivot table in a script to join onto my final result set. I used this method as the names of the columns could change depending on user input.&lt;br /&gt;It involves creating a temp table then adding columns and populating the table using dynamic SQL in &amp;nbsp;a loop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;br /&gt;DECLARE @work_order int&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; --create temp function table  first&lt;/span&gt;&lt;br /&gt;DECLARE @function_table TABLE (primary_key INT IDENTITY(1,1) NOT  NULL,&lt;br /&gt;[Function] varchar(100))&lt;br /&gt;&lt;br /&gt;DECLARE @item_category_counter  INT&lt;br /&gt;DECLARE @loop_counter INT&lt;br /&gt;&lt;br /&gt;INSERT INTO @function_table&lt;br /&gt;SELECT  wo_team_label_desc FROM ref_wo_team WHERE dept_id = @dept_id AND&lt;br /&gt;inactive_ind  = 0 ORDER BY sort_order&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; --Pivot function table&lt;/span&gt;&lt;br /&gt;CREATE TABLE  #PIVOT_FUNCTON_TABLE (primary_key INT IDENTITY(1,1) NOT NULL,&lt;br /&gt;work_order  int)&lt;br /&gt;&lt;br /&gt;SET&amp;nbsp; @loop_counter = ISNULL((SELECT COUNT(*) FROM  @function_table),0)&lt;br /&gt;-&lt;span class="Apple-style-span" style="color: red;"&gt;- Set the @loop_counter to the total number of rows in  the memory table&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SET @item_category_counter = 1&lt;br /&gt;&lt;br /&gt;WHILE  @loop_counter &amp;gt; 0 AND @item_category_counter &amp;lt;=  @loop_counter&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; --Add dynamic column name&lt;/span&gt;&lt;br /&gt;DECLARE @ColumnName  NVARCHAR(100)&lt;br /&gt;SET @ColumnName = (select [Function] FROM @function_table WHERE  primary_key&lt;br /&gt;= @item_category_counter)&lt;br /&gt;DECLARE @query  NVARCHAR(4000)&lt;br /&gt;SET&amp;nbsp; @query = 'ALTER TABLE #PIVOT_FUNCTON_TABLE&lt;br /&gt;ADD [' +  @ColumnName + ']&amp;nbsp; NVARCHAR(100);'&lt;br /&gt;EXECUTE(@query)&lt;br /&gt;&lt;br /&gt;SET  @item_category_counter = @item_category_counter + 1&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;DECLARE  @item_category_counterWO INT&lt;br /&gt;DECLARE @loop_counterWO INT&lt;br /&gt;&lt;br /&gt;SET&amp;nbsp;  @loop_counterWO = ISNULL((SELECT COUNT(*) FROM @WOtable),0)&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; -- Set the  @loop_counter to the total number of rows in the memory table&lt;/span&gt;&lt;br /&gt;SET  @item_category_counterWO = 1&lt;br /&gt;&lt;br /&gt;WHILE @loop_counterWO &amp;gt; 0 AND  @item_category_counterWO &amp;lt;= @loop_counterWO&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;SET @work_order =  (SELECT work_order_id FROM @WOtable WHERE primary_key  =&lt;br /&gt;@item_category_counterWO)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; --Populate table&lt;/span&gt;&lt;br /&gt;DECLARE  @item_category_counter3 INT&lt;br /&gt;DECLARE @loop_counter3 INT&lt;br /&gt;&lt;br /&gt;SET&amp;nbsp;  @loop_counter3 = ISNULL((SELECT COUNT(*) FROM @function_table),0)&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; -- Set the  @loop_counter to the total number of rows in the memory table&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SET  @item_category_counter3 = 1&lt;br /&gt;&lt;br /&gt;DECLARE @UpdateQueryHead  NVARCHAR(4000)&lt;br /&gt;DECLARE @UpdateQueryBody NVARCHAR(4000)&lt;br /&gt;DECLARE  @UpdateQueryFooter NVARCHAR(4000)&lt;br /&gt;SET @UpdateQueryHead = 'INSERT INTO  #PIVOT_FUNCTON_TABLE VALUES (' + (CAST&lt;br /&gt;( @work_order&amp;nbsp; AS NVARCHAR(4000))) +  ''&lt;br /&gt;SET @UpdateQueryBody = ','&lt;br /&gt;SET @UpdateQueryFooter = ')'&lt;br /&gt;&lt;br /&gt;WHILE  @loop_counter3 &amp;gt; 0 AND @item_category_counter3 &amp;lt;=  @loop_counter3&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; --Create @UpdateQueryBody string&lt;/span&gt;&lt;br /&gt;DECLARE  @Value NVARCHAR(100)&lt;br /&gt;SET @Value = Replace(&lt;br /&gt;(SELECT RU.first_name + ' ' +  RU.last_name&lt;br /&gt;FROM wo_team WOT&lt;br /&gt;INNER JOIN ref_wo_team rwt ON&amp;nbsp; WOT.dept_id =  rwt.dept_id AND WOT.wo_team_id&lt;br /&gt;= rwt.wo_team_id&lt;br /&gt;INNER JOIN ref_user RU ON  WOT.dept_id = RU.dept_id AND WOT.user_id = RU.&lt;br /&gt;user_id&lt;br /&gt;WHERE WOT.dept_id =  @dept_id&lt;br /&gt;AND work_order_id = @work_order&lt;br /&gt;AND WOT.user_id &amp;lt;&amp;gt;  ''&lt;br /&gt;AND WOT.user_id &amp;lt;&amp;gt; 'NA'&lt;br /&gt;AND WOT.user_id &amp;lt;&amp;gt; 'N/A'&lt;br /&gt;AND  wo_team_label_desc = (select [Function] FROM @function_table  WHERE&lt;br /&gt;primary_key = @item_category_counter3)),'''','')&lt;br /&gt;&lt;br /&gt;SET  @UpdateQueryBody = @UpdateQueryBody + (CASE WHEN @Value IS NULL THEN&lt;br /&gt;'NULL'  ELSE&amp;nbsp; '''' + @Value + '''' END) + ', '&lt;br /&gt;SET @item_category_counter3 =  @item_category_counter3 + 1&lt;br /&gt;&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;DECLARE @UpdateQuery  NVARCHAR(4000)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt; --Remove trailing comma&lt;/span&gt;&lt;br /&gt;SET @UpdateQueryBody =  SUBSTRING ( @UpdateQueryBody ,1 , (len(&lt;br /&gt;@UpdateQueryBody)-1))&lt;br /&gt;SET  @UpdateQuery = @UpdateQueryHead + @UpdateQueryBody +  @UpdateQueryFooter&lt;br /&gt;&lt;br /&gt;EXECUTE(@UpdateQuery)&lt;br /&gt;&lt;br /&gt;SET  @item_category_counterWO = @item_category_counterWO + 1&lt;br /&gt;END&lt;/span&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-6602765528072315819?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/6602765528072315819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=6602765528072315819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/6602765528072315819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/6602765528072315819'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/01/sql-management-studio-2005-creating.html' title='SQL management studio 2005: Creating a temp pivot table'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-8777780226501235104</id><published>2010-01-31T16:41:00.002Z</published><updated>2010-01-31T16:45:34.977Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005 Reporting Services'/><title type='text'>SQL 2005 Reporting services: Columns merging when exporting to Excel.</title><content type='html'>Came across this problem when I created a report which my users wanted to export to Excel.&lt;br /&gt;&lt;br /&gt;The problem was that when the report was exported, Excel merged some of the columns. This caused problems for my users when they wanted to work with the data in excel (pivoting the data,&amp;nbsp;etc.)&lt;br /&gt;&lt;br /&gt;The problem was caused by the positioning of the labels in my report header. If the labels did not start or end exactly at the same position as my tables, Excel&amp;nbsp;inconveniently merged two columns to cope with it.&lt;br /&gt;&lt;br /&gt;The solution was to (with a bit of trial and error) to line up the labels with the start and end of the table. Another solution is to make your title labels the full width of your report and centre your text. This does not always work when you are working with&amp;nbsp;matrix's&amp;nbsp;as you can not always be sure of the width of your report. In this case line up your label with a column in your table that will always be a fixed width.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-8777780226501235104?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/8777780226501235104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=8777780226501235104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/8777780226501235104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/8777780226501235104'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/01/sql-2005-reporting-services-columns.html' title='SQL 2005 Reporting services: Columns merging when exporting to Excel.'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-146286602509947001</id><published>2010-01-31T15:18:00.007Z</published><updated>2010-01-31T16:48:17.441Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005 Reporting Services'/><title type='text'>SQL 2005 Reporting services: Create alternating colours in a table or matrix (Green bar effect)</title><content type='html'>Alternating colours in a table is fairly easy and can be done by setting the background colour on the row as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #3333ff;"&gt;Iif((RowNumber(Nothing) Mod 2 = 0), "White", "WhiteSmoke")&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Doing the same in a matrix is a bit more complicated. There is probably several methods out there but I find the following one to be the easiest:&lt;br /&gt;&lt;br /&gt;First create a function in the report code as follows&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #3366ff;"&gt;Private bOddRow As Boolean&lt;br /&gt;'*************************************************************************&lt;br /&gt;' -- Display green-bar type color banding in detail rows&lt;br /&gt;' -- Call from BackGroundColor property of all detail row textboxes&lt;br /&gt;' -- Set Toggle True for first item, False for others.&lt;br /&gt;'*************************************************************************&lt;br /&gt;Function AlternateColor(ByVal OddColor As String, _&lt;br /&gt;ByVal EvenColor As String, ByVal Toggle As Boolean) As String&lt;br /&gt;If Toggle Then bOddRow = Not bOddRow&lt;br /&gt;If bOddRow Then&lt;br /&gt;Return OddColor&lt;br /&gt;Else&lt;br /&gt;Return EvenColor&lt;br /&gt;End If&lt;br /&gt;End Function&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next set the row colours on the matrix by setting the background colour as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #3366ff;"&gt;Code.AlternateColor( "White","WhiteSmoke", True)&lt;/span&gt;&lt;/span&gt; ----&amp;gt; Set this on the matrix row group&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #3366ff;"&gt;Code.AlternateColor("White","WhiteSmoke", False&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #3366ff;"&gt;)&lt;/span&gt; -----&amp;gt; Set this on the cell&lt;br /&gt;&lt;br /&gt;A combination of effects can be achieved using this method such as a checker board effect by changing the True/False values and the colours.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-146286602509947001?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/146286602509947001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=146286602509947001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/146286602509947001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/146286602509947001'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/01/sql-reporting-services-create.html' title='SQL 2005 Reporting services: Create alternating colours in a table or matrix (Green bar effect)'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-2460375727057478069</id><published>2010-01-14T01:15:00.004Z</published><updated>2010-01-14T01:58:12.602Z</updated><title type='text'>Back again</title><content type='html'>Wooooo, I havn't used this in a while. I oridginaly started this blog to record what I was doing in college and to record my ramblings. As you can see I sort of got side tracked lol. &lt;br /&gt;So I have decided to try again. Its funny all the stuff I was reading back then. At that time I was working in the chemical industry and studying a BSC in Electronic Engineering and Computer Systems to try and enhance my career in the chemical industry. I am now working as a software engineer in the financial sector. Funny how things work out. Anyway I love what Im doing now so it all worked out well. &lt;br /&gt;I'm planning to use this blog to record problems and the solutions I've come up with in software design so I can use them again. I would appreciate any comments.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-2460375727057478069?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/2460375727057478069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=2460375727057478069' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/2460375727057478069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/2460375727057478069'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2010/01/back-again.html' title='Back again'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-111325532958818568</id><published>2005-04-11T21:13:00.004Z</published><updated>2010-01-31T16:19:14.889Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bit-torrent'/><title type='text'>My Torrent Guide</title><content type='html'>Just thought I would put together a Bit-torrent guide. Don't be expecting any rocket science here. This is just going to be the basic's.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;First of all I am stating that to copy films / files/ programs/ software without the owners permission is illegal!! &lt;span style="color: red;"&gt;Do not do it&lt;/span&gt;. Any information that follows is purely educational.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;With the advent of broadband technologies such as DSL and cable modems, the everyday user  suddenly has a big chunk of bandwidth, not only for download, but also upload. Sharing files directly from your computer (without first sending them to a server) is now a reality. This is where p2p comes in. The acronym p2p stands for peer-to-peer, which basically means client to client. That is, you download files from people like you instead of from big servers, and in turn they download files from you. You share your files, your friends share their files, and everyone talks directly to each other.&lt;br /&gt;The problem with most P2P networks is that many people just don't like to share. They open up their program, download their files, then close the program before they can help anyone else. It's called leeching. BitTorrent is a P2P file swarming application. This means that as soon as you have downloaded a few chunks of a file it will start uploading it to others, thereby spreading the file better. This makes it easier to get the file from many different people at once, thereby increasing the probably that you'll get a good download speed. This means that the more you upload, the faster you'll download.&lt;br /&gt;&lt;br /&gt;You first need to install a Bit Torrent client to be able to download from BitTorrent. There is a evergrowing list of these.&lt;br /&gt;Next you have to find a Bit Torrent to download. There are lots of sites out there which have links to whatever Torrent you prefer.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Guide to torrent abrievations;&lt;/strong&gt;&lt;br /&gt;I am not an expert and if anyone has a better explanation please help clear up my (mis)understanding,&lt;br /&gt;&lt;span style="color: red;"&gt;CAM&lt;/span&gt;- usually lowest quality, like camcorder in a theater&lt;br /&gt;&lt;span style="color: red;"&gt;TS&lt;/span&gt; - TeleSync visually about as good maybe better than CAM, but has a direct source to the audio, so audio is usually better than CAM&lt;br /&gt;&lt;span style="color: red;"&gt;TC&lt;/span&gt; - TeleCine, much better than CAM and TS, not exactly sure how movie is recorded&lt;br /&gt;&lt;span style="color: red;"&gt;Screener&lt;/span&gt; - usually DVD of new movie that is sent out early to stores or awards organizations or even as promotional material... usually has property of so and so studios or some other marker like station identification or subtitles...&lt;br /&gt;I'm not sure why some people choose to put out DivX or XviD, or VCD vs. SVCD or DVDrip or .iso or .cue or .bin files, probaly down to personal choice, but in the end if you want to put these files onto DVD then you have to convert them again with the appropiate software. So you can see this process takes time and it's just not a walk in the park.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-111325532958818568?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/111325532958818568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=111325532958818568' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111325532958818568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111325532958818568'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/04/my-torrent-guide.html' title='My Torrent Guide'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-111321017690497351</id><published>2005-04-11T09:00:00.001Z</published><updated>2010-01-31T16:18:02.228Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>ZoooooooooM</title><content type='html'>The Madasafish 8Mbps trial has begun! A handful of lucky Madasafish customers were selected to assist in testing the super-fast broadband service which is expected to launch later this year. With an 8Mb connection online gaming, internet radio and the future promise of TV over broadband will be seamless and waiting for content to load will be a thing of the past.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.net4nowt.com/isp_news/news_article.asp?News_ID=2811"&gt;Click here for link to full article.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-111321017690497351?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.net4nowt.com/isp_news/news_article.asp?News_ID=2811' title='ZoooooooooM'/><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/111321017690497351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=111321017690497351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111321017690497351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111321017690497351'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/04/zooooooooom.html' title='ZoooooooooM'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-111320989131061781</id><published>2005-04-11T08:56:00.001Z</published><updated>2010-01-31T16:18:32.568Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Powerline communications come of age</title><content type='html'>Power line communications (PLC) has evolved into Broadband Powerline Communications (BPL) that has two primary applications - broadband access (BPL-Access) and home networking (BPL-Indoor)&lt;br /&gt;A new report has been produced on this technology by Research and Markets Ltd and finds that:&lt;br /&gt;- Every household connected to the power grid can be offered BPL-Access service by the power utility in partnership with the appropriate vendor. More than eighty trials and commercial deployments are currently underway in all the continents.&lt;br /&gt;- BPL has matured to a point where it poses a serious challenge to entrenched technologies in the realms of both broadband access and home networking. Since BPL allows the use of existing infrastructure, it lowers the cost of deployment and allows service providers to offer competitive pricing.&lt;br /&gt;- BPL-Access offers higher data rates than other widely available competing alternatives such as DSL and cable modem. Similarly, BPL-Indoor competes against other home networking technologies, such as Wi-Fi and HomePNA, and offers several competitive advantages.&lt;br /&gt;- A wide range of innovative BPL-enabled devices are being introduced into the market. These devices range from broadband gateways, digital media adapters, personal computers (PCs), and home security monitoring devices. More than 30 device vendors are competing in this market.&lt;br /&gt;- The HomePlug standard is driving the home networking market. Intellon?s ?turbo? solution supports 85 Mb/s, and the upcoming HomePlug AV standard will support 200 Mb/s. Competing proprietary solutions have been proposed by DS2, Spidcom, and Panasonic. All these solutions support Internet Protocol Television (IPTV) and triple-play applications - data, voice and video.&lt;br /&gt;- There is no BPL-Access standard, but several proprietary standards with unique capabilities are being offered. DS2?s 205 Mb/s technology, which enjoys the support of most of the BPL-Access vendors, has been chosen as the baseline technology by the OPERA consortium. The HomePlug standard is being enhanced to support BPL-Access, creating the prospect of multiple competing standards.&lt;br /&gt;- Vendors involved in BPL range from start-ups to established players such as Mitsubishi, Panasonic, Siemens, Sharp, and Samsung. Additional major vendors will get involved in BPL in the coming months.&lt;br /&gt;- Service providers involved in BPL range from telephone operators (BellSouth, France Telecom), cable companies (Comcast, Cox), satellite services providers (Hughes, EchoStar), and fixed wireless access providers.&lt;br /&gt;- Those deploying BPL-Indoor solutions include schools, hotels, and multi-dwelling units (MDUs) and multi-tenant units (MTUs). In addition, there have been several of deployments in residential neighborhoods.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-111320989131061781?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.net4nowt.com/isp_news/news_article.asp?News_ID=2821' title='Powerline communications come of age'/><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/111320989131061781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=111320989131061781' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111320989131061781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111320989131061781'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/04/powerline-communications-come-of-age.html' title='Powerline communications come of age'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-111228819807814965</id><published>2005-03-31T16:43:00.001Z</published><updated>2010-01-31T16:17:13.747Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Important Emerging Trends</title><content type='html'>One of the most important emerging trends at the minute seems to be Voice over IP and IP Telephony. We discussed in class the various advantages this service could provide if fully realised. So it was not surprising when I found this web page on the subject. I have summerised as follows. &lt;em&gt;Please read.&lt;/em&gt;&lt;br /&gt;Voice over IP (VoIP), the convergence of voice over packet-switched IP data networks, and IP Telephony are amongst the most important emerging trends in telecommunications. The business case for implementing VoIP or IPT will inevitably include such business benefits as increased functionality, ACD, CTI and extension mobility whilst cost savings may be found in reduced on-net call costs and lower costs associated with moves, adds and changes. However, once inherent start-up costs are considered, it can be challenging to build a business case based entirely on cost especially for companies currently with a private internal network or having an install base that is not fully depreciated.&lt;br /&gt;Implementing VoIP requires attention to many factors including: available bandwidth, Qos/Cos policies, manageability, scalability, functionality requirements, availability (including survivable remote solutions for branch office networks), performance and security. Integration is another key consideration as, inevitably, large enterprise telephony environments often feature heterogeneous, multi-vendor networks with disparate devices deployed for the distinctive needs of their large and small sites.&lt;br /&gt;Business deployment can be hindered by the lower quality of voice over IP.&lt;br /&gt;Voice quality is a subjective topic and the definition of ‘&lt;em&gt;good&lt;/em&gt;’ voice quality varies greatly with business needs and user expectations. Whilst lower delay, packet loss and jitter values produce the best voice quality the trade off may come in the form of increased costs associated with network infrastructure upgrades. There is also a trade off between real world limits and acceptable voice quality. Indeed some limits lie beyond easy control (such as the inherent fixed delay between geographically remote sites, for example between the UK and India).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.net4nowt.com/isp_news/news_article.asp?News_ID=2767"&gt;Here is a link to the full article&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-111228819807814965?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.net4nowt.com/isp_news/news_article.asp?News_ID=2767' title='Important Emerging Trends'/><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/111228819807814965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=111228819807814965' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111228819807814965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111228819807814965'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/03/important-emerging-trends.html' title='Important Emerging Trends'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-111162309047180997</id><published>2005-03-24T00:03:00.001Z</published><updated>2010-01-31T16:20:10.473Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Download sites'/><title type='text'>My Top 10 list of free downloads sites.</title><content type='html'>Everyone likes to get something for nothing. So here's my top ten list of free download sites. You will find something that you like- completely free!!!&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://www.download.com/"&gt;www.download.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. &lt;a href="http://www.fileplanet.com/"&gt;www.fileplanet.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;a href="http://www.majorgeeks.com/"&gt;www.majorgeeks.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;a href="http://www.addictive247.co.uk/"&gt;www.addictive247.co.uk&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. &lt;a href="http://www.freeserifsoftware.com/"&gt;www.freeserifsoftware.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6. &lt;a href="http://www.freeukstuff.com/"&gt;www.freeukstuff.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7. &lt;a href="http://www.zdnet.com/"&gt;www.zdnet.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8. &lt;a href="http://www.freewareandstuff.com/"&gt;www.freewareandstuff.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;9. &lt;a href="http://www.tucows.com/"&gt;www.tucows.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;10. &lt;a href="http://www.fontvillage.com/"&gt;www.fontvillage.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-111162309047180997?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/111162309047180997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=111162309047180997' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111162309047180997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111162309047180997'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/03/my-top-10-list-of-free-downloads-sites.html' title='My Top 10 list of free downloads sites.'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-111020845673144696</id><published>2005-03-07T14:47:00.000Z</published><updated>2005-03-24T00:16:11.443Z</updated><title type='text'>Course round-up</title><content type='html'>So far the course is interesting and I'm learning a lot from it. For example, have a look at my Online C.V. and let me know what you think &lt;em&gt;(click on the link)&lt;/em&gt;. I know the web page is very basic, but it is my very first attempt at web design, something I never thought of ever doing. I plan to add to it as I learn more. So you never know, it could could all "singing and dancing" after a while. I am learning about the different protocols used in networking and their encoding. Also I have learned a bit about MPEG encoding, something I want to go into a little deeper. WHY IS THERE SO MANY CODEC's?&lt;br /&gt;Our next lecture touches on peer to peer networking &lt;em&gt;(file sharing)&lt;/em&gt; As I am interested in BiT-Torrent, &lt;em&gt;(A form of file sharing, used mainly in sharing movies. Also see my links).&lt;/em&gt; this should be interesting.&lt;br /&gt;Also, part of the lectures are videos on various topics on networking and the internet. These form a very important part of the course and I feel link the course to the "REAL WORLD". One of the video's was about "911", the World Trade Center disaster and how it affected the public telephone network. One of the buildings destroyed beside the World Trade Center contained one of the biggest public telephone switching nodes in America and all traffic had to be routed away from it. As was shown in the video, cables were even temporaly put through the office window of one building and into the window of another building across the street. It was truely was a feat of engineering. It also showed, how in times of crisis how much traffic increases on the public telephone network, with everyone desparate for information and how this was dealt with. Many people also started their own web sites, to list people that survived. It makes you think how much we depend on information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-111020845673144696?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/111020845673144696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=111020845673144696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111020845673144696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111020845673144696'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/03/course-round-up.html' title='Course round-up'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-111013124246938623</id><published>2005-03-06T17:43:00.003Z</published><updated>2010-01-31T16:15:49.490Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Good Bye Dial-up!!!</title><content type='html'>&lt;a href="http://net4nowt.c.topica.com/maadewDabeB73b29JHoc/"&gt;100% ADSL coverage in Northern Ireland&lt;/a&gt;&lt;br /&gt;Northern Ireland became the first UK region, outside of London, to have every one of its exchanges enabled for broadband. The announcement was made by BT Northern Ireland in association with the Department of Enterprise, Trade and Investment (DETI) and the Building Sustainable Prosperity programme.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-111013124246938623?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://net4nowt.c.topica.com/maadewDabeB73b29JHoc' title='Good Bye Dial-up!!!'/><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/111013124246938623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=111013124246938623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111013124246938623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/111013124246938623'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/03/good-bye-dial-up.html' title='Good Bye Dial-up!!!'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-110920641644031550</id><published>2005-02-24T00:38:00.000Z</published><updated>2005-02-24T00:53:36.440Z</updated><title type='text'>Research</title><content type='html'>I've been reading some of the other blogs of the people in my class and I'm very impressed. Our class comprises of computer science students and electronic and computer system engineer's. Some of these guys are naturals at this sort of thing.&lt;br /&gt;So I've been thinking on what sort of content to put on my blog. I think I'll give a report on my lessons so far, with a few of my rants and raves just for fun. Also, as I have stated on my profile, I am interested in Bit Torrent, so I will also give a report on what I know of Bit torrents and what I find out in the future. So keep tuned folks.....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-110920641644031550?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/110920641644031550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=110920641644031550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/110920641644031550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/110920641644031550'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/02/research.html' title='Research'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-110902878750919235</id><published>2005-02-21T23:28:00.000Z</published><updated>2005-02-21T23:33:07.510Z</updated><title type='text'>Working Life</title><content type='html'>Just thought I'd rant again.....IT IS REALLY HARD TRYING TO STUDY PART-TIME. Especially when you work shifts, have two children and a nagging wife (hope she doesn't see this!!)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-110902878750919235?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/110902878750919235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=110902878750919235' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/110902878750919235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/110902878750919235'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/02/working-life.html' title='Working Life'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10551639.post-110899943686088318</id><published>2005-02-21T15:15:00.001Z</published><updated>2010-01-31T19:28:12.212Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>Cool gadgets...</title><content type='html'>Just thought I'd share this cool gadget with you. It's a USB memory stick in a Swiss Army knife. Please click on the link.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://computer.howstuffworks.com/framed.htm?parent=usb.htm&amp;amp;url=http://www.usb.org"&gt;LINK&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It's really quite a neat gadget.&lt;br /&gt;&lt;br /&gt;Being a computer nerd just got dangerous!!!....LOL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10551639-110899943686088318?l=jamesy47.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jamesy47.blogspot.com/feeds/110899943686088318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10551639&amp;postID=110899943686088318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/110899943686088318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10551639/posts/default/110899943686088318'/><link rel='alternate' type='text/html' href='http://jamesy47.blogspot.com/2005/02/cool-gadgets.html' title='Cool gadgets...'/><author><name>Jamesy</name><uri>http://www.blogger.com/profile/16745663551139917142</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
