<?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:blogger='http://schemas.google.com/blogger/2008' 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-6025082758036375980</id><updated>2024-09-26T15:49:16.658-07:00</updated><category term="SQL query"/><category term="SQL Server"/><category term="SSIS"/><category term="c#"/><category term="table"/><category term="vb.net"/><category term="WCF Service"/><category term="data"/><category term="dynamic"/><category term="dynamic query"/><category term="example"/><category term="rows"/><category term=".NET"/><category term="4.0"/><category term="ADO"/><category term="ADO.NET"/><category term="ASP.NET"/><category term="AppFabric"/><category term="BaseStream"/><category term="Begin"/><category term="Cache"/><category term="CacheDependency"/><category term="Caching"/><category term="Catch"/><category term="Channel Factory"/><category term="Close"/><category term="Code Contract"/><category term="Disposing"/><category term="Dynamic Primitive"/><category term="Eager"/><category term="Eager Loading"/><category term="Entity Framework"/><category term="Error"/><category term="Error Handling"/><category term="Exception"/><category term="Explicit"/><category term="Explicit Loading"/><category term="FTP server"/><category term="Features"/><category term="File handling"/><category term="FileAccess"/><category term="FileSteam"/><category term="HTML5"/><category term="Handling error"/><category term="IDisposable"/><category term="Invoke"/><category term="Kaazing"/><category term="Lazy"/><category term="Lazy Loading"/><category term="LockForRead"/><category term="Looping"/><category term="MongoDB"/><category term="NoSQL"/><category term="OOPs  MS Sql Server"/><category term="Proxy"/><category term="Proxy Invoker"/><category term="RDBM"/><category term="ReadWrite"/><category term="Response"/><category term="SSIS FTP task"/><category term="SSIS package"/><category term="SSIS task"/><category term="SUBSTRING"/><category term="Send"/><category term="SendMail"/><category term="StreamReader"/><category term="Subject"/><category term="System"/><category term="SystemException"/><category term="Task Factory"/><category term="Thread"/><category term="Throw"/><category term="VariableDispenser"/><category term="Websocket"/><category term="accept"/><category term="c#4.0"/><category term="code"/><category term="columns"/><category term="comma"/><category term="complex"/><category term="connect"/><category term="connetion"/><category term="database"/><category term="dependency"/><category term="email"/><category term="embed"/><category term="graph"/><category term="handling"/><category term="image"/><category term="invoking"/><category term="mailBody"/><category term="models"/><category term="object"/><category term="object models"/><category term="oledb"/><category term="package"/><category term="relational"/><category term="scheduling"/><category term="script task"/><category term="separated"/><category term="service"/><category term="sort"/><category term="sorting"/><category term="streamwriter"/><category term="using"/><category term="while loop"/><title type='text'>Interview</title><subtitle type='html'>This blog contains information and articles written by experts on .net technologies like vb.net, c#, wcf, asp.net, sql server, wpf, silverlight, SOA and UI</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8886292677618129397</id><published>2013-11-22T04:38:00.002-08:00</published><updated>2013-11-22T04:38:58.974-08:00</updated><title type='text'>Web API Routing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The diagram below tries do describe the decision process behind selecting the method of the controller that will get executed. I&#39;ve added a little extra documentation through the annotations on the diagram.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif8JtnqD4-lsgu1d2qk24DMEjLdm81OkFk5vrplMuAykwxBNGN8rprN-u9iTnwO0udgZ9KYglEv6UCn_HPjzJFND_A79PHX5THKpTd_4kfpXf_47Y1sq1PYUUTZZqCU4kOiNDcpLOrL5cd/s1600/webapiroutemain.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif8JtnqD4-lsgu1d2qk24DMEjLdm81OkFk5vrplMuAykwxBNGN8rprN-u9iTnwO0udgZ9KYglEv6UCn_HPjzJFND_A79PHX5THKpTd_4kfpXf_47Y1sq1PYUUTZZqCU4kOiNDcpLOrL5cd/s1600/webapiroutemain.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
1 Action Based&lt;br /&gt;
If the route defines the action parameter then the method selection will be based on the value of that parameter. The matching will be based on the method name or the method alias (A method in the controller may be aliased using the ActionName attribute).&lt;br /&gt;
All the matching methods are then filtered by verb. The filtering is done by attributes applied to the method (such as HttpGet). Only the methods that match the verb of the incoming request will be returned. Methods with no attributes will also be considered valid as they don’t have any attributes to allow filtration.&lt;br /&gt;
&lt;br /&gt;
2 Verb Based&lt;br /&gt;
When the method selection is verb based we need to get the Http verb used in the request. The controller methods are then filtered in two ways:&lt;br /&gt;
&lt;br /&gt;
Get all the methods annotated with http verb attributes matching the http method in the request (attributes such as HttpGet or HttpPost);&lt;br /&gt;
Get all the methods that have the prefix matching the http method in the request (PostBooks matches the Post verb);&lt;br /&gt;
3 Check Results Found&lt;br /&gt;
All the candidate methods returned by either the verb based or action based approach are then analyzed. If no candidates where found an exception is thrown. If multiple methods were found it’s necessary to analyze it’s parameters to find out the best possible fit.&lt;br /&gt;
&lt;br /&gt;
4 Find Route by Parameters&lt;br /&gt;
The parameters from the route and the parameters from the query string are compared to the method&#39;s parameters. If no parameters are found in the query string or in the route, all methods without parameters will be selected. If multiple methods match the parameters found, the ones that take the most parameters will win. Here is a diagram that details this specific part of the process:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii0QynS4CrH4vmazt6dZD35f1KjqKZ7GMq90irvh2TBP5vZm6vsrAIF7mC171aKiGkDPAGArsnMwBP9ASd4SaVu4jF9BaIAAn4kSWzlvVzGs9vQ-SbvUP0bZhlSMwWsKndEFebq-I6jEfe/s1600/webapiroutedetail.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii0QynS4CrH4vmazt6dZD35f1KjqKZ7GMq90irvh2TBP5vZm6vsrAIF7mC171aKiGkDPAGArsnMwBP9ASd4SaVu4jF9BaIAAn4kSWzlvVzGs9vQ-SbvUP0bZhlSMwWsKndEFebq-I6jEfe/s1600/webapiroutedetail.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
5 Selection Filters&lt;br /&gt;
The last filters executed on the candidate methods will make sure that all methods marked with the NonAction attribute will be excluded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I hope these diagrams were clear enough to help understand better the process of selecting the controller method that gets executed for a request.&lt;br /&gt;
&lt;br /&gt;
Orginal post : http://perezgb.com/2012/03/08/web-api-routing-in-depth&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8886292677618129397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2013/11/web-api-routing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8886292677618129397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8886292677618129397'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2013/11/web-api-routing.html' title='Web API Routing'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif8JtnqD4-lsgu1d2qk24DMEjLdm81OkFk5vrplMuAykwxBNGN8rprN-u9iTnwO0udgZ9KYglEv6UCn_HPjzJFND_A79PHX5THKpTd_4kfpXf_47Y1sq1PYUUTZZqCU4kOiNDcpLOrL5cd/s72-c/webapiroutemain.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-834058510743129812</id><published>2012-01-20T04:36:00.000-08:00</published><updated>2012-01-20T04:36:12.326-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IDisposable"/><title type='text'>Finalize, Dispose and Unmanaged Resources</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;There may be situations where some class has control over resources that are not managed by the runtime such as window handles, database connections, etc. and these resources need to be released as they occupy more memory or affect performance. It can be done explicitly by calling Dispose () to release these objects immediately when they are no more needed. Similarly these objects can also be released implicitly by implementing Finalize() so that they get collected by GC in case someone forgets to call dispose () on these objects. Also since calling Finalize impacts the performance, calls to Finalize can be prevented by invoking the GC.SuppressFinalize method but it should be made sure that it only gets called after Dispose method has completed successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Public class &lt;/span&gt;Base:IDisposable&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Private bool disposed = false;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; //Implement IDisposable.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Public void&lt;/span&gt; Dispose() &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dispose(true);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GC.SuppressFinalize(this);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Protected virtual void&lt;/span&gt; Dispose(bool disposing)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if (!disposed)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (disposing)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Free managed objects.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Free unmanaged objects.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;disposed = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;// using destructor for finalization.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ~Base()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dispose (false);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Public class Derived: Base&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Private bool disposed = false;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Protected override void Dispose(bool disposing)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!disposed)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (disposing)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Release managed resources.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Release unmanaged resources&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;disposed = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; base.Dispose(disposing);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Public class&lt;/span&gt; Test&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; Public static void&lt;/span&gt; Main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Scenario#1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Dispose is not called; Finalize will be called&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Derived a1 = new Derived();&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; //Scenario#2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Dispose is implicitly called in the scope of the using statement.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;using &lt;/span&gt;(Derived a2 = new Derived())&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; . . . . . . . .&lt;br /&gt;
&amp;nbsp; &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; //Scenario #3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Dispose is explicitly called.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Derived a3 = new Derived();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; . . . . . . . .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a3.Dispose();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
In the above example, object a2 and a3 are released by calling Dispose method of the base class as a result of which the overloaded dispose method of the derived class and then the base class dispose method gets called to release the managed and unmanaged resources .It can be also noted that the call to finalize() has been suppressed at the end of dispose. In case of object a1, since dispose() method is not called explicitly, finalize method gets called by GC which in turn calls the dispose method of derived class where the unmanaged resources gets released&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/834058510743129812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/finalize-dispose-and-unmanaged.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/834058510743129812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/834058510743129812'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/finalize-dispose-and-unmanaged.html' title='Finalize, Dispose and Unmanaged Resources'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8251768376586470217</id><published>2012-01-20T03:50:00.000-08:00</published><updated>2012-01-20T03:50:07.415-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Task Factory"/><category scheme="http://www.blogger.com/atom/ns#" term="Thread"/><title type='text'>Task Parallel Library</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Problem: One of the clients was running the multi threaded application on a single core machine, he upgraded his system to Quadra-core and he observed that the application did not improve or started degrading the performance. The development team later found the reason that applications were not utilizing the benefits of cores and it was still running in single core. Solution: .Net 4.0 has brought a new Task Parallel library which uses the benefits of multi core. The Library efficiently utilizes the system resources to give better performance. Internally it uses Threadpool with improved algorithm with .Net 4.0&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Namespace&lt;/b&gt;: &lt;span style=&quot;color: blue;&quot;&gt;System&lt;/span&gt;.Threading.&lt;br /&gt;
&lt;b&gt;Tasks Class&lt;/b&gt; - Task&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create Task&lt;/b&gt;&lt;br /&gt;
Task t1 = new Task(() =&amp;gt; Add(1,100));&lt;br /&gt;
t1.Start();&lt;br /&gt;
t1.Wait(); //Wait till task t1 is completed and then starts t2 Task&lt;br /&gt;
t2 = new Task(() =&amp;gt; Add(101, 200));&lt;br /&gt;
t2.Start();&lt;br /&gt;
&lt;br /&gt;
//Other way of creating multiple task&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;var &lt;/span&gt;tasks = new Task[2];&lt;br /&gt;
tasks[0] = Task.Factory.StartNew(() =&amp;gt; Add(1, 100));&lt;br /&gt;
tasks[1] = Task.Factory.StartNew(() =&amp;gt; Add(101, 200));&lt;br /&gt;
Task.WaitAll(tasks);&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create Dependency of Task&lt;/b&gt;&lt;br /&gt;
//Add and then display no’s and see output without creating Dependency&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;var &lt;/span&gt;tasks1 = new Task[4];&lt;br /&gt;
tasks1[0] =Task.Factory.StartNew(() =&amp;gt; Add(1, 50));&lt;br /&gt;
tasks1[1] =Task.Factory.StartNew(() =&amp;gt; Add(101, 150));&lt;br /&gt;
tasks1[2] =Task.Factory.StartNew(() =&amp;gt; Display());&lt;br /&gt;
tasks1[3] =Task.Factory.StartNew(() =&amp;gt; Display());&lt;br /&gt;
&lt;br /&gt;
//Add and then display no’s and create dependency for sequential display&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;var &lt;/span&gt;tasks1 = new Task[4];&lt;br /&gt;
tasks1[0] =Task.Factory.StartNew(() =&amp;gt; Add(1, 50));&lt;br /&gt;
tasks1[1] =Task.Factory.StartNew(() =&amp;gt; Add(101, 150));&lt;br /&gt;
// start after completing adding of tasks1&lt;br /&gt;
tasks1[2] =tasks1[0].ContinueWith((t) =&amp;gt; Display());&lt;br /&gt;
// start after completing tasks1[2]&lt;br /&gt;
tasks1[3] =tasks1[2].ContinueWith((t) =&amp;gt; Display());&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Cancel Running Task&lt;/b&gt;&lt;br /&gt;
For Cancelling a task following steps need to be performed:&lt;br /&gt;
&lt;br /&gt;
1. Create Method with input parameter of Cancellation token and check for IsCancellationRequested Property of token to display the message that task is cancelled&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public static&lt;/span&gt; void CancelProcess(CancellationToken ct)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Thread&lt;/span&gt;.Sleep(1000);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if (ct.IsCancellationRequested)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Console&lt;/span&gt;.WriteLine(&quot;Process cancelled&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
2. Create token:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var &lt;/span&gt;source = new CancellationTokenSource();&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var &lt;/span&gt;token = source.Token;&lt;br /&gt;
&lt;br /&gt;
3. Create task and call the CancelProcess method, also pass the token to the method&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var &lt;/span&gt;taskCancel = Task.Factory.StartNew(() =&amp;gt; CancelProcess(token), token);&lt;br /&gt;
&lt;br /&gt;
4. Cancel the token source on User&#39;s request:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; source.Cancel();&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8251768376586470217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/task-parallel-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8251768376586470217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8251768376586470217'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/task-parallel-library.html' title='Task Parallel Library'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8940934505172812696</id><published>2012-01-20T03:38:00.000-08:00</published><updated>2012-01-20T03:38:04.998-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dynamic Primitive"/><title type='text'>The Dynamic Primitive Type in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Runtime type identification made easy! Read on how new ‘dynamic’ type helps.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Let us look at the problems in versions prior to 4.0. A lot of times, we create programs that act on information unaware of its type until at runtime. A type-safe programming language like C# works with runtime-determined information during reflection and has to work a lot with strings which looks clumsy and cause performance problems as shown in the below example.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;class &lt;/span&gt;Program&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public class &lt;/span&gt;MyType&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public string &lt;/span&gt;MyProperty { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;static void &lt;/span&gt;Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var myType = new MyType();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var property = typeof(MyTestType).GetProperty(&quot;MyProperty&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;property.SetValue(myType, &quot;Hello World&quot;, null);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
This is just a simple example which merely sets a property value of a type. Imagine how complex it would be and how clumsy your program would look if you have to Get \ Set ten different property values and then call ten other methods to perform various operations!!! It is no less than a nightmare to code and will have performance problems on top of it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How C# 4.0 helps here:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
C# 4.0 brings in a cool new feature in the form of dynamic keyword which makes programmers life easy while working with runtime-determined information as in reflection. The C# compiler offers you a way to mark an expression’s type as dynamic. You can also put the result of an expression into a variable and you can mark a variable’s type as dynamic. This dynamic expression/variable can then be used to invoke a member such as a field, a property/indexer, a method, delegate, and unary/binary/conversion operators.&lt;br /&gt;
&lt;br /&gt;
When your Code invokes a member using a dynamic expression/variable, the compiler generates special IL code that describes the desired operation. This special code is referred to as the payload.&lt;br /&gt;
&lt;br /&gt;
At runtime, the payload code determines the exact operation to execute based on the actual type of the object now referenced by the dynamic expression/variable. Let’s try this on the same sample shown before and see how it makes life better.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;class &lt;/span&gt;Program&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public class &lt;/span&gt;MyType&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public string&lt;/span&gt; MyProperty { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static void &lt;/span&gt;Main(string[] args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;dynamic &lt;/span&gt;myType = new MyType();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myType.MyProperty = &quot;Hello World&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Isn’t it cool? Any expression can implicitly be cast to dynamic since all expressions result in a type that is derived from Object. Normally, the compiler does not allow you to write code that implicitly casts an expression from Object to another type; you must use explicit cast syntax. However, the compiler does allow you to cast an expression from dynamic to another type using implicit cast syntax:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Object &lt;/span&gt;o1 = 123; //OK:Imp cast&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Int32 &lt;/span&gt;n1 = o1; //Err:No imp cast&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Int32 &lt;/span&gt;n2 = (&lt;span style=&quot;color: blue;&quot;&gt;Int32&lt;/span&gt;)o1; //OK:Exp cast&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;dynamic &lt;/span&gt;d1 = 123; //OK:Imp cast&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Int32 &lt;/span&gt;n3 = d1; //OK:Imp cast&lt;br /&gt;
&lt;br /&gt;
The CLR will validate the cast at runtime to ensure that type safety is maintained. If the object’s type is not compatible with the cast, the CLR will throw an InvalidCastException exception. Sounds interesting? To know more, please refer to the following links: http://msdn.microsoft.com/en-us/magazine/ee336309.aspx http://msdn.microsoft.com/en-us/library/dd264736.aspx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8940934505172812696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/dynamic-primitive-type-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8940934505172812696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8940934505172812696'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/dynamic-primitive-type-in-c.html' title='The Dynamic Primitive Type in C#'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-3926142075784674469</id><published>2012-01-20T03:18:00.000-08:00</published><updated>2012-01-20T03:18:41.616-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AppFabric"/><title type='text'>Windows Server AppFabric Installation and Configuration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Preparing Your Computer for Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Operating System Windows 7, Windows Server 2003 R2 Standard&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Visual Studio 2010 Ultimate&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Team Foundation Server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;MS SQL Server 2008 R2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Internet Information Services (IIS) 7.5 with Hotfix #980423&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Microsoft .Net Framework 4.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Download the Windows Server AppFabric 6.1 @ http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=15848&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Recommended update for AppFabric at http://msdn.microsoft.com/en-us / windowsserver/ff637504.aspx.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Install Critical Windows Updates&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Before installing Windows Server AppFabric or its prerequisites, use the following procedures to install the latest critical Microsoft updates for your version of Windows, and any available recommended update.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Versions of Windows supported in this release are Windows 7, Windows Server 2008 Service Pack 2, and Windows Server 2008 R2. For production scenarios, only Windows Server 2008 SP2 and Windows Server 2008 R2 are supported. For development scenarios, Windows 7 and Windows Vista SP2 are also supported.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Install Windows Updates&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Click Start, point to All Programs, and then click Windows Update.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Follow the directions on the Windows Update site.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;If prompted, restart your computer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Install Hotfixes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Important&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;For the latest list of recommended updates for Windows Server AppFabric and its dependencies, see Recommended Updates for Windows Server AppFabric (http://go.microsoft.com/fwlink/?LinkID=185864)&lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;KB980423&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;You must install KB980423 to fix a set of AppFabric issues caused by Microsoft Web Administration (MWA). After you install this item, you may have to restart your computer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;KB980423 (http://go.microsoft.com/fwlink/?LinkID=185864)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Note&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;KB980423 includes KB970773, which is a critical update for IIS Manager in IIS 7.0.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Install Windows Server AppFabric&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Use the following procedure to install Windows Server AppFabric. You can use the procedures in this topic whether you are starting installation for the first time or adding or removing features after an initial installation. The installation program provides the following functionality:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Enables you to select specific features to install.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Validates the platform to ensure that the product is not installed in an unsupported state, and indicates which prerequisites need to be installed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Installs AppFabric.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Enables you to remove specific AppFabric features or AppFabric as a whole, ensuring that the computer can be left in a state in which the features or AppFabric can be reinstalled.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;•&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Creates the AppFabric Event Collector service, the AppFabric Workflow Management service, and the AppFabric Caching Service. Sets the services to a startup type of manual and a status of stopped. In the configuration process, the Event Collector and Workflow Management services are changed to an automatic startup type and are started. The startup type for the Caching Service remains set to manual.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;The AppFabric setup program sets configuration settings in the root (server level) Web.config file, the machine.config file, and the applicationHost.config file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;For information about configuration, see Configure Windows Server AppFabric. You can configure AppFabric either immediately after installation, or in a separate process.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;To open the installation wizard&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Open the installation wizard for initial installation by downloading and running the appropriate setup program from Windows Server AppFabric (http://go.microsoft.com/fwlink/?LinkID=183123), as shown in the following table.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;These programs all run a Microsoft Update package to install AppFabric features, which are features of Windows.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableMediumGrid1Accent5&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #78C0D4 1.0pt; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 480;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 30.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;&quot;&gt;   &lt;td style=&quot;background: #D2EAF1; border: solid #78C0D4 1.0pt; height: 30.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 219.35pt;&quot; valign=&quot;top&quot; width=&quot;292&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Platform&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;background: #D2EAF1; border-left: none; border: solid #78C0D4 1.0pt; height: 30.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 211.65pt;&quot; valign=&quot;top&quot; width=&quot;282&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Setup package&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 18.6pt; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; height: 18.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 219.35pt;&quot; valign=&quot;top&quot; width=&quot;292&quot;&gt;&lt;div class=&quot;MsoHeader&quot; style=&quot;line-height: 12.0pt; margin-bottom: 6.0pt; mso-yfti-cnfc: 68;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Windows   Vista and Windows Server 2008 x64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 18.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 211.65pt;&quot; valign=&quot;top&quot; width=&quot;282&quot;&gt;&lt;div class=&quot;MsoHeader&quot; style=&quot;line-height: 12.0pt; margin-bottom: 6.0pt; mso-yfti-cnfc: 72;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;WindowsServerAppFabricSetup_x64_6.0.exe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 24.0pt; mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; height: 24.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 219.35pt;&quot; valign=&quot;top&quot; width=&quot;292&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Windows 7 and Windows Server 2008 R2 x64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 24.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 211.65pt;&quot; valign=&quot;top&quot; width=&quot;282&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;WindowsServerAppFabricSetup_x64_6.1.exe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 24.0pt; mso-yfti-irow: 2;&quot;&gt;   &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; height: 24.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 219.35pt;&quot; valign=&quot;top&quot; width=&quot;292&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Windows Vista and Windows Server 2008 x86&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 24.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 211.65pt;&quot; valign=&quot;top&quot; width=&quot;282&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;WindowsServerAppFabricSetup_x86_6.0.exe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 24.0pt; mso-yfti-irow: 3; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; height: 24.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 219.35pt;&quot; valign=&quot;top&quot; width=&quot;292&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 6; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Windows 7 x86&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 24.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 211.65pt;&quot; valign=&quot;top&quot; width=&quot;282&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 10; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;WindowsServerAppFabricSetup_x86_6.1.exe&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;margin-bottom: 3.0pt; margin-left: 28.8pt; margin-right: 0cm; margin-top: 12.0pt; mso-list: l5 level2 lfo4; mso-pagination: widow-orphan; tab-stops: list 28.8pt; text-indent: -28.8pt;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; font-size: small; font-weight: normal;&quot;&gt;2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Proceed to the next section of this topic to install AppFabric&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;To install AppFabric&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;1.&amp;nbsp;On the Accept License Terms page, read the license terms, and then accept the terms and click Next to continue, or do not accept the terms and then exit the setup wizard.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;2.&amp;nbsp;On the Customer Experience Improvement Program page, select Yes to participate in the Customer Experience Improvement program, or No not to participate, and then click Next. Click the Yes, download and install critical updates. button to install the latest critical updates for Windows Server AppFabric as part of the AppFabric setup experience.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;3.&amp;nbsp;On the Feature Selection page, select Hosting Services, Caching Services, Cache Client, Hosting Administration and Cache Administration components then click Next.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;4.&amp;nbsp;On the Platform Validation page, review the information and download any necessary prerequisite software. Click the link for a component or a configuration issue for more information. After installing components and/or resolving issues, click Refresh to verify that the problem has been fixed and then click Next to continue with the setup wizard. For more information, see Preparing Your Computer for Installation.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;5.&amp;nbsp;The Confirm Installation Selections page will display a list of the features that were selected in the Feature Selection page, and will be installed. It displays a list of the required Windows components and the AppFabric features that will be installed. Verify that the lists are correct, and then click Install to begin installation.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Note&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;The Application Server role is required for AppFabric. This role will be included in the list of the required Windows components even if it is already installed, and the installation wizard will verify that it has been installed.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;6.&amp;nbsp;On the Installation Progress page, you can monitor the progress of the installation.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;7.&amp;nbsp;On the Installation Results page, verify that the installation has succeeded.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;To display a list of recommended updates that you can install, click the Recommended Updates link. To run the configuration wizard, select the Launch configuration tool check box, and then click Finish to complete the installation wizard. Click Detailed Installation report to display a log of setup events.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Start Configuration of Windows Server AppFabric&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;1.&amp;nbsp;Open the AppFabric Configuration Wizard after performing the AppFabric Setup Wizard by selecting the Launch &amp;nbsp; &amp;nbsp; configuration tool check box on the Installation Results page of the setup wizard, and then clicking Finish to &amp;nbsp;complete the setup wizard.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;2.&amp;nbsp;You can also open the configuration wizard by clicking Start, clicking All Programs, clicking Windows Server AppFabric, and then clicking Configure AppFabric.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;3.&amp;nbsp;On the Before You Begin page, select Yes to participate in the Customer Experience Improvement program, or No not to participate, and then click Next. The Configure Hosting Services page will be displayed. Proceed to the next section of this topic.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Configure Monitoring&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;On the Configure Hosting Services page, use the tables below to configure monitoring, and then click Next.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Note&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;If Hosting Administration is installed, but Hosting Services is not installed, then the services for the AppFabric Event Collection service and the Workflow Management service are not installed, and the text boxes for the identities of the services will display “Service not installed”.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #1f497d; font-family: Georgia, &#39;Times New Roman&#39;, serif; font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; margin-left: 18pt; width: 572px;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 32.4pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;&quot;&gt;&lt;td style=&quot;height: 32.4pt; padding: 0cm 0cm 0cm 0cm; width: 429.05pt;&quot; valign=&quot;top&quot; width=&quot;572&quot;&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableMediumGrid1Accent5&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #78C0D4 1.0pt; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 480;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 26.2pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border: solid #78C0D4 1.0pt; height: 26.2pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 96.8pt;&quot; valign=&quot;top&quot; width=&quot;129&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d;&quot;&gt;Control&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-left: none; border: solid #78C0D4 1.0pt; height: 26.2pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 318.85pt;&quot; valign=&quot;top&quot; width=&quot;425&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Description&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 38.4pt; mso-yfti-irow: 0;&quot;&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; height: 38.4pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 96.8pt;&quot; valign=&quot;top&quot; width=&quot;129&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Set monitoring configuration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 38.4pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 318.85pt;&quot; valign=&quot;top&quot; width=&quot;425&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Select to select the     Event Collection service account, and to select and configure the     monitoring store.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 17.25pt; mso-yfti-irow: 1;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; height: 17.25pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 96.8pt;&quot; valign=&quot;top&quot; width=&quot;129&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;AppFabric Event Collection service account&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 17.25pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 318.85pt;&quot; valign=&quot;top&quot; width=&quot;425&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Displays the Windows     logon account for the Event Collection service. By default, the Event     Collection service account is used for the monitoring provider. The Event     Collection service account is a member of the Administrators group, and has     administrative access to the monitoring database. The default is NT     Authority\LocalService.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 197.25pt; mso-yfti-irow: 2;&quot;&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; height: 197.25pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 96.8pt;&quot; valign=&quot;top&quot; width=&quot;129&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Change&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 197.25pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 318.85pt;&quot; valign=&quot;top&quot; width=&quot;425&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;If you click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Change&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; for the Event     Collection service account, you will be able to select the user credential     for system services. You can select a built-in account or enter a custom user     name and password. In the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Select User&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     dialog box, select the account that you want to use for the service, and     then click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;OK&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;.     Doing so will update the identity (if it was changed) and restart the     service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;For more information, see the section &lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=193179&quot;&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;Security     Model for Windows Server AppFabric&lt;/span&gt;&lt;/a&gt; in     (http://go.microsoft.com/fwlink/?LinkId=193179).&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 60.9pt; mso-yfti-irow: 3;&quot;&gt;&lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; height: 60.9pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 96.8pt;&quot; valign=&quot;top&quot; width=&quot;129&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Monitoring provider&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 60.9pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 318.85pt;&quot; valign=&quot;top&quot; width=&quot;425&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Select the provider that     will give access to the monitoring database. All valid data providers     registered in the local machine.config file will be displayed in this list.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 7.6pt; mso-yfti-irow: 4;&quot;&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 96.8pt;&quot; valign=&quot;top&quot; width=&quot;129&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Configure&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 318.85pt;&quot; valign=&quot;top&quot; width=&quot;425&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;After selecting the     monitoring provider, click to set the configuration for the monitoring     provider. For more information about configuring the SQL monitoring provider,     see the discussion of the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Configure SQL Monitoring     Store&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; dialog box below. You can also     select a custom monitoring provider.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 7.6pt; mso-yfti-irow: 5; mso-yfti-lastrow: yes;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 96.8pt;&quot; valign=&quot;top&quot; width=&quot;129&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 6; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;How to install additional Monitoring providers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 318.85pt;&quot; valign=&quot;top&quot; width=&quot;425&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;You can add a monitoring     provider to the list of providers that you can select in the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Monitoring provider&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     drop-down box. Click this link to get help on how to add a provider.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;TableSpacinginList1&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;NumberedList1&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;If you clicked Configure for the SQL monitoring provider (System.Data.SqlClient) on the Configure Hosting Services page, the Configure SQL Monitoring Store dialog box will be displayed. The following table describes the controls in this dialog box. Use this table to configure the monitoring store, and then click OK to return to the Configure Hosting Services page. Verify that the store was initialized and registered successfully&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;TableSpacinginList1&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableMediumGrid1Accent5&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #78C0D4 1.0pt; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 480;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 32.25pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border: solid #78C0D4 1.0pt; height: 32.25pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 119.15pt;&quot; valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d;&quot;&gt;Control&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-left: none; border: solid #78C0D4 1.0pt; height: 32.25pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 293.3pt;&quot; valign=&quot;top&quot; width=&quot;391&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d;&quot;&gt;Description&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 7.6pt; mso-yfti-irow: 0;&quot;&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 119.15pt;&quot; valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Register AppFabric monitoring store in     root web.config&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 293.3pt;&quot; valign=&quot;top&quot; width=&quot;391&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Select to register the     monitoring store identified by the connection string, by adding its     configuration to the root Web.config file. This includes the ApplicationServerMonitoringConnectionString     and its related monitoring behavior. This registration makes the connection     string and behavior available at all scopes on the computer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;You can select this     check box even if &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Initialize monitoring store&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     is not selected. Do so if the “AppFabricMonitoringStore” database is     already created and initialized, or to point to the database even if it is     not initialized.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList1&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; mso-yfti-cnfc: 72; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Note &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;This     check box is disabled if the Hosting Administration tools are installed,     but the Hosting Services feature is not installed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 7.6pt; mso-yfti-irow: 1;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 119.15pt;&quot; valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Initialize monitoring store&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 293.3pt;&quot; valign=&quot;top&quot; width=&quot;391&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Select to initialize the     monitoring database “AppFabricMonitoringStore” identified in the connection     string, as required before it can be used. Initialization creates the “AppFabricMonitoringStore”     database schema and the structure based upon that schema. If the database     does not exist, it will be created, and then initialized.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;If this check box is     selected, but &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Register AppFabric monitoring store in root     web.config&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; is not selected, then     the database will be created, if necessary, and initialized, but it will     not be available for use from this computer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;The initializing operation is performed by the     initialization cmdlets. For more information, see the &lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=164929&quot;&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;Windows     Server AppFabric help&lt;/span&gt;&lt;/a&gt;     (http://go.microsoft.com/fwlink/?LinkId=164929).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList1&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; mso-yfti-cnfc: 8; text-align: justify;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&lt;b&gt;Note &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&lt;b&gt;For     the database to be created, you must have permissions to create databases     on the destination server.&lt;/b&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 7.6pt; mso-yfti-irow: 2;&quot;&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 119.15pt;&quot; valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Connection string&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 293.3pt;&quot; valign=&quot;top&quot; width=&quot;391&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;String specifying the     server and database used to access the monitoring store.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;In the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Server&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; field, enter the name     of the computer that the database is on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;In the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Database&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; field, enter the name     of the database to be created for monitoring data, or select an existing     database from the list.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr style=&quot;height: 7.6pt; mso-yfti-irow: 3; mso-yfti-lastrow: yes;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 119.15pt;&quot; valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 6; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Security Configuration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; height: 7.6pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 293.3pt;&quot; valign=&quot;top&quot; width=&quot;391&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Select &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Windows authentication&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     or &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;SQL Server authentication&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;For Windows     authentication, to change the administrators, readers, or writers’ role,     click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Browse&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     and use the standard &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Select User or Group&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     dialog box to enter a different value. You can change the value for     administrators, readers, or writers only if &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Initialize monitoring store&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     is selected.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList1&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; mso-yfti-cnfc: 10; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Note &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; margin-left: 22.15pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;When you have installed only Hosting Administration, and you are     initializing the monitoring SQL store with Windows authentication, no group     or user is entered by default for the Administrators, Readers, or Users     role. You will need to click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Browse&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; and enter a group or user manually for each role before proceeding     with the configuration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;TableSpacinginList1&quot;&gt;&lt;div style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 150%;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;After setting the monitoring configuration, proceed to the next section of this topic if you want to set persistence configuration. Otherwise, click &lt;span class=&quot;UI&quot;&gt;Next&lt;/span&gt; to display the &lt;span class=&quot;UI&quot;&gt;Configure Caching Service&lt;/span&gt; page, and proceed to the “Configure Caching Service” section of this topic.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 150%;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;&lt;b&gt;Configure Caching Service&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;On the Configure Caching Service page, use the tables below to configure the Caching Service, and then click Next. A pop-up message will be displayed indicating that this action will apply the Caching Service configuration. To continue, click Yes. When you do so, the configuration settings will be made in the Caching Service configuration file. The Configure Cache Node page will then be displayed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;&lt;b&gt;Note&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;This page will be displayed only if you selected at least one of the Caching Services features on the Feature Selection page of the installation wizard (Caching Service, Cache Client, or Cache Administration)&lt;/span&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; margin-left: 18.0pt; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 480;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 433.35pt;&quot; valign=&quot;top&quot; width=&quot;578&quot;&gt;&lt;div class=&quot;TableSpacinginList1&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableMediumGrid1Accent5&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #78C0D4 1.0pt; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 480;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 30.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border: solid #78C0D4 1.0pt; height: 30.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d;&quot;&gt;Control&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-left: none; border: solid #78C0D4 1.0pt; height: 30.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d;&quot;&gt;Description&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Set Caching Service configuration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Select to add or update     system-level configuration of the Caching Service feature.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Caching Service account&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Displays the Windows logon account for the Caching     Service. By default, the Caching Service account is used for the Caching     Service configuration provider. The default is NT AUTHORITY\NETWORK     SERVICE. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; line-height: 150%;&quot;&gt;Change this account from&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; line-height: 150%;&quot;&gt; &lt;b&gt;NT &lt;/b&gt;Authority&lt;b&gt; \NETWORK     SERVICE to &lt;/b&gt;NT Authority\LocalSystem.&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;If your computer is part     of a workgroup, you must change the Caching Service account. Use a local     account that exists on all computers participating in the cluster and use     the same password for the account on all computers. For configuration, the     local account must have local administrator privileges, and must not be a     built-in account. This step is not necessary for domain-joined machines.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Change&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Click to display the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Select User&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; dialog box that you use     to select an account for the Caching Service account.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;For more information,     see the section &lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=193179&quot;&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;Security     Model for Windows Server AppFabric&lt;/span&gt;&lt;/a&gt; in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&amp;nbsp;(http://go.microsoft.com/fwlink/?LinkId=193179).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Caching Service configuration provider&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;When specifying the     Caching Service configuration provider, there are two options available:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;NumberedList2&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; mso-list: none; mso-yfti-cnfc: 8; page-break-after: avoid; tab-stops: 36.0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;a.&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;XML&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; – Caching Service     configuration information is stored in an XML file on a network file share.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;NumberedList2&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; mso-list: none; mso-yfti-cnfc: 8; page-break-after: avoid; tab-stops: 36.0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;b.&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;SQL Server Distributed Cache Configuration Store Provider&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; – Caching Service configuration information is stored in a SQL     Server database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList1&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 4.7pt; margin-right: 0cm; margin-top: 6.0pt; mso-yfti-cnfc: 8; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Warning &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; margin-left: 17.1pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;If XML is selected and the network discovery property is turned off,     and you click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Browse&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; to     select a file share for the XML provider, you will not be able to expand     the Network folder in the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Browse for Folder&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; dialog box. You can, however, type in a UNC server share. To be     able to expand the Network folder, you need to turn network discovery on by     opening Control Panel, selecting &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Network and Internet&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;, selecting &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Network and Sharing Center&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;, selecting &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Change Advanced sharing     settings&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;, clicking &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Turn     on network discovery&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;, and then clicking &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Save     changes&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList1&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 4.7pt; margin-right: 0cm; margin-top: 6.0pt; mso-yfti-cnfc: 8; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Note &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; margin-left: 17.1pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;In workgroup scenarios, only the XML provider is supported, not     database providers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Configure&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;If you chose &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;SQL Server AppFabric Caching Service Configuration Store Provider&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     as the configuration provider, click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Configure&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     to create or select a Caching Service configuration database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;File Share&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;If you chose &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;XML Provider&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; as the configuration     provider, enter or browse to the network file share that will contain the     XML configuration file. The file share must be a valid UNC path, for     example, \\server\share.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList1&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 4.7pt; margin-right: 0cm; margin-top: 6.0pt; mso-yfti-cnfc: 8; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Important &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; margin-left: 18.2pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;You must manually create a network file share that is accessible to all     cache servers in the cache cluster. The user account that is running the     AppFabric configuration wizard must have “Owner” or “Co-Owner” permissions     to the specified network file share and “Full Control” permissions to the     folder at the file system level.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; margin-left: 18.2pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;The Caching Service must have Read/Write access to the network file     share.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Browse&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;If you click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Browse&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; for the File share, you     will be able to use the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Browse for Folder&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     dialog box to select the file share for the XML configuration provider.     Select an existing folder or create a new folder, and then click &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;OK&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;New cluster/Join cluster&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Select &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;New Cluster&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; if this is the first     computer in the cluster. When you run Setup on subsequent computers in the     cluster, select &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Join Cluster&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;.     The default is &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;New Cluster&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;To create or join a     cluster, you need to specify the location of the configuration data (either     in a database or an XML file), and then on the next page (the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Configure AppFabric Cache Node&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     page) enter the ports, and set the firewall settings to unblock the     services listed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;When creating a cluster,     you need to indicate the cluster size (the number of computers in the     cluster). This enables the system to optimize memory allocation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.75pt;&quot; valign=&quot;top&quot; width=&quot;173&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 6; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Cluster size&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 302.1pt;&quot; valign=&quot;top&quot; width=&quot;403&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Select one of the     following three options to optimize performance based on cluster size. This     setting is available only if the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;New Cluster&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     control is selected.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;BulletedList2&quot; style=&quot;line-height: 150%; mso-list: l10 level1 lfo7; mso-yfti-cnfc: 10; page-break-after: avoid; tab-stops: 36.0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&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 class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Small [1-5 computers]&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;BulletedList2&quot; style=&quot;line-height: 150%; mso-list: l10 level1 lfo7; mso-yfti-cnfc: 10; page-break-after: avoid; tab-stops: 36.0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&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 class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Medium [6-15 computers]&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;BulletedList2&quot; style=&quot;line-height: 150%; mso-list: l10 level1 lfo7; mso-yfti-cnfc: 10; page-break-after: avoid; tab-stops: 36.0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&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;span class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Large [&amp;gt; 15     computers]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;TextinList2&quot; style=&quot;line-height: 150%; margin-left: 4.7pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Note &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList2&quot; style=&quot;line-height: 150%; margin-left: 18.2pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;After this selection has been set, it cannot be changed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList2&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 4.7pt; margin-right: 0cm; margin-top: 6.0pt; mso-yfti-cnfc: 10; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Note &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList2&quot; style=&quot;line-height: 150%; margin-left: 18.2pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Your cluster size is not limited by this selection. You can still     add or remove computers from the cluster after optimization. However,     performance will only be optimized when the cluster size is within the     range specified. Select a cluster size based upon the eventual number of     nodes that will be in the cluster. After you set the cluster size during     configuration, you cannot change it later. If you select &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Small&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; for the cluster size, the cluster will be optimized for one to five     computers. If your cluster eventually grows to ten computers, the cluster     will still be optimized for one to five computers. You cannot subsequently     change the cluster size to &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Medium&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;, in order to optimize the cluster for 6 to 15 computers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;TableSpacinginList1&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;If you selected SQL Server AppFabric Caching Service Configuration Store Provider in the Caching Service configuration provider drop-down list and click Configure, the Windows Server AppFabric Caching Configuration Store dialog box will be displayed. Use the tables below to configure the SQL store, and then click Next.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Note&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;When you click OK in the Windows Server AppFabric Caching Configuration Store dialog box, the distributed cache database will be created, and a pop-up message with the results of the operation will be displayed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Note&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Security configuration settings do not need to be made on this page because Windows authentication is required. Caching does not support SQL authentication.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;NumberedList1&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableMediumGrid1Accent5&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #78C0D4 1.0pt; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 480;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 30.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border: solid #78C0D4 1.0pt; height: 30.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 161.25pt;&quot; valign=&quot;top&quot; width=&quot;215&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d;&quot;&gt;Control&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-left: none; border: solid #78C0D4 1.0pt; height: 30.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 252.6pt;&quot; valign=&quot;top&quot; width=&quot;337&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d;&quot;&gt;Description&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 161.25pt;&quot; valign=&quot;top&quot; width=&quot;215&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 68; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Register AppFabric     Caching Service configuration database&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 252.6pt;&quot; valign=&quot;top&quot; width=&quot;337&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 72; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Select “AppFabricCachingStore”     to register the configuration database identified by the connection string,     by adding its configuration to the root Web.config file, and to set the     security configuration. This registration makes the connection string and     behavior available at all scopes on the computer. You can select this check     box even if &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Create AppFabric Caching Service configuration     database&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; is not selected. Do so     if the database is already created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 161.25pt;&quot; valign=&quot;top&quot; width=&quot;215&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 4; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Create AppFabric Caching     Service configuration database&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 252.6pt;&quot; valign=&quot;top&quot; width=&quot;337&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 8; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Select to create the     configuration database and to specify the connection string. Give a     database name as “AppFabricCachingStore”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 161.25pt;&quot; valign=&quot;top&quot; width=&quot;215&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 6; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Connection String&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 252.6pt;&quot; valign=&quot;top&quot; width=&quot;337&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Enter the server in the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Server&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt; field and select or     type the database in the &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;UI&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Database&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;     field.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;TableSpacinginList1&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;When you click Next with the Configure Caching Service page displayed, the Configure AppFabric Cache Node page will be displayed. Use the tables below to configure the cache node ports and Windows firewall.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Note&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;This page will be displayed only if you selected at least one of the Caching Services features on the Feature Selection page. You can set the firewall exceptions only if the Windows Firewall service is enabled.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Note&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;If the Windows Firewall is disabled, the Windows firewall exceptions area of the Configure AppFabric Cache Node dialog box will be disabled.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableMediumGrid1Accent5&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid #78C0D4 1.0pt; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 480;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 28.65pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;&quot;&gt;     &lt;td style=&quot;background: #D2EAF1; border: solid #78C0D4 1.0pt; height: 28.65pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 125.25pt;&quot; valign=&quot;top&quot; width=&quot;167&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-left: none; border: solid #78C0D4 1.0pt; height: 28.65pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-themecolor: accent5; mso-border-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 288.6pt;&quot; valign=&quot;top&quot; width=&quot;385&quot;&gt;&lt;div class=&quot;TableHeader&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #1f497d; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #A5D5E2; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 125.25pt;&quot; valign=&quot;top&quot; width=&quot;167&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-line-height-rule: exactly; mso-yfti-cnfc: 68; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Node ports&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #A5D5E2; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 127; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 1.0pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 288.6pt;&quot; valign=&quot;top&quot; width=&quot;385&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-line-height-rule: exactly; mso-yfti-cnfc: 72; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Enter or select a     unique value for each port, or leave the default settings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;BulletedList2&quot; style=&quot;mso-list: l10 level1 lfo7; mso-yfti-cnfc: 72; page-break-after: avoid; tab-stops: 36.0pt;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&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 class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Service port&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;. The default is 22233.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;BulletedList2&quot; style=&quot;mso-list: l10 level1 lfo7; mso-yfti-cnfc: 72; page-break-after: avoid; tab-stops: 36.0pt;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&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 class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Cluster port&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;. The default is 22234.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;BulletedList2&quot; style=&quot;mso-list: l10 level1 lfo7; mso-yfti-cnfc: 72; page-break-after: avoid; tab-stops: 36.0pt;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&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 class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Arbitrator port&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;. The     default is 22235.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;BulletedList2&quot; style=&quot;mso-list: l10 level1 lfo7; mso-yfti-cnfc: 72; page-break-after: avoid; tab-stops: 36.0pt;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&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 class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Replication port&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;. The default     is 22236.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-line-height-rule: exactly; mso-yfti-cnfc: 72; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;The valid range     for port values is 1024 through 65535. Each port must have a unique port     number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;     &lt;td style=&quot;background: #D2EAF1; border-top: none; border: solid #78C0D4 1.0pt; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-themecolor: accent5; mso-border-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 125.25pt;&quot; valign=&quot;top&quot; width=&quot;167&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 12.0pt; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-line-height-rule: exactly; mso-yfti-cnfc: 6; page-break-after: avoid;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Windows firewall     exceptions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;     &lt;td style=&quot;background: #D2EAF1; border-bottom: solid #78C0D4 1.0pt; border-left: none; border-right: solid #78C0D4 1.0pt; border-top: none; mso-background-themecolor: accent5; mso-background-themetint: 63; mso-border-bottom-themecolor: accent5; mso-border-bottom-themetint: 191; mso-border-left-alt: solid #78C0D4 1.0pt; mso-border-left-themecolor: accent5; mso-border-left-themetint: 191; mso-border-right-themecolor: accent5; mso-border-right-themetint: 191; mso-border-top-alt: solid #78C0D4 2.25pt; mso-border-top-themecolor: accent5; mso-border-top-themetint: 191; padding: 0cm 5.4pt 0cm 5.4pt; width: 288.6pt;&quot; valign=&quot;top&quot; width=&quot;385&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 3.0pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;For the AppFabric     Distributed Cache features to function, you must configure the Windows     Firewall rules to allow access for the Cache Service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;NumberedList2&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; mso-list: none; mso-yfti-cnfc: 10; page-break-after: avoid; tab-stops: 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;a.&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Windows Server AppFabric: AppFabric Caching Service&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;NumberedList2&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; mso-list: none; mso-yfti-cnfc: 10; page-break-after: avoid; tab-stops: 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;b.&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;LabelEmbedded&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Remote Service Management&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;AlertLabelinList1&quot; style=&quot;line-height: 150%; margin-bottom: 3.0pt; margin-left: .2pt; margin-right: 0cm; margin-top: 6.0pt; mso-yfti-cnfc: 10; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;Important &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;AlertTextinList1&quot; style=&quot;line-height: 150%; margin-left: 18.2pt; mso-yfti-cnfc: 10; page-break-after: avoid; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;If you are using a third party (non-Windows) firewall, or a Windows     Firewall that is subject to domain policy, you must manually configure the     firewall for the caching features to work properly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;TableSpacinginList1&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Note&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;After you click Next on the Configure AppFabric Cache Node page, the Configure Application page will &amp;nbsp; &amp;nbsp; &amp;nbsp;be displayed if the AppFabric hosting features are installed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Complete Configuration of Windows Server AppFabric&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;On the Configure Application page, select Start Internet Information Services (IIS) Manager to configure an application in the IIS Manager. Click Finish to close the configuration wizard.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Note&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;After the AppFabric Configuration Wizard has successfully configured the Caching Service, you will need to use administration cmdlets to start the cluster or start individual hosts in the cluster. Use the Start-CacheCluster or Start-CacheHost cmdlet. For more information about these cmdlets, see Cache Administration with Windows PowerShell (http://go.microsoft.com/fwlink/?LinkId=193181).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Start Cache Host Services for the First Time&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;After installation for the first time, you will need to start the cache cluster. Configure at least one node in the cluster, and then execute a cmdlet to start the cluster.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;In the developer scenario (using a single-node cluster), to start a new cluster execute Use-CacheCluster (to set the context of your Windows PowerShell session to a particular cache cluster) and then execute Start-CacheCluster.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;In a multiple-node cluster, to start all cache host services in the cluster (lead hosts first), execute Start-CacheCluster. For additional cache hosts (and any other cluster-level configuration changes) to be acknowledged by the cache cluster, you need to restart all cache host services with Restart-CacheCluster. To start a specific cache host service, execute Start-CacheHost.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;For more information, see Cache Administration with Windows PowerShell (http://go.microsoft.com/fwlink/?LinkId=193181).&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Create AppFabric Cache&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;To create the AppFabric Cache follow the below steps:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;a. &amp;nbsp;Open the Power Shell by clicking Start, clicking All Programs, clicking Windows Server AppFabric, &amp;nbsp;and then clicking Caching Administration Windows PowerShell.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;b.&amp;nbsp;Run the following command to create the cache.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;c.&amp;nbsp;get-command -module DistributedCacheAdministration&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;d.&amp;nbsp;Start-CacheCluster&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;e.&amp;nbsp;New-Cache -CacheName [CacheName]–Expirable false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;f.&amp;nbsp;Restart-CacheCluster&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;g.&amp;nbsp;Get-CacheStatistics &amp;nbsp;[CacheName]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;h.&amp;nbsp;Get-Cache&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Host a Services in AppFabric and Configure the IIS with AppFabric&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;To configure the IIS with AppFabric follow the below steps:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Open the IIS Manager to configure &amp;nbsp;the AppFabric&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Right click on Default Web Site, click on Manage WCF and WF Services and then Select Configure as shown in Figure 9.1.1.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;/ol&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq96qlG7MsI1pigsAlzTbPzRaxbTRrOj-MD3yZ22Oa2Nbgt6zh7Wpi_hFGthY6rbl7zvUxfAy4Jqwc8N7C10r2Qr0l_RR7xxcRmJCOVOpJ8oW5hSqXHRg2gyjMaMcajxUY4zHSos87g_Wo/s1600/911.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;424&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq96qlG7MsI1pigsAlzTbPzRaxbTRrOj-MD3yZ22Oa2Nbgt6zh7Wpi_hFGthY6rbl7zvUxfAy4Jqwc8N7C10r2Qr0l_RR7xxcRmJCOVOpJ8oW5hSqXHRg2gyjMaMcajxUY4zHSos87g_Wo/s640/911.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Figure 9.1.1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;3&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l11 level1 lfo14;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Now Click on      Monitoring from Configure WCF and WF for Site Window as shown below in Figure      9.1.2.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWMGqL8dRziLfITOgRceA48g-O7yCAdlyINJsTexImoMRICNhSPVdBTC2qm-ugbK9KiBnMBdbJ45On776Y-pNopqOeD1HwBvL2wADx4quiqJpZpKwQ3U666q51t3G55qyg2Ji3MPCWHXOo/s1600/912.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;544&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWMGqL8dRziLfITOgRceA48g-O7yCAdlyINJsTexImoMRICNhSPVdBTC2qm-ugbK9KiBnMBdbJ45On776Y-pNopqOeD1HwBvL2wADx4quiqJpZpKwQ3U666q51t3G55qyg2Ji3MPCWHXOo/s640/912.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Figure 9.1.2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;4&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l11 level1 lfo14;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Check the Check      box “&lt;b&gt;Write events to database&lt;/b&gt;”,      Select the appropriate &lt;b&gt;Connection      string&lt;/b&gt; for AppFabric Monitoring database, set the &lt;b&gt;Level&lt;/b&gt; to “&lt;b&gt;End to End      Monitoring&lt;/b&gt;” and then click on Apply button as shown in Figure 9.1.3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBIk_S8nm3Yfr5vG8o9uahyZXO6HPS7L8H_KKiItIf9mQ0udBAAFqQLmrpRBTbj54g44Phyphenhyphenn0XgdcWkRdTBjR5BYM5IiyD9OFPEasn8VwYwC4Q5WZIzuSC_wCVyCdmK-yfiUt0k-Oter2/s1600/913.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;478&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBIk_S8nm3Yfr5vG8o9uahyZXO6HPS7L8H_KKiItIf9mQ0udBAAFqQLmrpRBTbj54g44Phyphenhyphenn0XgdcWkRdTBjR5BYM5IiyD9OFPEasn8VwYwC4Q5WZIzuSC_wCVyCdmK-yfiUt0k-Oter2/s640/913.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;Figure. 9.1.3.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;5&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l11 level1 lfo14;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Finally, click on      Ok button to close the windows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Now, your IIS is configured with the AppFabric Monitoring.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;To configure the service with AppFabric follow the below steps:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l9 level1 lfo15;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Open the IIS      Manager to configure&amp;nbsp; the AppFabric&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l9 level1 lfo15;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Right click on Discovery, click on Manage WCF and WF Services and      then Select Configure as shown in Figure 9.2.1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwcOX3FAXkp-qX3Bs6Z2FRKZA62kjnNUKArfZe444fkdcRIYEksVG9QOs9zjN04pEBFfs01TH08a4IEE3rj1WhN2vJPPV0_vhZzlD-dWGogQoJBJQES1g2omJ0FYdILXz9M7Qjlv0Kbon7/s1600/921.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;520&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwcOX3FAXkp-qX3Bs6Z2FRKZA62kjnNUKArfZe444fkdcRIYEksVG9QOs9zjN04pEBFfs01TH08a4IEE3rj1WhN2vJPPV0_vhZzlD-dWGogQoJBJQES1g2omJ0FYdILXz9M7Qjlv0Kbon7/s640/921.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Figure. 9.2.1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;3&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l9 level1 lfo15;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Now Click on      Monitoring from Configure WCF and WF for Site Window as shown in Figure 9.2.2.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3Pv3Bon6xXcfAkZhLyIrrrHgIdiiV-Pl_D4RMMiYktkWcUJdsdQ2xOpRr3w_WhfPsR5i54Inr-G65Zcv9_EmR_5XaModPLTuqtIvRHhASpXWq9e6ALAhqQSa7x5fPgvpFLGlMMfiDT9w/s1600/922.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3Pv3Bon6xXcfAkZhLyIrrrHgIdiiV-Pl_D4RMMiYktkWcUJdsdQ2xOpRr3w_WhfPsR5i54Inr-G65Zcv9_EmR_5XaModPLTuqtIvRHhASpXWq9e6ALAhqQSa7x5fPgvpFLGlMMfiDT9w/s640/922.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Figure. 9.2.2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;4&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l9 level1 lfo15;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Check the Check      box “Write events to database”, Select the appropriate Connection string      for AppFabric Monitoring database, set the Level to “End to End      Monitoring” and then click on Apply button as shown in Figure 9.2.3.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLNy3a7UpSOXWKkvPfrYATZtct3rJQ5ApuRYu_UACX8AKb4kYztIDUoFM-JYul3I-_D4qo-_2-plwm3i9Cgnlt_0hL4v5AuMXQOtF1ACWVgXOUZQNvWlaKaynP7bf_jd8e135NkLjiGivQ/s1600/923.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLNy3a7UpSOXWKkvPfrYATZtct3rJQ5ApuRYu_UACX8AKb4kYztIDUoFM-JYul3I-_D4qo-_2-plwm3i9Cgnlt_0hL4v5AuMXQOtF1ACWVgXOUZQNvWlaKaynP7bf_jd8e135NkLjiGivQ/s640/923.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 22px;&quot;&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;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Figure. 9.2.3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;5&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l9 level1 lfo15;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Now select &lt;b&gt;Auto-Start &lt;/b&gt;tab to enable the      Auto-Start option as shown in Figure 9.2.4.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36.0pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkBSeVNosoF0RyDc8vJrstTz9_EMY9WhNq9A4QqCxPxSWlyqS-jGUxywsob20vWb-NS0GtyXZrnH-92va54euTDQp-aCvYlrmK7q6k9NtwJAmwbtSCI9NY0AJIqF_oEzNsxaVwBlaOFTkS/s1600/924.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkBSeVNosoF0RyDc8vJrstTz9_EMY9WhNq9A4QqCxPxSWlyqS-jGUxywsob20vWb-NS0GtyXZrnH-92va54euTDQp-aCvYlrmK7q6k9NtwJAmwbtSCI9NY0AJIqF_oEzNsxaVwBlaOFTkS/s640/924.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: center;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Figure. 9.2.4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;6&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-list: l9 level1 lfo15;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 150%;&quot;&gt;Finally, click on      Ok button to close the windows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #444444; font-family: Georgia, &#39;Times New Roman&#39;, serif; font-size: small;&quot;&gt;Note: Repeat the same steps mentioned in section 9.2 for all the other Service to configure the AppFabric Monitoring.&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/3926142075784674469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/windows-server-appfabric-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3926142075784674469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3926142075784674469'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/windows-server-appfabric-installation.html' title='Windows Server AppFabric Installation and Configuration'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq96qlG7MsI1pigsAlzTbPzRaxbTRrOj-MD3yZ22Oa2Nbgt6zh7Wpi_hFGthY6rbl7zvUxfAy4Jqwc8N7C10r2Qr0l_RR7xxcRmJCOVOpJ8oW5hSqXHRg2gyjMaMcajxUY4zHSos87g_Wo/s72-c/911.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-1614831427068940889</id><published>2012-01-20T01:28:00.000-08:00</published><updated>2012-01-20T01:28:38.176-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML5"/><category scheme="http://www.blogger.com/atom/ns#" term="Kaazing"/><category scheme="http://www.blogger.com/atom/ns#" term="Websocket"/><title type='text'>Explore Kaazing Websocket in .Net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Introduction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Kaazing WebSocket Gateway provides full duplex web communication. It provides an alternate way of communication from server to client for “polling” or “long-polling”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;WebSocket&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;WebSocket is a full-duplex single socket connection over which messages can be sent between a client and a server. The WebSocket standard simplifies much of the complexity around bi-directional web communication and connection management.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Kaazing WebSocket&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Kaazing WebSocket Gateway is an HTML5-compliant WebSocket server with support to today&#39;s pre-HTML5 browsers. The Gateway provides a bridge between WebSocket clients and your back-end systems, servers, and applications. This enables you to implement your own custom protocol or run an existing protocol over WebSocket.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Installing Kaazing WebSocket&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;Kaazing WebSocket can be installed in Windows 7, Windows Vista, Windows XP SP3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;Download the full Kaazing WebSocket Gateway - HTML5 Edition from the &lt;a href=&quot;http://kaazing.com/download.html&quot;&gt;Kaazing download&lt;/a&gt; page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;There are two type of download available&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;a.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;Base&lt;/b&gt;: Contains a minimal download of the Gateway for experienced users who are ready to use the Gateway in production.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;b.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;Full&lt;/b&gt;: Contains the Base download plus the Gateway documentation and the services needed to run the Gateway demos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;4.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Unpack the Kaazing WebSocket Gateway distribution into a directory of your choice (for example, &lt;span class=&quot;codeinline&quot;&gt;C:\kaazing&lt;/span&gt; or &lt;span class=&quot;codeinline&quot;&gt;/home/&lt;/span&gt;&lt;em&gt;username&lt;/em&gt;&lt;span class=&quot;codeinline&quot;&gt;/Kaazing&lt;/span&gt;). Unpacking the distribution creates a directory containing the Gateway; this directory is referred to as &lt;em&gt;GATEWAY_HOME&lt;/em&gt; in the documentation.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;5.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;On Windows you can use an Unzip program to unpack the Gateway &lt;span class=&quot;codeinline&quot;&gt;*.zip&lt;/span&gt; file&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;6.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Start the demo services by navigating to the &lt;em&gt;GATEWAY_HOME&lt;/em&gt;&lt;span class=&quot;codeinline&quot;&gt;/bin&lt;/span&gt; directory and running the demo&lt;span class=&quot;codeinline&quot;&gt;-services.start.bat&lt;/span&gt; (Windows) script.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;a.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;To start the demo service in Windows Explorer, navigate to the &lt;em&gt;GATEWAY_HOME&lt;/em&gt;&lt;span class=&quot;codeinline&quot;&gt;/bin&lt;/span&gt; directory where you installed the Gateway&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;b.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Use the following command to start the demo services, and substitute either the public IP address or the public DNS name for &lt;em&gt;&lt;b&gt;example.com&lt;/b&gt;&lt;/em&gt;&lt;b&gt;:&lt;/b&gt;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;demo-services.start.bat udp://example.com:50505&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;7.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Start Kaazing WebSocket Gateway by navigating to the &lt;em&gt;GATEWAY_HOME&lt;/em&gt;&lt;span class=&quot;codeinline&quot;&gt;/bin&lt;/span&gt; directory and running the&amp;nbsp;&lt;span class=&quot;codeinline&quot;&gt;gateway.start.bat&lt;/span&gt;&amp;nbsp;(Windows) script.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;a.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;To start the gateway on Windows ; In Windows Explorer, navigate to the &lt;em&gt;GATEWAY_HOME&lt;/em&gt;&lt;span class=&quot;codeinline&quot;&gt;/bin&lt;/span&gt; directory where you installed the Gateway.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;b.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Double-click the &lt;span class=&quot;codeinline&quot;&gt;gateway.start.bat&lt;/span&gt; script.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;8.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Verify the Gateway setup by navigating to &lt;a href=&quot;http://localhost:8001/&quot;&gt;http://localhost:8001/&lt;/a&gt; in your browser.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;9.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Verify Gateway &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;a.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;To verify that the Gateway is up and running, open a browser and access the Gateway home page at &lt;a href=&quot;http://localhost:8001/&quot;&gt;http://localhost:8001/&lt;/a&gt;. Click the &lt;strong&gt;Documentation&lt;/strong&gt; tab to see the documentation library and learn more about the Gateway. Click the &lt;strong&gt;Demos&lt;/strong&gt; tab to view the demos.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;b.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;A WebSocket Echo demo service is bundled and started by default in the Full product. If you want to configure your own back-end service, see the &lt;a href=&quot;http://10.160.153.98:8002/documentation/setup-guide.html#advanced_config&quot;&gt;Advanced configuration service&lt;/a&gt; and the client how-to guides on the &lt;a href=&quot;http://tech.kaazing.com/documentation/html5/index.html&quot;&gt;Kaazing Documentation home page&lt;/a&gt; for more information.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;c.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;See the &lt;a href=&quot;http://tech.kaazing.com/documentation/html5/release-notes.html&quot;&gt;&lt;em&gt;&lt;span style=&quot;color: blue;&quot;&gt;Release Notes&lt;/span&gt;&lt;/em&gt;&lt;/a&gt; (online only) for an overview of the certified browser versions for this release.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;You are now done setting up Kaazing WebSocket Gateway locally.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Note&lt;/b&gt;: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;When running the &lt;b&gt;com.kaazing.gateway.client.dotnet.core.demo.exe&lt;/b&gt; demo for dotnet from &lt;em&gt;&lt;span lang=&quot;EN&quot;&gt;GATEWAY_HOME&lt;/span&gt;&lt;/em&gt;&lt;span class=&quot;codeinline&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;/&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt; &lt;/span&gt;&lt;span class=&quot;codeinline&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;demo/dotnet/bin/Release then exception is thrown as “Cannot load the System.Net assembly”. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;codeinline&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;In order to resolve this error you have to download &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;.NET Framework 4 update from this url &lt;span class=&quot;codeinline&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=3556&quot;&gt;&lt;span style=&quot;color: windowtext; text-decoration: none; text-underline: none;&quot;&gt;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=3556&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;codeinline&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Configuring Kaazing WebSocket Gateway to use Multicast&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To Multicast we have to specify the multicast URI (an IP address with the multicast address mask of 224.0.0.0) in the accept property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The following is an example of a service configuration element in the file GATEWAY_HOME/conf/gateway-config.xml for a service using a multicast address. In this example, data packets sent to the multicast group 224.0.0.1:50505 (shown in line 8) will be broadcast to all clients connected to sse://localhost:8000/sse or sse+ssl://localhost:9000/sse.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm;&quot;&gt;   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm;&quot;&gt;   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
   id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
   path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;    &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;    &lt;v:formulas&gt;     &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;     &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;     &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;     &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;     &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;     &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;     &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;     &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;     &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;     &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;     &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;     &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;    &lt;/v:formulas&gt;    &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;    &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;   &lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1029&quot; type=&quot;#_x0000_t75&quot;
   style=&#39;width:451.5pt;height:156pt;visibility:visible;mso-wrap-style:square&#39;&gt;    &lt;v:imagedata src=&quot;file:///C:\Users\MUTHAR~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png&quot;
    o:title=&quot;&quot;/&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/i&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm;&quot;&gt;   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm;&quot;&gt;   &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicMbM5APrrACxsfke2goFDAsB4fkOFs1827Ed0c7CkwAqTjegCr3iOlBUpOFahW_9XLuXFveRoUlHlIL1KKOS5FKzmZKzHO8sYb4_Wpyega6i4iwQWlrjs_BABOZjJ1AdzGBiz3JarlO4D/s1600/KaazingConfig.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicMbM5APrrACxsfke2goFDAsB4fkOFs1827Ed0c7CkwAqTjegCr3iOlBUpOFahW_9XLuXFveRoUlHlIL1KKOS5FKzmZKzHO8sYb4_Wpyega6i4iwQWlrjs_BABOZjJ1AdzGBiz3JarlO4D/s1600/KaazingConfig.png&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To verify this configuration, you can start the newsfeed data source that ships with the Kaazing WebSocket Gateway bundle and pass the multicast URI you have configured as a startup argument. To do this, perform the following steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In a command prompt or shell, navigate to GATEWAY_HOME/bin. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Run gateway.demos.start mcp://multicast-uri:port-number (for example, gateway.demos.start mcp://224.0.0.1:50505) to start the newsfeed data source. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Run gateway.start to start the Gateway. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In a browser, navigate to the server-sent events demo page (by default, this is located at http://localhost:8001/demo/sse.html) and watch the streaming news feed data. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can now configure and run a second Kaazing WebSocket Gateway to serve server-sent event streams from a different host and port for the same newsfeed multicast data packets. Note that services cannot send UDP packets to an MCP acceptor, nor MCP packets to a UDP acceptor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;After configuring the gateway create .Net console server application and add below listed code in your server application&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; MultiCastMessage()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Start Transmitting the message &quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.Read();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;UdpClient&lt;/span&gt; udpClient = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;UdpClient&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; hName = &lt;span style=&quot;color: #2b91af;&quot;&gt;Dns&lt;/span&gt;.GetHostName();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt; address = &lt;span style=&quot;color: #2b91af;&quot;&gt;Dns&lt;/span&gt;.GetHostAddresses(hName);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; udpClient.Connect(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;IPEndPoint&lt;/span&gt;(address[1], 50505));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #2b91af;&quot;&gt;String&lt;/span&gt;&amp;gt; messages = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; messages.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Sending message from&amp;nbsp; Origin(Server).&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Byte&lt;/span&gt;[] msgByte = &lt;span style=&quot;color: blue;&quot;&gt;default&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;Byte&lt;/span&gt;[]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;String&lt;/span&gt; msg &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; messages)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Sending Message ......... &quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(msg);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&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; System.Threading.&lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;.Sleep(1000);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&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; msgByte = &lt;span style=&quot;color: #2b91af;&quot;&gt;Encoding&lt;/span&gt;.ASCII.GetBytes(msg);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = udpClient.Send(msgByte, msgByte.Length);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&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; System.Threading.&lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;.Sleep(3000);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&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;&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;----------------------------------------------&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Completed Transmitting the message &quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; udpClient.Close();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt; ex)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Error : &quot;&lt;/span&gt; + ex.Message);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In Main method of your console application call method MultiCastMessage()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultiCastMessage();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Create Windows Form Client application to send and receive messages&lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Add Reference to &lt;/span&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;“&lt;/b&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;com.kaazing.gateway.client.html5.dll”&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Include in your code as “&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Arial, Helvetica, sans-serif;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; com.kaazing.gateway.client.html5;”&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Set the default location as&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;span style=&quot;color: #2b91af; font-family: Arial, Helvetica, sans-serif;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; defaultLocation = &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&quot;http://localhost:8001/sse&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add HandleLog method to client application&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; HandleLog(&lt;span style=&quot;color: #2b91af;&quot;&gt;String&lt;/span&gt; message)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this&lt;/span&gt;.BeginInvoke((&lt;span style=&quot;color: #2b91af;&quot;&gt;InvokeDelegate&lt;/span&gt;)(() =&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;LOG: &quot;&lt;/span&gt; + message);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add “Connect ” button and add code for &lt;/b&gt;&lt;b&gt;ConnectButton_Click event&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; ConnectButton_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;// Immediately disable the connect button&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectButton.Enabled = &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventSource = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;EventSource&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CONNECT:&quot;&lt;/span&gt; + LocationText.Text);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventSource.OpenEvent += &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;OpenEventHandler&lt;/span&gt;(OpenHandler);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventSource.ErrorEvent +=&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ErrorEventHandler&lt;/span&gt;(ErrorHandler);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventSource.MessageEvent += &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;MessageEventHandler&lt;/span&gt;(MessageHandler);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventSource.Connect(LocationText.Text);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add “Disconnect ” button and add code for &lt;/b&gt;&lt;b&gt;DisconnectButton_Click event&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; DisconnectButton_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;DISCONNECTED&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventSource.Disconnect();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ConnectButton.Enabled = &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add &lt;/b&gt;LOG_LIMIT&lt;b&gt;&amp;nbsp; and &lt;/b&gt;logLines &lt;b&gt;Variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; LOG_LIMIT = 50;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Queue&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt; logLines = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Queue&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Add Log method&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Log(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; arg)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logLines.Enqueue(arg);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (logLines.Count &amp;gt; LOG_LIMIT)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logLines.Dequeue();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] o = logLines.ToArray&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o = o.Reverse&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;().ToArray&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output.Text = &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;.Join(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\r\n&quot;&lt;/span&gt;, o);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add “ClearLogButton ” button and add code for &lt;/b&gt;&lt;b&gt;ClearLogButton_Click event&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; ClearLogButton_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logLines.Clear();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output.Text = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add &amp;nbsp;code for &lt;/b&gt;&lt;b&gt;OpenHandler&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; OpenHandler(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;OpenEventArgs&lt;/span&gt; args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.BeginInvoke((&lt;span style=&quot;color: #2b91af;&quot;&gt;InvokeDelegate&lt;/span&gt;)(() =&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Log(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CONNECTED&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisconnectButton.Enabled = &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add &amp;nbsp;code for &lt;/b&gt;&lt;b&gt;MessageHandler&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; MessageHandler(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;MessageEventArgs&lt;/span&gt; args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; messageData = args.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; origin = args.Origin;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; lastEvent = args.EventId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.BeginInvoke((&lt;span style=&quot;color: #2b91af;&quot;&gt;InvokeDelegate&lt;/span&gt;)(() =&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output.Text = Output.Text + &lt;span style=&quot;color: #2b91af;&quot;&gt;Environment&lt;/span&gt;.NewLine + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot; Recieved : &quot;&lt;/span&gt; + &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; messageData + &lt;span style=&quot;color: #2b91af;&quot;&gt;Environment&lt;/span&gt;.NewLine + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;-----&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Add code for &lt;/b&gt;&lt;b&gt;ErrorHandler&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; ErrorHandler(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;ErrorEventArgs&lt;/span&gt; args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.BeginInvoke((&lt;span style=&quot;color: #2b91af;&quot;&gt;InvokeDelegate&lt;/span&gt;)(() =&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt; ex = args.GetException;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Output.Text = ex.InnerException.ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;1.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Start Kaazing WebSocket Gateway by navigating to the &lt;em&gt;GATEWAY_HOME&lt;/em&gt;&lt;span class=&quot;codeinline&quot;&gt;/bin&lt;/span&gt; directory and running the&amp;nbsp;&lt;span class=&quot;codeinline&quot;&gt;gateway.start.bat&lt;/span&gt;&amp;nbsp;(Windows) script.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2vv1EnXhcX7VG50i9VDf0EF0QDe4Kha-5pclNbj9vQpcGZ93vKHPwSEO1uUxPF8CjWS-mtHv-AF_ULPHW2b17hvsCU_QKAvPpURpirb_oo4-ZC_Ci8O4LfQCb5H6MwcF6ICOGrdlVyt1i/s1600/GateWay.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2vv1EnXhcX7VG50i9VDf0EF0QDe4Kha-5pclNbj9vQpcGZ93vKHPwSEO1uUxPF8CjWS-mtHv-AF_ULPHW2b17hvsCU_QKAvPpURpirb_oo4-ZC_Ci8O4LfQCb5H6MwcF6ICOGrdlVyt1i/s320/GateWay.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_3&quot; o:spid=&quot;_x0000_i1028&quot; type=&quot;#_x0000_t75&quot; style=&#39;width:379.5pt;
 height:179.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;  &lt;v:imagedata src=&quot;file:///C:\Users\MUTHAR~1\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png&quot;
  o:title=&quot;&quot;/&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;2.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Start Server application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnL2_ZJCzIsngKUuqOcLc5qQ8LEdcwq0fEo2H9U8fF5kb-1_hBlZ_HKL-zkBnde8dCnvZAKXfjg9DALmTBprkHyMUj0ZXFkio8cPWKUaKI3lPrtLmzB1t3-ohaai_87d1nF-PhNBH7_8O1/s1600/Server.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnL2_ZJCzIsngKUuqOcLc5qQ8LEdcwq0fEo2H9U8fF5kb-1_hBlZ_HKL-zkBnde8dCnvZAKXfjg9DALmTBprkHyMUj0ZXFkio8cPWKUaKI3lPrtLmzB1t3-ohaai_87d1nF-PhNBH7_8O1/s320/Server.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_4&quot; o:spid=&quot;_x0000_i1027&quot;
 type=&quot;#_x0000_t75&quot; style=&#39;width:381.75pt;height:195.75pt;visibility:visible;
 mso-wrap-style:square&#39;&gt;  &lt;v:imagedata src=&quot;file:///C:\Users\MUTHAR~1\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png&quot;
  o:title=&quot;&quot;/&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;3.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;Start Client application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaGVi75sq5GgIb8N9p4MOb2hgijXQ9_ND1ohiAcs23C8u4woi9boNKZQdH8qie71Tugyv4ntTpSogyJXtse7hNtWubKzxvdbjn29zGuDGvkyN0qf9HDUoakJ1kmkK7tdZwYxXV5cUxenbN/s1600/client.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaGVi75sq5GgIb8N9p4MOb2hgijXQ9_ND1ohiAcs23C8u4woi9boNKZQdH8qie71Tugyv4ntTpSogyJXtse7hNtWubKzxvdbjn29zGuDGvkyN0qf9HDUoakJ1kmkK7tdZwYxXV5cUxenbN/s320/client.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;4.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;In Client App Conncet to Gateway by clicking on “Connect” button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;5.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN&quot;&gt;From Client App &lt;/span&gt;Send a message from Client App&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 18pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;Picture_x0020_2&quot;
 o:spid=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot; style=&#39;width:478.5pt;height:279.75pt;
 visibility:visible;mso-wrap-style:square&#39;&gt;  &lt;v:imagedata src=&quot;file:///C:\Users\MUTHAR~1\AppData\Local\Temp\msohtmlclip1\01\clip_image009.png&quot;
  o:title=&quot;&quot;/&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVCVY61jnLWYAyt4Fq_g-a6zMbuOZX1MgzBRmqWSA0ipHQYHkqmugoSNrakCkK1GdezY3YJSpflmPz4xkcVy6ZgyoMh1CjVAtE243CM11zwiYybHtK3GXbphYUDYbu8um4T8OkpsCR6UGD/s1600/Kaazing.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;351&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVCVY61jnLWYAyt4Fq_g-a6zMbuOZX1MgzBRmqWSA0ipHQYHkqmugoSNrakCkK1GdezY3YJSpflmPz4xkcVy6ZgyoMh1CjVAtE243CM11zwiYybHtK3GXbphYUDYbu8um4T8OkpsCR6UGD/s640/Kaazing.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;As you can see in above screen shot client received the message sent from server.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/1614831427068940889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/explore-kaazing-websocket-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/1614831427068940889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/1614831427068940889'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/explore-kaazing-websocket-in-net.html' title='Explore Kaazing Websocket in .Net'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicMbM5APrrACxsfke2goFDAsB4fkOFs1827Ed0c7CkwAqTjegCr3iOlBUpOFahW_9XLuXFveRoUlHlIL1KKOS5FKzmZKzHO8sYb4_Wpyega6i4iwQWlrjs_BABOZjJ1AdzGBiz3JarlO4D/s72-c/KaazingConfig.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8302844099971593184</id><published>2012-01-18T03:52:00.000-08:00</published><updated>2012-01-18T22:03:06.234-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Cache"/><category scheme="http://www.blogger.com/atom/ns#" term="CacheDependency"/><category scheme="http://www.blogger.com/atom/ns#" term="Caching"/><category scheme="http://www.blogger.com/atom/ns#" term="dependency"/><category scheme="http://www.blogger.com/atom/ns#" term="example"/><category scheme="http://www.blogger.com/atom/ns#" term="Response"/><category scheme="http://www.blogger.com/atom/ns#" term="StreamReader"/><title type='text'>ASP.NET Cache dependency example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In this article we will learn how to implement file dependency in caching.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;In this method the cache[&quot;messageDependency&quot;] &amp;nbsp;loads the file &quot;DependencyFile.txt&quot; in memory(cache) only when its content is changed in the disk.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;public void displayMessage()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String message;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String Path = &quot;~/DependencyFile.txt&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Cache[&quot;messageDependency&quot;] == null)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.IO.StreamReader sReader = new StreamReader(Server.MapPath(Path));&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; message = sReader.ReadToEnd();&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sReader.Close();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Web.Caching.CacheDependency msgDependency = new System.Web.Caching.CacheDependency(Server.MapPath(Path));&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cache.Insert(&quot;messageDependency&quot;, message, msgDependency);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.Write(Cache[&quot;messageDependency&quot;].ToString());&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8302844099971593184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/aspnet-cache-dependency-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8302844099971593184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8302844099971593184'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/aspnet-cache-dependency-example.html' title='ASP.NET Cache dependency example'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-5410513451359251454</id><published>2012-01-18T03:50:00.001-08:00</published><updated>2012-01-18T22:04:20.719-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="email"/><category scheme="http://www.blogger.com/atom/ns#" term="script task"/><category scheme="http://www.blogger.com/atom/ns#" term="Send"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS"/><category scheme="http://www.blogger.com/atom/ns#" term="using"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Sending email in SSIS using script task</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Sending mail using script task. We can send email with attachments and also either in text format or in HTML format&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Public Sub SendMail(ByVal message As String)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim vars As Variables&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myHtmlMessage As MailMessage&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mySmtpClient As SmtpClient&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage = New MailMessage()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FromAddress As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;from&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromAddress = vars(&quot;from&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ToAddress As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;to&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ToAddress = vars(&quot;to&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim CCAddress As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;cc&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCAddress = vars(&quot;cc&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SmtpClient As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;smtpServer&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SmtpClient = vars(&quot;smtpServer&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage.From = New Mail.MailAddress(FromAddress)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tt As String()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (ToAddress.ToString().Trim().Length &amp;gt; 0) Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (ToAddress.IndexOf(&quot;;&quot;) &amp;gt; 0) Then&lt;br /&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; tt = ToAddress.Split(&quot;;&quot;)&lt;br /&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; Dim c As String&lt;br /&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; If (tt.Length &amp;gt; 0) Then&lt;br /&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; For Each c In tt&lt;br /&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; myHtmlMessage.To.Add(c)&lt;br /&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; Next&lt;br /&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; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&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; myHtmlMessage.To.Add(ToAddress.ToString().Trim())&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cc As String()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (CCAddress.ToString().Trim().Length &amp;gt; 0) Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (CCAddress.IndexOf(&quot;;&quot;) &amp;gt; 0) Then&lt;br /&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; cc = CCAddress.Split(&quot;;&quot;)&lt;br /&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; Dim c As String&lt;br /&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; If (cc.Length &amp;gt; 0) Then&lt;br /&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; For Each c In cc&lt;br /&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; myHtmlMessage.CC.Add(c)&lt;br /&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; Next&lt;br /&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; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&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; myHtmlMessage.CC.Add(CCAddress)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim MailSubject As String = &quot; Email scheduling process&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mailBody As String = &quot;Hi, &amp;lt;/BR&amp;gt;&quot; + message + &quot;&amp;lt;/BR&amp;gt; Thanks, &amp;lt;/BR&amp;gt; XXX&quot;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myHtmlMessage.Subject = MailSubject&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage.IsBodyHtml = True&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySmtpClient = New SmtpClient(SmtpClient)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySmtpClient.Credentials = CredentialCache.DefaultNetworkCredentials&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySmtpClient.Send(myHtmlMessage)&lt;br /&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;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/5410513451359251454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/sending-email-in-ssis-using-script-task.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/5410513451359251454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/5410513451359251454'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/sending-email-in-ssis-using-script-task.html' title='Sending email in SSIS using script task'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8737879812141691271</id><published>2012-01-18T03:49:00.000-08:00</published><updated>2012-01-18T22:06:07.430-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="embed"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="mailBody"/><category scheme="http://www.blogger.com/atom/ns#" term="scheduling"/><category scheme="http://www.blogger.com/atom/ns#" term="SendMail"/><category scheme="http://www.blogger.com/atom/ns#" term="Subject"/><category scheme="http://www.blogger.com/atom/ns#" term="VariableDispenser"/><title type='text'>How to embed an image in your Email</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In this code we will learn how to embed an image in mail using VB.NET.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Public Sub SendMail(ByVal message As String)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim vars As Variables&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myHtmlMessage As MailMessage&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mySmtpClient As SmtpClient&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim retVal As Int32 = -1&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage = New MailMessage()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FromAddress As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;from&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromAddress = vars(&quot;from&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ToAddress As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;to&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ToAddress = vars(&quot;to&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim CCAddress As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;cc&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCAddress = vars(&quot;cc&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SmtpClient As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;smtpServer&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SmtpClient = vars(&quot;smtpServer&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage.From = New Mail.MailAddress(FromAddress)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tt As String()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (ToAddress.ToString().Trim().Length &amp;gt; 0) Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (ToAddress.IndexOf(&quot;;&quot;) &amp;gt; 0) Then&lt;br /&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; tt = ToAddress.Split(&quot;;&quot;)&lt;br /&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; Dim c As String&lt;br /&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; If (tt.Length &amp;gt; 0) Then&lt;br /&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; For Each c In tt&lt;br /&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; myHtmlMessage.To.Add(c)&lt;br /&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; Next&lt;br /&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; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&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; myHtmlMessage.To.Add(ToAddress.ToString().Trim())&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cc As String()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (CCAddress.ToString().Trim().Length &amp;gt; 0) Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (CCAddress.IndexOf(&quot;;&quot;) &amp;gt; 0) Then&lt;br /&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; cc = CCAddress.Split(&quot;;&quot;)&lt;br /&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; Dim c As String&lt;br /&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; If (cc.Length &amp;gt; 0) Then&lt;br /&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; For Each c In cc&lt;br /&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; myHtmlMessage.CC.Add(c)&lt;br /&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; Next&lt;br /&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; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&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; myHtmlMessage.CC.Add(CCAddress)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim MailSubject As String = &quot; Email scheduling process&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mailBody As String = &quot;Hi, &amp;lt;/BR&amp;gt;&quot; + message + &quot;&amp;lt;/BR&amp;gt; Thanks, &amp;lt;/BR&amp;gt; XXX&quot;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ApplicationPath As String &#39; Physical path of an image. Example: C:/images/&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;ApplicationPath&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplicationPath = vars(&quot;ApplicationPath&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39; EMBEDING IMAGE&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim contentId As String = &quot;image1&quot; &#39; giving ID to an image content&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim path As String = ApplicationPath + &quot;&lt;a href=&quot;file://mylogo.jpg/&quot; style=&quot;color: #3681cc; text-decoration: none;&quot;&gt;\\myLogo.JPG&lt;/a&gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myImage As String = &quot;&amp;lt;img src=&quot;&quot;cid:image1&quot;&quot;/&amp;gt;&amp;lt;br /&amp;gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mybody As String = String.Empty&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim linkedResource As System.Net.Mail.LinkedResource = New System.Net.Mail.LinkedResource(path)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim av1 As System.Net.Mail.AlternateView&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linkedResource.ContentId = contentId&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linkedResource.ContentType.Name = path&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; av1 = System.Net.Mail.AlternateView.CreateAlternateViewFromString(mailBody + &quot;&amp;lt;/BR&amp;gt;&quot; + myImage, Nothing, System.Net.Mime.MediaTypeNames.Text.Html)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; av1.LinkedResources.Add(linkedResource)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage.AlternateViews.Add(av1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage.Subject = MailSubject&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHtmlMessage.IsBodyHtml = True&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySmtpClient = New SmtpClient(SmtpClient)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySmtpClient.Credentials = CredentialCache.DefaultNetworkCredentials&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySmtpClient.Send(myHtmlMessage)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8737879812141691271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/how-to-embed-image-in-your-email.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8737879812141691271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8737879812141691271'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/how-to-embed-image-in-your-email.html' title='How to embed an image in your Email'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-3090185193456499898</id><published>2012-01-18T03:48:00.000-08:00</published><updated>2012-01-18T22:07:15.862-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="connect"/><category scheme="http://www.blogger.com/atom/ns#" term="FTP server"/><category scheme="http://www.blogger.com/atom/ns#" term="Handling error"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS FTP task"/><title type='text'>Handling error while connecting to FTP server using SSIS FTP task</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;SSIS FTP task does&#39;t allow user to connect to different FTP servers. If we store FTP connection sting (Example: ftp.xxx.com:21.username.password)in Config file also it will accepts domain name, port and username but it wont accept password. Also FTP task has not exposed the FTP password property. To over come this problem we have to override the FTP connection manager itself. So that it accepts connections dynamically.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Public Sub Main()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim vars As Variables&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ftpConnectionManager As ConnectionManager&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftpConnectionManager = Dts.Connections(&quot;FTP Connection Manager&quot;)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39; ADDED TO MAKE FTP CONNECTION STRING DYNAMIC&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FtpServer As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FtpPort As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FtpUser As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FtpPassword As String&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;FtpServer&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FtpServer = Text.Encoding.Unicode.GetString(Convert.FromBase64String(vars(&quot;FtpServer&quot;).Value.ToString().Trim()))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;MsgBox(&quot;FtpServer = &quot; + FtpServer)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;FtpPort&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FtpPort = Text.Encoding.Unicode.GetString(Convert.FromBase64String(vars(&quot;FtpPort&quot;).Value.ToString().Trim())) &#39;vars(&quot;FtpPort&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;MsgBox(&quot;FtpPort = &quot; + FtpPort)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;FtpUser&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FtpUser = Text.Encoding.Unicode.GetString(Convert.FromBase64String(vars(&quot;FtpUser&quot;).Value.ToString().Trim())) &#39; vars(&quot;FtpUser&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;MsgBox(&quot;FtpUser = &quot; + FtpUser)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockOneForWrite(&quot;FtpPassword&quot;, vars)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FtpPassword = Text.Encoding.Unicode.GetString(Convert.FromBase64String(vars(&quot;FtpPassword&quot;).Value.ToString().Trim())) &#39; vars(&quot;FtpPassword&quot;).Value.ToString().Trim()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.Unlock()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;MsgBox(&quot;FtpPassword = &quot; + FtpPassword)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.Connections(&quot;FTP Connection Manager&quot;).Properties(&quot;ServerName&quot;).SetValue(ftpConnectionManager, FtpServer)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.Connections(&quot;FTP Connection Manager&quot;).Properties(&quot;ServerPort&quot;).SetValue(ftpConnectionManager, FtpPort)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.Connections(&quot;FTP Connection Manager&quot;).Properties(&quot;ServerUserName&quot;).SetValue(ftpConnectionManager, FtpUser)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.Connections(&quot;FTP Connection Manager&quot;).Properties(&quot;ServerPassword&quot;).SetValue(ftpConnectionManager, FtpPassword)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = Dts.Results.Success&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;End Sub&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/3090185193456499898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/handling-error-while-connecting-to-ftp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3090185193456499898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3090185193456499898'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/handling-error-while-connecting-to-ftp.html' title='Handling error while connecting to FTP server using SSIS FTP task'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-4880516562219480991</id><published>2012-01-18T03:47:00.000-08:00</published><updated>2012-01-18T22:08:59.351-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Catch"/><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Error Handling"/><category scheme="http://www.blogger.com/atom/ns#" term="example"/><category scheme="http://www.blogger.com/atom/ns#" term="Exception"/><category scheme="http://www.blogger.com/atom/ns#" term="handling"/><category scheme="http://www.blogger.com/atom/ns#" term="LockForRead"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS task"/><category scheme="http://www.blogger.com/atom/ns#" term="System"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemException"/><category scheme="http://www.blogger.com/atom/ns#" term="Throw"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Error handling in SSIS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In this article we will learn how to handle the errors in SSIS package. In SSIS when package throws an error then these error details is stored in following variables ErrorCode, ErrorDescription and SourceName.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Below is the code to handle error in SSIS package.&lt;br /&gt;
When a SSIS task encounters an error these error details are stored in three system   variables.&lt;br /&gt;
Dts.VariableDispenser.LockForRead(&quot;ErrorCode&quot;)&lt;br /&gt;
Dts.VariableDispenser.LockForRead(&quot;ErrorDescription&quot;)&lt;br /&gt;
Dts.VariableDispenser.LockForRead(&quot;SourceName&quot;)&lt;br /&gt;
ErrorCode variables returns error code which will be numeric.&lt;br /&gt;
ErrorDescription will give us a brief description of an error encountered by the   SSIS task.&lt;br /&gt;
SourceName give us the task name from which error occured.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Private Sub GetErrorValues(ByRef errNumber As Integer, ByRef errDescription As String, ByRef errSource As String)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForRead(&quot;ErrorCode&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForRead(&quot;ErrorDescription&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForRead(&quot;SourceName&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.GetVariables(vars)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&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; errNumber = CType(vars(&quot;ErrorCode&quot;).Value, Integer)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&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; errDescription = vars(&quot;ErrorDescription&quot;).Value.ToString()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&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; errSource = vars(&quot;SourceName&quot;).Value.ToString()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&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; Throw ex&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finally&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&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; vars.Unlock()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As SystemException&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Throw ex&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/4880516562219480991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/error-handling-in-ssis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/4880516562219480991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/4880516562219480991'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/error-handling-in-ssis.html' title='Error handling in SSIS'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8522197219967614883</id><published>2012-01-18T03:45:00.000-08:00</published><updated>2012-01-18T22:10:50.607-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BaseStream"/><category scheme="http://www.blogger.com/atom/ns#" term="Begin"/><category scheme="http://www.blogger.com/atom/ns#" term="Close"/><category scheme="http://www.blogger.com/atom/ns#" term="File handling"/><category scheme="http://www.blogger.com/atom/ns#" term="FileAccess"/><category scheme="http://www.blogger.com/atom/ns#" term="FileSteam"/><category scheme="http://www.blogger.com/atom/ns#" term="ReadWrite"/><category scheme="http://www.blogger.com/atom/ns#" term="streamwriter"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>File handling in VB.Net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Append data to existing file&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;Here I am using FileStream object to write contents to a file.&lt;br /&gt;
First a FileSteam and File object is created. Using file object we will compare wether   file is exists are not. &lt;br /&gt;
If file exits in the disk then we will truncate it otherwise we will create new file   and allow that file for read and write using file steam object.&lt;br /&gt;
If file already exists then we will open that file in append mode.&lt;br /&gt;
Then we will point the stream reader to&amp;nbsp;last line using streamwriter.&lt;br /&gt;
Example : &lt;span style=&quot;color: deeppink;&quot;&gt;sw.BaseStream.Seek(0, SeekOrigin.End)&lt;br /&gt;
&lt;/span&gt; If file does&#39;t exists then we will create new file and open that file in create mode.&lt;br /&gt;
Then we will point the stream reader to first line using streamwriter.&lt;br /&gt;
Example: &lt;span style=&quot;color: deeppink;&quot;&gt;sw.BaseStream.Seek(0, SeekOrigin.Begin)&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;Public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;Sub&lt;/span&gt;&amp;nbsp;ExportToFile(ByVal oFileName&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;As&lt;/span&gt;&amp;nbsp;String, ByVal myContent&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;As&lt;/span&gt;&amp;nbsp;String)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim file&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;As&lt;/span&gt;&amp;nbsp;FileStream&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim f&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;As&lt;/span&gt;&amp;nbsp;IO.File&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;If&lt;/span&gt;&amp;nbsp;(f.&lt;span style=&quot;color: #2b91af; white-space: pre-wrap;&quot;&gt;Exists&lt;/span&gt;(oFileName))&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file =&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;New&lt;/span&gt;&amp;nbsp;FileStream(FileToWrite, FileMode.Append, FileAccess.&lt;span style=&quot;color: #2b91af; white-space: pre-wrap;&quot;&gt;Write&lt;/span&gt;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;Else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file =&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;New&lt;/span&gt;&amp;nbsp;FileStream(FileToWrite, FileMode.&lt;span style=&quot;color: #2b91af; white-space: pre-wrap;&quot;&gt;Create&lt;/span&gt;, FileAccess.ReadWrite)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sw&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;New&lt;/span&gt;&amp;nbsp;StreamWriter(file, System.Text.Encoding.Default)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;If&lt;/span&gt;&amp;nbsp;(f.&lt;span style=&quot;color: #2b91af; white-space: pre-wrap;&quot;&gt;Exists&lt;/span&gt;(oFileName))&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sw.BaseStream.Seek(0, SeekOrigin.&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;End&lt;/span&gt;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;Else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sw.BaseStream.Seek(0, SeekOrigin.&lt;span style=&quot;color: #2b91af; white-space: pre-wrap;&quot;&gt;Begin&lt;/span&gt;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sw.&lt;span style=&quot;color: #2b91af; white-space: pre-wrap;&quot;&gt;Write&lt;/span&gt;(myContent)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sw.&lt;span style=&quot;color: #2b91af; white-space: pre-wrap;&quot;&gt;Close&lt;/span&gt;()&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; white-space: pre-wrap;&quot;&gt;End&lt;/span&gt;&amp;nbsp;Sub&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;/div&gt;&lt;h2 class=&quot;fontNormal&quot; style=&quot;color: #505050; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;To create file and write to it using FileStream&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;Public Sub WriteErrorReport(ByVal message As String, ByVal FileName As String)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;Dim f As File&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;Dim fstream As FileStream&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;If f.Exists(FileName) Then&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstream = New FileStream(FileName, FileMode.Truncate, FileAccess.ReadWrite)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;Else&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstream = New FileStream(FileName, FileMode.Create, FileAccess.ReadWrite)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;End If&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;Dim sWriter As New StreamWriter(fstream)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;sWriter.BaseStream.Seek(0, SeekOrigin.Begin)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;sWriter.Write(message)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;sWriter.Close()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 7.5pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #636363; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;End Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8522197219967614883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/file-handling-in-vbnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8522197219967614883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8522197219967614883'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/file-handling-in-vbnet.html' title='File handling in VB.Net'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8394941179018968761</id><published>2012-01-18T03:40:00.000-08:00</published><updated>2012-01-18T22:16:01.506-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="comma"/><category scheme="http://www.blogger.com/atom/ns#" term="data"/><category scheme="http://www.blogger.com/atom/ns#" term="separated"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL query"/><category scheme="http://www.blogger.com/atom/ns#" term="SUBSTRING"/><category scheme="http://www.blogger.com/atom/ns#" term="while loop"/><title type='text'>Get the data one by one from a comma separated string using SQL query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In this article we will see how to separate data one by one from a comma separated string.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;First declare a variable to store articles in comma separated values.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;DECLARE @DataString VARCHAR(200)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;SET @DataString = &#39;ASP.NET, VB.NET, C#.NET, SQL, Javascript&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Add comma at last to @DataString&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;SET @DataString = @DataString + &#39;,&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Using while loop through all the topics in @DataString&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;WHILE (CHARINDEX(&#39;,&#39;, @DataString) &amp;gt; 0)&lt;br /&gt;
--&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;CHARINDEX&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;is a SQL inbuilt function which returns the integer value if charecter is present in a string.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;BEGIN&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- To hold each topic&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DECLARE @Topics VARCHAR(30)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- Get the topic one at a time&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SET @Topics = SUBSTRING(@DataString,0, CHARINDEX(&#39;,&#39;, @DataString))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT @Topics&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- Reset the @DataString&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SET @DataString = SUBSTRING(@DataString, CHARINDEX(&#39;,&#39;, @DataString) + 1, LEN(@DataString))&lt;br /&gt;
&lt;br /&gt;
END&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Here is the out put of the above query&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;ASP.NET&lt;br /&gt;
&amp;nbsp;VB.NET&lt;br /&gt;
&amp;nbsp;C#.NET&lt;br /&gt;
&amp;nbsp;SQL&lt;br /&gt;
&amp;nbsp;Javascript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8394941179018968761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/get-data-one-by-one-from-comma.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8394941179018968761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8394941179018968761'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/get-data-one-by-one-from-comma.html' title='Get the data one by one from a comma separated string using SQL query'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-8368729390312411408</id><published>2012-01-18T03:39:00.000-08:00</published><updated>2012-01-18T22:16:39.168-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Looping"/><category scheme="http://www.blogger.com/atom/ns#" term="rows"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL query"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="table"/><title type='text'>Looping through the rows of a table without using cursor in SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In this article we will see ow to loop through the rows of a table without using cursor&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;In this article I will explain how to loop through each rows in a table and get the   data one by one for processing. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- Create a table variable to store user data&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;DECLARE @myTable TABLE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID INT IDENTITY(1,1),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserName VARCHAR(50),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Password VARCHAR(50),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Email VARCHAR(50)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- Insert some data to table to work on that data&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Jack&#39;, &#39;JackPwd&#39;, &#39;jack@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Raj&#39;, &#39;RajPwd&#39;, &#39;raj@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;smith&#39;, &#39;smithPwd&#39;, &#39;smith@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Tom&#39;, &#39;tomPwd&#39;, &#39;tom@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- Get the number of rows in the looping table&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;DECLARE @RowCount INT&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;SET @RowCount = (SELECT COUNT(UserID) FROM @myTable)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;
-- Declare an iterator&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;DECLARE @I INT&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- Initialize the iterator&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;SET @I = 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;
-- Loop through the rows of a table @myTable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;WHILE (@I &amp;lt;= @RowCount)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;BEGIN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- Declare variables to hold the data which we get after looping each record   &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DECLARE @iUserName VARCHAR(50), @iPassword VARCHAR(50), @iEmail VARCHAR(50)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&amp;nbsp; -- Get the data from table and set to variables&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT @iUserName = UserName, @iPassword = Password, @iEmail = Email FROM @myTable WHERE UserID = @I&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- Display the looped data&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT &#39;Row No = &#39; + CONVERT(VARCHAR(2), @I)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT &#39;UserName = &#39; + @iUserName + &#39;, Password = &#39; + @iPassword + &#39; Email = &#39;+ @iEmail&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- Increment the iterator&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SET @I = @I&amp;nbsp; + 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;END&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Here is the output of the above query.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Row No = 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;UserName = Jack, Password = JackPwd Email = jack@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Row No = 2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;UserName = Raj, Password = RajPwd Email = raj@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Row No = 3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;UserName = smith, Password = smithPwd Email = smith@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Row No = 4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;UserName = Tom, Password = tomPwd Email = tom@gmail.com&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/8368729390312411408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/looping-through-rows-of-table-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8368729390312411408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/8368729390312411408'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/looping-through-rows-of-table-without.html' title='Looping through the rows of a table without using cursor in SQL Server'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-4566689226654147249</id><published>2012-01-18T03:37:00.000-08:00</published><updated>2012-01-18T22:31:47.720-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dynamic"/><category scheme="http://www.blogger.com/atom/ns#" term="dynamic query"/><category scheme="http://www.blogger.com/atom/ns#" term="sort"/><category scheme="http://www.blogger.com/atom/ns#" term="sorting"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL query"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="table"/><title type='text'>Implementing sorting in SQL query without using dynamic query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In this article we will learn how to sort the table values with out using dynamic query to improve performance.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;CREATE PROCEDURE SortingExample&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;@sortFiled INT,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;@sortType INT&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- 1 for ASC, 2 for DESC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;AS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;BEGIN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- Create a table variable to store user data&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;DECLARE @myTable TABLE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;UserID INT IDENTITY(1,1),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;UserName VARCHAR(50),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Password VARCHAR(50),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Email VARCHAR(50)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; -- Insert some data to table to work on that data&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Jack&#39;, &#39;JackPwd&#39;, &#39;jack@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Anand&#39;, &#39;AnandPwd&#39;, &#39;raj@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;smith&#39;, &#39;smithPwd&#39;, &#39;smith@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, Password, Email)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Brandy&#39;, &#39;BrandyPwd&#39;, &#39;tom@gmail.com&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; -- If @sortType = 1 then sort the selected field in ASC order&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; -- Otherwise sort the selected field in DESC order&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;IF (@sortType = 1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;BEGIN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;SELECT UserID, UserName, Password, Email FROM @myTable ORDER BY&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; -- To sort numeric field we have to convert int field into varchar field&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;CASE @sortFiled WHEN 1 THEN RIGHT((&#39;000000000000000000&#39; + CONVERT(VARCHAR(30), UserID)),18)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;WHEN 2 THEN UserName&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;WHEN 3 THEN Password&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;END ASC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;END&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;ELSE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;BEGIN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;SELECT UserID, UserName, Password, Email FROM @myTable ORDER BY&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;CASE @sortFiled WHEN 1 THEN RIGHT((&#39;000000000000000000&#39; + CONVERT(VARCHAR(30), UserID)),18)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- To sort numeric field we have to convert int field into varchar field&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;WHEN 2 THEN UserName&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;WHEN 3 THEN Password&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;END DESC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;END&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;END&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&lt;b&gt;See the pics below for the output of above query.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- Sorting numeric column (UserID)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;EXEC SortingExample 1, 1 -- Sorting UserID column in ASSENDING&lt;br /&gt;
EXEC SortingExample 1, 2 -- Sorting UserID column in DESENDING&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://www.eggheadcafe.com/fileupload/-879711293_sort_userID.JPG&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- Sorting varchar column(UserName)&lt;br /&gt;
EXEC SortingExample 2, 1 -- Sorting UserName column in ASSENDING&lt;br /&gt;
EXEC SortingExample 2, 2 -- Sorting UserName column in DESENDING&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://www.eggheadcafe.com/fileupload/-879711293_sort_UserName.JPG&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot; /&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/4566689226654147249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/implementing-sorting-in-sql-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/4566689226654147249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/4566689226654147249'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/implementing-sorting-in-sql-query.html' title='Implementing sorting in SQL query without using dynamic query'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-7634360990526737300</id><published>2012-01-18T03:34:00.000-08:00</published><updated>2012-01-18T22:32:16.194-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="columns"/><category scheme="http://www.blogger.com/atom/ns#" term="dynamic query"/><category scheme="http://www.blogger.com/atom/ns#" term="rows"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL query"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="table"/><title type='text'>Converting table rows as columns in SQL server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #505050; font-family: &#39;Segoe UI&#39;; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;In this article we will learn how to convert table rows into columns as comma&amp;nbsp;separated.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; -- Create a table variable to store user data&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;DECLARE @myTable TABLE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;UserName VARCHAR(50),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;ArticleName VARCHAR(50)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; -- Insert some data to table to work on that data&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, ArticleName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Jack&#39;, &#39;ASP.NET&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, ArticleName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Jack&#39;, &#39;SQL Server&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, ArticleName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Jack&#39;, &#39;C#&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, ArticleName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;Jack&#39;, &#39;VB.NET&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, ArticleName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;David&#39;, &#39;Java&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, ArticleName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;David&#39;, &#39;Java Beans&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;INSERT INTO @myTable(UserName, ArticleName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;VALUES (&#39;David&#39;, &#39;Java script&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;SELECT UserName, ArticleName FROM @myTable&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;-- This is how the table looks after inserting the data&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.eggheadcafe.com/fileupload/-879711293_tbl.JPG&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Now I want all the articles related to Jack and David in a single column.&lt;br /&gt;
This how we can achieve this&lt;br /&gt;
-- Cross join each user with his article. By cross joining we will get all the articles   for each user&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;SELECT DISTINCT A.UserName,Articles FROM @myTable A &lt;br /&gt;
CROSS APPLY &lt;br /&gt;
( &lt;br /&gt;
-- Now get all the articles for each author in XML &lt;br /&gt;
SELECT ArticleName + &#39;, &#39; FROM @myTable B WHERE A.UserName = B.UserName &lt;br /&gt;
FOR XML Path(&#39;&#39;) &lt;br /&gt;
) AS C (Articles)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;The output of the below query is shown below.&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue;&quot;&gt;-- By applying cross join I can able to get all the articles related with Jack and   David.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.eggheadcafe.com/fileupload/-879711293_crossJoin.JPG&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/7634360990526737300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/converting-table-rows-as-columns-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/7634360990526737300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/7634360990526737300'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/converting-table-rows-as-columns-in-sql.html' title='Converting table rows as columns in SQL server'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-3391477966266120410</id><published>2012-01-18T02:16:00.001-08:00</published><updated>2012-01-18T22:32:54.198-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="accept"/><category scheme="http://www.blogger.com/atom/ns#" term="connetion"/><category scheme="http://www.blogger.com/atom/ns#" term="dynamic"/><category scheme="http://www.blogger.com/atom/ns#" term="oledb"/><category scheme="http://www.blogger.com/atom/ns#" term="package"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS package"/><title type='text'>Making SSIS package to accept dynamic oledb connetions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;SSIS oledb connection manager does&#39;t allow user to connect to different oledb servers. If we store oledb connection sting in Config file then it will accepts server name, InitialCatalog and username. But it wont accept password. The is because oledb connection manager has not exposed the oledb password property. To over come this problem we have to override the OLEDB connection manager itself. So that it accepts connections to different oledb servers.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Public Sub Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dim vars As Variables&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dim oledbConnectionManager As ConnectionManager&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;oledbConnectionManager = Dts.Connections(&quot;&amp;lt;oledb connection name&amp;gt;&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&#39; ADDED TO MAKE oledb CONNECTION STRING DYNAMIC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dim oServerName As String&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dim oUserName As String&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dim oInitialCatalog As String&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dim oPassword As String&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.VariableDispenser.LockOneForWrite(&quot;oServerName&quot;, vars)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;oServerName = vars(&quot;oServerName&quot;).Value.ToString().Trim()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;vars.Unlock()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.VariableDispenser.LockOneForWrite(&quot;oInitialCatalog&quot;, vars)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;oInitialCatalog = vars(&quot;oInitialCatalog&quot;).Value.ToString().Trim())&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;vars.Unlock()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.VariableDispenser.LockOneForWrite(&quot;oUserName&quot;, vars)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;oUserName = vars(&quot;oUserName&quot;).Value.ToString().Trim())&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;vars.Unlock()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.VariableDispenser.LockOneForWrite(&quot;oPassword&quot;, vars)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;oPassword = vars(&quot;oPassword&quot;).Value.ToString().Trim()) &#39;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;vars.Unlock()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.Connections(&quot;&amp;lt;oledb connection name&amp;gt;&quot;).Properties(&quot;ServerName&quot;).SetValue(oledbConnectionManager, oServerName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.Connections(&quot;&amp;lt;oledb connection name&amp;gt;&quot;).Properties(&quot;InitialCatalog&quot;).SetValue(oledbConnectionManager, oInitialCatalog)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.Connections(&quot;&amp;lt;oledb connection name&amp;gt;&quot;).Properties(&quot;UserName&quot;).SetValue(oledbConnectionManager, oUserName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.Connections(&quot;&amp;lt;oledb connection name&amp;gt;&quot;).Properties(&quot;Password&quot;).SetValue(oledbConnectionManager, oPassword )&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Dts.TaskResult = Dts.Results.Success&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;End Sub&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/3391477966266120410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/making-ssis-package-to-accept-dynamic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3391477966266120410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3391477966266120410'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/making-ssis-package-to-accept-dynamic.html' title='Making SSIS package to accept dynamic oledb connetions'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-3001608351227846209</id><published>2012-01-18T02:15:00.001-08:00</published><updated>2012-01-18T22:33:52.360-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADO"/><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Eager"/><category scheme="http://www.blogger.com/atom/ns#" term="Eager Loading"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="Explicit"/><category scheme="http://www.blogger.com/atom/ns#" term="Explicit Loading"/><category scheme="http://www.blogger.com/atom/ns#" term="Lazy"/><category scheme="http://www.blogger.com/atom/ns#" term="Lazy Loading"/><category scheme="http://www.blogger.com/atom/ns#" term="service"/><title type='text'>Inside Entity Framework: Lazy Loading, Explicit Loading and Eager Loading</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;When working with Entity Framework, it is important to understand how to hit the database and get the data especially to avoid the performance issues with the applications. That is exactly what I’m going to explain here that there are several ways to hit the database and load the related entities to retrieve the data. Also it is purely developer’s choice which one to use depending on the context to improve the performance.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Lazy Loading:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;With lazy loading enabled, related objects are loaded when they are accessed through a navigation property. The default value of LazyLoadingEnabled is false. However, if we use the EF tools to create a new model and the corresponding generated classes, LazyLoadingEnabled is set to true in the object context&#39;s constructor by default. In this type of loading, each navigation property that we access causes a separate query to be executed against the data source.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Here is the simple example which is based on the assumption that there are three tables&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;O&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;rganizations&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;T&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;enants&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Facilities&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The relationship between these tables is :&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;O&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;rganization&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;has multiple&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;T&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;enants&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;T&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;enants&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;have multiple&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;F&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;acilities&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;(DatabaseEntities context =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;DatabaseEntities())&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;context.ContextOptions.LazyLoadingEnabled =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;var organizations = context.Organizations.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Take&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(100);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;var tenant = context.organizations.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(org =&amp;gt; org.TenantId ==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&quot;T1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;).FirstOrDefault();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: green; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;// If lazy loading was not enabled no Facilities would be loaded for the tenant.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;foreach(Facilities facility&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;tenant.Facilities)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; Console&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&quot;FacilityID: {0}&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;, facility.facilityID);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Explicit Loading:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The following example in this topic show you how to explicitly load related objects by using the LoadProperty method on the ObjectContext. In this the Lazy Loading is set to false and we load the related entities explicitly each time. This example is based on the assumption that there are four tables: organizations, tenants, Facilities and ApplicationInstances. The relationship between these tables is an organization has multiple tenants, the tenants have multiple facilities and the facilities in turn have multiple ApplicationInstances.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;(DatabaseEntities context =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;DatabaseEntities())&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;context.ContextOptions.LazyLoadingEnabled =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;// Disable Lazy Loading&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;context.MergeOption = MergeOption.AppendOnly;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;var organization = context.Organizations.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(org =&amp;gt; org.OrganizationId == “org1”).FirstOrDefault();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;context.LoadProperty(organization, org =&amp;gt; org.Tenants);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;var tenants = organization.Tenants.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(tnt =&amp;gt; tnt.TenantId ==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&quot;T1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;).FirstOrDefault();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;context.LoadProperty(tenants, tnt =&amp;gt; tnt.Facilities);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;var facility = tenants.Facilities.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(fac =&amp;gt; fac.FacilityId ==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&quot;F1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;).FirstOrDefault();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;context.LoadProperty(facility, fac =&amp;gt; fac.ApplicationInstances);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;var applicationInstances = facility.ApplicationInstances.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(appIns =&amp;gt; appIns.ApplicationInstanceId ==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&quot;AI1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;foreach(var item&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;applicationInstances)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt; Console&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&quot;ApplicationInstanceID: {0}&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;, item.applicationInstanceID);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Eager Loading:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;There are circumstances that you may want only one query to hit the database and get the related entities rather than hitting every time. At times it may be a costlier operation to hit the database every time to load the related entities. In this scenario this Eager loading is very handy to do this operation. This example is based on the assumption that there are four tables: organizations, tenants, Facilities and ApplicationInstances. The relationship between these tables is an organization has multiple tenants, the tenants have multiple facilities and the facilities in turn have multiple ApplicationInstances.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;DatabaseEntities context =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;DatabaseEntities();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;context.MergeOption = MergeOption.OverwriteChanges;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;var organization = (from org&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;context.Organizations.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Expand&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;(tnt =&amp;gt; tnt.Tenants.SubExpand(f =&amp;gt; f.Facilities.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&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; SubExpand(ai =&amp;gt; ai.ApplicationInstances)))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;org.OrganizationId ==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&quot;T1&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select org).&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;First&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;foreach (var tnt&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;organization.Tenants)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (var facility&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;tnt.Facilities)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (var item&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;facility.ApplicationInstances)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&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;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;//Do Something&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/3001608351227846209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/inside-entity-framework-lazy-loading.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3001608351227846209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3001608351227846209'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/inside-entity-framework-lazy-loading.html' title='Inside Entity Framework: Lazy Loading, Explicit Loading and Eager Loading'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-5218375602989429147</id><published>2012-01-18T02:14:00.000-08:00</published><updated>2012-01-18T22:34:52.260-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Channel Factory"/><category scheme="http://www.blogger.com/atom/ns#" term="Disposing"/><category scheme="http://www.blogger.com/atom/ns#" term="Invoke"/><category scheme="http://www.blogger.com/atom/ns#" term="invoking"/><category scheme="http://www.blogger.com/atom/ns#" term="Proxy"/><category scheme="http://www.blogger.com/atom/ns#" term="Proxy Invoker"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF Service"/><title type='text'>Disposing WCF service after invoking in .NET</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;There are so many ways available in .NET to invoke WCF services. In this article I will explain how to dispose after consuming or invoking WCF services.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;There are three most commonly used ways to consume a WCF Service in a Service Oriented Application built on the WCF Infrastructure which are as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;a) Referencing WCF Service from VS.NET Studio 2010.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;b) Executing ServiceModel Metadata Utility Tool (Svcutil.exe) and retrieve metadata from a WCF service and use it to create a WCF proxy that can access the service.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;c) Using ChannelFactory&amp;lt;TContract&amp;gt; class used in advanced scenarios that can be used to create more than one channel(to create multiple endpoint listeners).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;There are other approaches which are more advanced and less common to all. One such approach is generating proxy using the Mex service endpoints at runtime and another, worth mentioning is using the discovery API. No matter what approach is being used, the code block must always be executed the Dispose method so that it improves performance and releases memory right away (however, the GC still decides when to collect it).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Problem with invoking the Dispose method is due to the fact that there is no such design restriction in place which ensures the Dispose method always executes. Today, if you invoke Dispose method, you invoke it. If you don’t, you don’t. Well, you know your requirement and you got to execute it at any cost.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;So, this ProxyInvoker class is designed to fill this gap using the power of lambda expression, Execute Around Method pattern and ChannelFactory&amp;lt;TContract&amp;gt; class. Well, there is another approach which is not so clean but it works is using .NET reflection. But this approach much either in a way that you need to specify the method name as string parameter and passing arguments as object[] value. On the other hand, this ProxyInvoker class is really a cool design which does exactly the same thing but works with type safety and performs better. It is a static class which provides two set of public methods that you can use to execute your WCF Service methods. It guarantees that the Dispose method is always executed and the Execute&amp;lt;&amp;gt; methods are all you have it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;First set of methods are defined to configure through configuration file from the serviceModel section:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;object Execute&amp;lt;TContract&amp;gt; (string name, Func&amp;lt;TContract, object&amp;gt; invoker)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;object Execute&amp;lt;TContract, THeader&amp;gt; (string name, THeader header, Func&amp;lt;TContract, object&amp;gt; invoker)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Second set of methods are defined to use explicitly the binding and address objects without a configuration file:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;object Execute&amp;lt;TContract&amp;gt; (Binding binding, EndpointAddress address, Func&amp;lt;TContract, object&amp;gt; invoker)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;object Execute&amp;lt;TContract, THeader&amp;gt; (Binding binding, EndpointAddress address, THeader header, Func&amp;lt;TContract, object&amp;gt; invoker)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Either case you need to write a code block that matches to Func delegate. And that’s where you are executing your type safe WCF methods.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The following code snippet shows the examples:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;ProxyInvoker.Execute&amp;lt;IHelloService&amp;gt; (configName, (proxy) =&amp;gt; {&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;proxy.Eecho(“Hello, World!”); }); ProxyInvoker.Execute&amp;lt;IHelloService&amp;gt;(binding, address, (proxy) =&amp;gt; {&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;proxy.Eecho(“Hello, World!”); });&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Finally, this is how the Execute&amp;lt;&amp;gt; method makes sure that dispose is invoked always:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;     if&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;(header ==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;invoker.Invoke((TContract)proxy);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;     using&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;(OperationContextScope ocs =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;OperationContextScope((proxy&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;IContextChannel)))&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OperationContext.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Current&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.OutgoingMessageHeaders&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;Add&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;( MessageHeader.CreateHeader(headerName, headerNamespace, header));&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;         return &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;invoker.Invoke((TContract)proxy);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;finally&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;
if&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;(proxy !=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;) { proxy.Dispose(); }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/5218375602989429147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/disposing-wcf-service-after-invoking-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/5218375602989429147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/5218375602989429147'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/disposing-wcf-service-after-invoking-in.html' title='Disposing WCF service after invoking in .NET'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-3199354666801156433</id><published>2012-01-18T02:11:00.000-08:00</published><updated>2012-01-18T22:35:26.487-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="c#4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="Code Contract"/><category scheme="http://www.blogger.com/atom/ns#" term="Features"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF Service"/><title type='text'>Code Contracts - .NET Features</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h2 class=&quot;fontNormal&quot; style=&quot;background-color: white; color: #505050; font-family: &#39;Segoe UI&#39;; font-size: 10pt; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;How do you make sure your method guarantees to operate correctly under defined expected input states? Well Code Contracts may help you.&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;One of the fine features provided by .net 4.0 is Code Contracts. First it’s worth thinking a little about what contract means to you. They indicate the expected input states under which the method guarantees to operate correctly.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Contracts act as checked documentation of your external and internal APIs to be shipped. The code contracts are used to improve testing via runtime-checking, enable static contract verification. One of the interesting features of Code Contracts is that it includes a MSIL rewriter (ccrewrite.exe) that post-processes an assembly to change the intermediate language instructions emitted by the compiler. Another great feature of Code Contracts is that you can turn static analysis on and off on a per project basis. I believe this will be important to anyone practicing TDD and BDD.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;A code contract follows design principle of Design By Contract (Dbc). This principle has 3 tenets which code contract also takes care of&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;a) Pre-condition:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Refer to the things it expect to do. These are expressed using Contract.Requires()&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;b) Post-condition:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Refer to the things it guarantees to do. These are expressed using Contract.Ensures()&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;c) Object Invariant:&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Refer to things it maintains.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;These are expressed using Contract.Invariant() Well, the tenets are fine for Dbc and .Net Code Contract follows each of these properly.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;We will examine each of them in this article.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;How?&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The following example illustrates how the three main features of contracts are used.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;a) Pre-condition&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;Rational(int numerator, int denominator)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Contract.Requires(denominator!= 0);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;     this&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.numerator = numerator;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;     this&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.denominator = denominator;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The preconditions are generally used to specify valid parameter values. The example provided makes sure or checks that the denominator is not equal to zero. We can throw error if the condition is not satisfied using the overloaded method as below.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The example provided makes sure or checks that the denominator is not equal to zero. We can throw error if the condition is not satisfied using the overloaded method as below&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;b) Post-condition&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Contract.Ensures(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.Result!= 0);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Basically the postconditions are checked /Executed before exiting the method call. The example provided checks/ Ensures that the result is not equal to zero. We can throw an exception if the condition is not satisfied using an overloaded method.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;Contract.EnsuresOnThrow&amp;lt;ArgumentException&amp;gt; (&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;.Result!=0);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;c) Object Invariant&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;int EMIPercentage&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; get;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;set;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;[ContractInvariantMethod]&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;ObjectInvariant()&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Contract.Invariant(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;. EMIPercentage &amp;gt;= 0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The object invariants are conditions that should hold on each instance of your class whenever the object is visible. They express the condition under which the object is in a “good” state. The methods are identified with [ContractInvariantMethod] attribute. The invariants are checked at the end of each public method call. In the example above the denominator will checked at the end of each public method.&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/3199354666801156433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/code-contracts-net-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3199354666801156433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/3199354666801156433'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/code-contracts-net-features.html' title='Code Contracts - .NET Features'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6025082758036375980.post-5454546702440373184</id><published>2012-01-18T00:44:00.000-08:00</published><updated>2012-01-18T22:36:55.504-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="complex"/><category scheme="http://www.blogger.com/atom/ns#" term="data"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="graph"/><category scheme="http://www.blogger.com/atom/ns#" term="models"/><category scheme="http://www.blogger.com/atom/ns#" term="MongoDB"/><category scheme="http://www.blogger.com/atom/ns#" term="NoSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="object"/><category scheme="http://www.blogger.com/atom/ns#" term="object models"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPs  MS Sql Server"/><category scheme="http://www.blogger.com/atom/ns#" term="RDBM"/><category scheme="http://www.blogger.com/atom/ns#" term="relational"/><title type='text'>NoSQL - MongoDB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 10.5pt; font-weight: bold; text-align: justify; white-space: pre-wrap;&quot;&gt;1. Introduction / Overview&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;In the current software industry that work around design patterns and OOPs there is being a constant battle in converting the data from the database (RDBMs like MS Sql Server/Oracle…etc) into the objects in the object graph and vice versa. For simpler object models this is not a problem but when the model becomes complex it becomes too complicated.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 10.5pt; font-weight: bold; text-align: justify; white-space: pre-wrap;&quot;&gt;2. Description&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;As more and more complication gets added into this conversion of data people started thinking why do I need to always keep my data in the database, why can’t I save it in a non-relational manner, is it necessary for me to go in the relational way. This then lead to a movement which started promoting loosely defined classes of non relational data stores. That movement then got the name NoSQL.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;These NoSQL data stores usually avoid joins, may not require fixed table schemas and typically scale horizontally. As they don’t have joins or fixed table schemas they provide weak consistency guarantees and transactions are always restricted to single data items.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Note:- In case if we need ACID guarantees for our application using NoSQL then we can implement the necessary logics in the middle layer. But if it becomes too complex then we may need to stop with NoSQL and go with the RDBMs approach.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;As this movement started gaining more support, a lot of NoSQL data stores came to the market. These data store are then categorized based on the way they are implemented. The following lists some of the categories and the NoSQL implementations&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Document Store&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Lotus Notes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• CouchDb&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• MongoDb&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Graph&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Neo4j&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• AllegroGraph&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Key/value store on disk&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Tuple space&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Memcachedb&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Redis&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• SimpleDb&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Key/Value cache in RAM&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Memchaced&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Velocity&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Redis&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Eventually consistent key value store&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Dynamo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Cassandra&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Project Voldemort&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Key-value stores implementing Paxos&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Keyspace&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Object database&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Db4o&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• InterSystems Caché&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• Objectivity/DB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;• ZODB&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Note:- The above table is not the complete list and it keeps on growing. I have just highlighted some of the data stores.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;From these implementations we will now take MongoDb and see how we can work it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 10.5pt; font-weight: bold; text-align: justify; white-space: pre-wrap;&quot;&gt;MongoDb&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;MongoDb is an open source document based data store and it combines the features of Key-Value data stores which are fast and highly scalable and RDBMSes which provides rich querying capabilities. It is fully written in C++ and is scalable.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;The data in mongodb are stored as BSON documents which is nothing but binary en- coded serialization of JSON-like documents. BSON, like JSON, supports the embedding of objects and arrays within other objects and arrays. More details on the BSON specification can be obtained from www.bsonspec.org.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;In MongoDB we can have one more database and every database will have one or more collections. Here collections are similar to tables in RDBMSes. Each collection will be a collection of documents.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 10.5pt; font-weight: bold; text-align: justify; white-space: pre-wrap;&quot;&gt;Installation&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;MongoDb is available both in pre-built distribution as well as in source and if available for the following OS Linux, OS X and Windows. Installation of MongoDb using the built distribution is very simple and we will follow it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;The first step in the installation process is to download the distribution from http://www.mongodb.org/display/DOCS/Downloads. Once downloaded, we then need to unzip it in a folder in the harddisk. We then need to create a folder for MongoDb to store the data files. This folder should have read/write and directory creation permission for Mongodb. By default mongodb will store the data in [The drive when the distribution is extracted]\data\db. This directory has to be created manually and required permission should be given. We can also specify a different directory by using the --dbpath flag when starting mongodb server. Once these steps are completed the installation is complete. The following figure displays the installation structure&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 1&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Applications.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; width=&quot;700&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;The following table describes the various applications that are available.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Application&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Description&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Mongo.exe The database shell&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Mongod.exe The core database server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Mongos.exe The auto sharding process&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Mongodump.exe The database dump utility&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Mongorestore.exe The database restore utility&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Mongoexport.exe The database export utility&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Mongoimport.exe The database import utility&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 10.5pt; font-weight: bold; text-align: justify; white-space: pre-wrap;&quot;&gt;Starting and stopping MongoDB&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Starting&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;MongoDB can run as a standard program from the command line. In its simplest form with all the default settings all we have to do is to just mongod from the command prompt and the server will be started.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 2&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_StartCmd.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Note:- by default mongodb server will be listening on port 27017 so make sure that the windows firewall is configured to allow that port.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;If we want to make mongodb look for a different directory for e.g e:\mymongodb for storing the data store then we need to start mongodb using the –dbpath option as follows:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;lt;your installation drive and folder&amp;gt;/bin/mongod –-dbpath e:\mymongodb&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;If we want to make mongodb listen on different port other than the default one then we can use the –port option:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;lt;your installation drive and folder&amp;gt;/bin/mongod –port 1001&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Again make sure that the firewall is configured to allow this port. We can also use –help option to get a list of all the allowed options The figure figure-4 lists the available list of options.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Once the server is started we can verify the server by connecting to it from the mongo console. In order to do that open another command window and go to the installation folder and type mongo as shown in figure 3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure-3&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-3.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 4&lt;/span&gt;&lt;br /&gt;
&lt;img height=&quot;700&quot; src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-4.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Stopping&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Once the server is started we can stop by typing CTRL-C from the command prompt where the server is started or by calling the database method shutdownServer from the mongo console as shown in figure 5&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 5 Mongo console&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-5.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Once the method is called the server will start to shutdown as shown in figure 6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 6 mongod server console&lt;/span&gt;&lt;br /&gt;
&lt;img height=&quot;400&quot; src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-6.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Note: we can call shutdownServer only if we are within the admin database so go to the admin database (by calling use admin from within the mongo console) before calling shutdownServer.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Using mongo console&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;The mongo console is another utility that can be used to work the MongoDB database from the command prompt or also called shell. This utility can be used to do any operation on the MongoDB data store from the command prompt. We have already seen how we can use the mongo console to initiate the shutting down of the server.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;If we have started mongo server with the default options then we can connect to the server by just typing mongo from the command prompt as follows&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;lt;your installation drive and folder&amp;gt;/bin/mongo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;If we have started mongo server with a different port for e.g 1001 then we need to specify them using the –port option as follows&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;lt;your installation drive and folder&amp;gt;/bin/mongo –port 1001&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;By using the –help option we will a list of all the options available&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 7&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-7.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;We can get a list of the available database by using the command show dbs from within the mongo console as shown below&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 8&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-8.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Once we know which database to work with we can use the ‘use’ command to select a database and start working with it&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 9&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-9.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Note :- If MongoDb is started in secure mode by using –auth setting then we can work with the database only if we have access to it and only after we successfully logged into the database.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;From with in the console we can type db.help() to see a list of all the options that are available to work with the database.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 10&lt;/span&gt;&lt;br /&gt;
&lt;img height=&quot;400&quot; src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-10.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Note: All the method calls are case sensitive db.shutDownServer() and db.shutdownServer() are both different so ensure that you use proper case with calling the method.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 10.5pt; font-weight: bold; text-align: justify; white-space: pre-wrap;&quot;&gt;Security&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;The current version of MongoDB only supports very basic security. One can authenticate a username and password only in the context of a particular database. Once authenticated, the user will have full read and write access to that database. If the user has only read only access then he will have only read access to that database. The admin database is a special one if you have access to the admin database then you can work with any database. So it is always advisable to restrict access to this database.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;If we want to use this secure access then we need to start mongod with –auth option&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;lt;your installation drive and folder&amp;gt;/bin/mongod –auth&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Once mongod is started with this option only after the user is authenticated he can work with any database from the console. If not he will get authentication exception as shown in figure below&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 11&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-11.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;We can login into a database by calling the db.auth method from the console and passing in the username and password. Before calling the auth method we need to make the database as the current database by calling use dbname from the mongo console. The following figure shows that in which we have made admin as the current database and logged into it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 12&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-12.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;A return value of 1 says that the login is successful.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;We can add a user to a database by calling the method addUser by passing the required user name, password. The following example creates a user “user1” with password “password1” in the database BlogEngine&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;use BlogEngine&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;db.addUser (“user1”,” password1”)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;In case if you want to give only read-only access then we can pass in the third parameter as true which will give only read only access to the database to the user.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;use BlogEngine&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;db.addUser (“user1”,” password1”, true)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;If we want to update the password then we can call addUser by passing the username to update and the updated password. The add user method when called will check for the user name if the user is not found then it will create a new user or else it will update the password of the user. So we need to be careful when calling addUser method&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;use BlogEngine&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;db.addUser (“user1”,” password123”)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;The above command will update the password of the user “user1” to password123.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;All the authentication information is stored in each database&#39;s system.users collection. So we can get a list of all the users within a collection by listing out all the data with this collection. The following figure lists the users within the admin database&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;Figure 13&lt;/span&gt;&lt;br /&gt;
&lt;img src=&quot;http://eggheadcafe.com/FileUpload/-476500946_Fig-13.jpg&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;We can remove a user by calling the remove method on the users collection and passing in the name of the user. The following command will remove the user “user1” from the BlogEngine database&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;use BlogEngine&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;&amp;gt;db.system.users.remove ({user: “user1”})&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #636363; font-family: &#39;Segoe UI&#39;; font-size: 13px; text-align: justify;&quot;&gt;The default option and recommended one for implementing security in MongoDB is to run the Mongo database in a trusted environment, with no security and authentication. And then ensure only trusted machines can access database TCP ports.&amp;nbsp;&lt;/span&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-wonder.blogspot.com/feeds/5454546702440373184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/nosql-mongodb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/5454546702440373184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6025082758036375980/posts/default/5454546702440373184'/><link rel='alternate' type='text/html' href='http://dotnet-wonder.blogspot.com/2012/01/nosql-mongodb.html' title='NoSQL - MongoDB'/><author><name>DotNet-Wonder</name><uri>http://www.blogger.com/profile/15615869201523279297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>