Re: Offline Application Block

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Derek Anderson (derekganderson_at_hotmail.com)
Date: 03/24/04


Date: Wed, 24 Mar 2004 07:51:02 -0500

The offline application block is definitely designed for a CF app...I
believe that was the primary purpose for it. It is definitely suitable for
the situation you describe and I am considering it for the same situation.
>From my limited understanding after reading the MSDN docs
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/offline.asp,
they do provide a very sophisticated and scalable architecture for
supporting this scenerio, however, you do still have to do a considerable
amount of plumbing code to get your app to work. It does not appear to me as
simple as the Data Access block where you could simply plug in and use it
immediately (and it works beautifully - thanks MS!).
For example, in order to queue up messages while offline, they provide a
provider for using MSMQ or MSDE. This seems a little much for most
situations and a little out of the experience of most developers. I would
much prefer just to have an interface to a xml queue where I can simple take
my datasets and continually save to a xml file while offline. Then, on
reconnect, read the xml back into datasets and update the server. This
sounds very reasonable, but with no understanding of using the XML dom or
namespace, it will take me a while, so it would have been nice to have all
that plumbing written for me ;).
The docs referenced above are really good and seem very thorough. They also
provide a sample app which implements the block.
Another sample app to consider which provides a solution to the offline
problem, is the Pocket TaskVision app:
http://www.microsoft.com/downloads/details.aspx?FamilyId=B35A2D30-339E-41CE-BE8B-0358A94EE4E7&displaylang=en

hope this helps

"Rob Beers" <anonymous@discussions.microsoft.com> wrote in message
news:1BA5CF7F-BACE-4CCE-859B-B2B97D0A6B7B@microsoft.com...
> Is the offline application block designed for a compact framework
application?
>
> If so, would it be suitable for a wireless application that is chatty with
a desktop server that is sometimes disconnected because of RF failures?
>
> --Rob



Relevant Pages

  • Re: Dataset, XML, T-SQL
    ... Online work on a Webservice getting data from SQL2000. ... want go offline he have to be online first and few tables are being ... saved locally in XML. ... Then you can execute all kinds of complex Sql queries against your local server. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Dataset, XML, T-SQL
    ... Online work on a Webservice getting data from SQL2000. ... want go offline he have to be online first and few tables are being ... saved locally in XML. ... then you will need to install a database on the computers so that it can be used for querying when they are offline. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: objekt vorhanden, jedoch beim Onlineladen ohne Nodes
    ... Zugriff über getElementsByTagName, funktioniert auch. ... Sobald ich das ganze jedoch online lade, wird zwar das Objekt gebildet, ... IE funktioniert sowohl online wie auch offline. ... Oder lies, wenn du XMLHttpRequest benutzt, um XML vom Server zu laden, hast du grosse Kontrolle ueber das was passiert, du kannst den HTTP status, statusText, alle HTTP-Antwort-Kopfzeilen auslesen ), und damit laesst sich dann ueblicherweise schnell feststellen, warum eventuell kein XML geparst wurde. ...
    (de.comp.lang.javascript)
  • Dataset, XML, T-SQL
    ... Online work on a Webservice getting data from SQL2000. ... want go offline he have to be online first and few tables are being ... saved locally in XML. ... controling XML with dataset. ...
    (microsoft.public.dotnet.languages.csharp)