.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to implement caching service in .net 3.5/4.0 framework ?

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :.NET Framework


I need to develop a dedicated caching service to cache the data(monitoring data of application)  from

Database ( SQL Server 2005) which can then be consumed by 2-3 windows services( .net 3.5 WCf services)

so that they do not need to call DB repeatedly. So basically it is a additonal level of service layer

between these services and DB to reduce the performance penalty of calling DB   The data in Database is

large and very dynamic (events continously inserted in DB during the day) which we want to cache. Each

of the consuming windows service is dependent on another ( one service is retrieving data from one Table

in Db and aggegating the data and putting  in another table in DB which would then be consumed by

another service) . we have the following requirements :
1. Could have either Push or Pull model for pushing or retrieving data to/from DB and Services.
2. The cache must reduce the overall impact to the DB and load data by delta, rather than reloading the

data completely
3.The cache data must be updated if the source data in DB has changed. Sql cache expiration policy must

be defined.
4.Should have asynchronous method calls for Data retrieval from DB and cache update to minimise wait

5.The cache must support parallel requests to a single DB<

View Complete Post

More Related Resource Links

Any framework for creating a job scheduler service?


Just curious to know if there was any official Microsoft code blocks, classes, or such for writing a service that runs other assemblies or WCF services?  That can be configured easily from a web page, pre-coded, for running tasks at certain times on certain recurring intervals?  I've already built one but am open to anything done better- which I'm sure there is.  Thanks!!!

Geneva Framework: Building A Custom Security Token Service


A Security Token Service, or STS, acts as a security gateway to authenticate callers and issue security tokens carrying claims that describe the caller. See how you can build a custom STS with the "Geneva" Framework.

Michele Leroux Bustamante

MSDN Magazine January 2009

.NET Framework-Part 2: Microsoft .NET Framework Delivers the Platform for an Integrated, Service-Ori


This article completes the .NET Framework overview begun in the September issue. The common language specification and ILDasm, the MSIL disassembler, are discussed-as well as how metadata, manifests, and assemblies simplify deployment and versioning. Security, which is integral to the design of .NET, is examined extensively, followed by a walk through the development of a single assembly containing multiple files. Finally, the way managed and unmanaged code work together, and the benefits of using each, including interoperablity with unmanaged code, are described.

Jeffrey Richter

MSDN Magazine October 2000

Microsoft .NET Framework: Delivers the Platform for an Integrated, Service-Oriented Web


The Microsoft .NET Framework is a new platform for building integrated, service-oriented applications to meet the needs of today's Internet businesses; apps that gather information from, and interact with, a wide variety of sources, regardless of the platforms or languages in use. This article, the first of a two part series, illustrates how the .NET Framework enables you to quickly build and deploy Web services and applications in any programming language. Microsoft Intermediate Language and JIT compiler, which make this reuse possible, are described as well as managed components, assemblies, and the Common Type System (CTS).

Jeffrey Richter

MSDN Magazine September 2000

Net Framework 3.5 service pack Failure to instal

Microsoft .NET Framework 3.5 Service Pack 1 and .NET Framework 3.5 Family Update for .NET versions 2.0 through 3.5 (KB951847) x86 tries to instal but fails without any reason as I am running XP professional can anyone explain why as I have all the previos updates. after trying to instal I come up with this error Installation Failure Error Code: 0x80070645

.net Framework 2.0 Service Pack 2

I am trying to clear space on my old hard drive. I have Service Pak 2, 3 & 3.5. Question is can I delete the older versions without jepordizing the performance of my computer? cannudigit

KB981145 for Microsoft .NET Framework 3.5 Service Pack 1 still needed for .Net Framework 4.0

Hi, KB981145 is hotfix for Microsoft .NET Framework 3.5 Service Pack 1. Its not included in Update for Microsoft .NET Framework 3.5 Service Pack 1. I want to know that Microsoft .NET Framework 4 enhancements/imporvements cover KB981145 or not. In other words, Will using .Net 4 instead of earlier versions will solve the issues fixed by KB981145 or not? Thanks

Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)

I have been trying to install   Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)   since it was released but downloads ok but it will not install. Everytime installation of this update fails!   Help...

Is it possible to implement your own version of the Managed Metadata Service?

Hi, It would be nice to provision a new instance of the Managed Metadata Service where the service is not implemented by Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplication, but a custom provider. Is it possible to expose your own service as a Managed Metadata Service?

Entity Framework POCO and WCF Data Service - Lazy-loading (expand?) related entities?

I've followed ScottGu article on creating an Entity Framework POCO classes for NerdDinners (right now there are only 2 classes, Dinner and RSVP. I then created a WCF Data Service class, which points to my EF class (NerdDinner), everything is working fine, except I can't lazy-load or expand related entities. For example, I want to get all load all the Dinners and their related RSVPs, something like this throw an error:var result = (from d in db.Dinners.Expand("RSVPs")                      select d);The error is a null reference error:at System.Data.Services.Serializers.SyndicationSerializer.WriteObjectProperties(IExpandedResult expanded, Object customObject, ResourceType resourceType, Uri absoluteUri, String relativeUri, SyndicationItem item, DictionaryContent content, EpmSourcePathSegment currentSourceRoot) at System.Data.Services.Serializers.SyndicationSerializer.WriteEntryElement(IExpandedResult expanded, Object element, ResourceType expectedType, Uri absoluteUri, String relativeUri, SyndicationItem target) ... ... ...Any idea why or what I need to do to load related contents?Thank you very much.

What is the most uptodate .NET Framework I can use on Windows XP with latest service pack?

Hi, I am doing consultancy work for a small company that still uses Windows XP. I want to develop a .NET Windows Application for them in C#. Can anyone tell me what is the latest version of .NET Framework I can use on an XP machine (with latest SP). I will be developing code on a Vista Home Machine and will port it to this XP machine. If you know where Microsoft keeps info on this then that would be useful. Thanks. John. 

WCF Service (4.0 framework) in WIndows service not being discovered by other service in same soluti

I have a solution which has two windows services.  The first one will consume the second one which is a WCF service. The WCF Service is setup to use net.pipe as the protocol.  Both services will run on solid state systems. I'm building all of this in Visual Studio 2010.  When I finished the service and built it I found that when I tried getting the service reference in the other server, I VS could not find any services in the solution???!!!!  Did I create the project incorrectly?  I followed the MSDN tutorial and created the project as a Windows Service.

Failed Install Microsoft .NET Framework 3.5 Service Pack 1 and .NET Framework 3.5 Family Update (KB9


Hi not sure if i posted in right area ( sorry if not)

Have been trying to install Failed Install Microsoft .NET Framework 3.5 Service Pack 1 and .NET Framework 3.5 Family Update (KB951847) x86 for a while now i keep getting the error code 800B0100. I have tried various step to install but no luck as of yet. I have ran the clean up other things people have recommended but none of them have helped. Here is what my  CheckSUR log says.

Checking System Update Readiness.
Binary Version 6.0.6002.22441
Package Version 9.0
2010-09-20 18:10

Checking Windows Servicing Packages

Checking Package Manifests and Catalogs

Checking Package Watchlist

Checking Component Watchlist

Checking Packages
(f) CBS MUM Missing 0x00000002 servicing\Packages\ws4-update-MiniLP~31bf3856ad364e35~x86~en-US~7.0.6001.16503.mum  
(f) CBS MUM Missing 0x00000002 servicing\Packages\ws4-update-TopLevel~31bf3856ad364e35~x86~~7.0.6001.16503.mum  
(f) CBS MUM Missing 0x00000002 servicing\Packages\ws4-update~31bf3856ad364e35~x86~en-US~7.0.6001.16503.mum  
(f) CBS MUM Missing 0x00000002 servicing\Packages\ws4-update~31bf3856ad364e35~x86~~7.0.6001.16503.mum  


WCF Router service - How to implement Load Balance



Do you know if is possible to implement a Load Balance using this WCF Router Service ?

I know that WCF Router Service has routing and backuplist feature. 

By the way, how does WCF Routr Service deal with services that have Callback Contract ?


Luis Filipe (from Brazil: Sorry about the English!)

Can not print. All of the sudden Print spooler service not running. and .Net Framework issues


I am running Windows XP home SP3.  About 7 months ago I connected an HP printer to my computer along with a pdf print program.  Everything was fine until about 2 months ago. One day I tried to print and I received an error stating that Operation could not be completed.  The print spooler service is not running.  I cannot redownload my printer and all properties in the printer box in control panel is empty.  I have run the Microsoft fix it scan and others, etc.  They say it starts the spooler but it does not.  I still cannot add a printer nor print.  My printer recognizes my computer but not the other way around.  One scan said:  Printer:  Troubleshoot problems preventing from completing; Package Version: 2.0 Microsoft.  I have tried to repair .NET Framework 2.0 SP2 and it says cannot find netfx20a_x86.msi and then earlier tried to repair .NET Framework 3.5 but problem there as well.  I am not 100% computer savy but have been to always handle my own.  Would like uninstall all .NET Framework but am extremely afraid of what would happen.  PLEASE SOMEONE HELP ME.  I have been having problems for several months.  Also, I cannot defrag my drive to not enough space, yet I really do not have much on my hard drive so do not know what to do there either.  PLEASE HELP ME QUICKLY- BEFORE I LOO

Add Service reference not updaing the client apps web.config file in .Net Framework 4.0


Hi Team

I am doing some experiments with WCF on .Net 4.0. I have created a service in 4.0 and add a new empty web application to consume my Service. When i added a service reference from the IDE, i can see the web.config file is not updated with the Servcie end points. How do i solve this issue?

My web.config in the client looks like this after adding the service reference.

How to implement a subscription service


Hello all,

How do I setup a two way communication channel so that my clients can subscribe on the host? What we need to do is to maintain a list of clients so that the host can send a notification when it is shutting down. If someone could post some skeleton code to get me started, I would appreciate it. Thanks!


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend