Archive for the ‘Appfabric’ Category

Once you are done with the appfabric setting for monitoring on machine,the most important thing is to make the changes for your wcf service web.config to enable monitoring.Herewith adding the configuration required for that.

<compilation debug="true" targetFramework="4.0"/>
<behavior name="">
<etwTracking profileName="EndToEndMonitoring Tracking Profile"/>
<serviceMetadata httpGetEnabled="true"/>
<serviceHostingEnvironment aspNetCompatibilityEnabled="false"/>
<diagnostics etwProviderId="830b12d1-bb5b-4887-aa3f-ab508fd4c8ba">
<endToEndTracing propagateActivity="true" messageFlowTracing="true"/>
<modules runAllManagedModulesForAllRequests="true"/>
<default enabled="true" connectionStringName="ApplicationServerMonitoringConnectionString" monitoringLevel="EndToEndMonitoring"/>

 Today morning when I wanted to run my wcf service to see the appfabric monitoring,I was shocked to know that my monitoring database is empty & it shows only events logged a month back.Strange! As I am also pretty new to this,was not sure how to start with.Hours later I understood that there is a service running in your system which looks into the web.config of wcf service and stores the events in the monitoring db.It is nothing but,the Appfabric Event Collection Service.Mostly when monitoring events are not storing in database,it could be due to the reason that this service is stopped.I typed Services.msc in the Run Command to take a look.I tried starting manually which did not work and decided to dig into all the properties attached to that & to my suprise when I changed the account password,it started working.

So the conclusion comes this way. Some days ago when I configured the monitoring,my system had a different password & today when it is changed,it’s not able to match that credentials 🙂 If you configure it once & change your account’s password,make sure that you manually go and change this way.

As I was writing a few articles about Appfabric ,someone who was totally new to this asked me  to give an introduction .I am not an expert in this to share every information on what Windows Server Appfabric is.Still,I am trying my best to post more info on these 🙂

Windows Server AppFabric has two parts

  • AppFabric Caching Services, which can speed up access to frequently accessed information such as session data used by an ASP.NET application.
  • AppFabric Hosting Services, making it easier to run and manage services created with Windows Communication Foundation, especially those built using Windows Workflow Foundation.

To know more,you can download a detailed document on this from here
For me it seemed simple at first,but was more complex when I build a caching sample & monitoring sample as it ran into several exceptions & had to solve it to proceed.Infact so many hours  of hardwork to understand properly(May be I am little slow 🙂 lol) .Out of that,I have shared some of my knowledge & you can take a look at the articles under Category “Appfabric” .For Monitoring,I have not shared anything so far.You need to have lil  patience & keep watching this space for my updates 🙂

If you are new to appfabric you may not know about Windows Server AppFabric Configuration Wizard.Hence I am posting this here :)The AppFabric Configuration Wizard enables you to configure the AppFabric hosting and caching features.You can invoke the AppFabric Configuration Wizard from the Installation results page of the AppFabric Setup Wizard or by clicking Start, All Programs, Configure AppFabric.

This gives you more information on the same

Once you are done with configuring caching features of AppFabric,you can manage those with the help of Caching Administration Windows PowerShell.Go to the Start Menu, click All Programs, Windows Server AppFabric, and then right click Caching Administration Windows PowerShell & select Run as administrator.Several commands are available to perform cluster-related operations & you can read more on those here

 Start-CacheCluster command as shown in image starts all cache services in the cluster.

If you remember some days ago I posted about Web Platform Installer (3.0)
which can help you in installations.If you havent downloaded yet,do it from here .

Once you are done with Web Platform Installer installation,choose Products tab & type Appfabric in the search box – select Windows Server AppFabric & click Install.You are done 🙂

The following Windows Firewall rules need to be configured to let the AppFabric Distributed Cache features to work.

  • Remote Service Management 
  •  Windows Server AppFabric: AppFabric Caching Service

 If you are new to Windows 7 & not sure about how to configure firewall rules,please take a look at the following article 

Hope this helps!