locked
Problem when implement Silverlight Client via Sync Service RRS feed

  • Question

  • Hi guys.

    I have a Sync Service (create by SyncSvcUtilHelper ) run by a web. When i implement this Sync Service to a Silverlight/WP7 Client a got this message from IE although i put  clientaccesspolicy in this project :

    =============================================================Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Zune 4.7)
    Timestamp: Fri, 29 Apr 2011 02:21:57 UTC


    Message: Unhandled Error in Silverlight Application Another context is open with the same cache path   at Microsoft.Synchronization.ClientServices.IsolatedStorage.StorageHandler.OpenLockFile(String cachePath)
       at Microsoft.Synchronization.ClientServices.IsolatedStorage.StorageHandler..ctor(IsolatedStorageSchema schema, String cachePath, SymmetricAlgorithm encryptionAlgorithm)
       at Microsoft.Synchronization.ClientServices.IsolatedStorage.IsolatedStorageOfflineContext..ctor(IsolatedStorageSchema schema, String scopeName, String cachePath, Uri uri, SymmetricAlgorithm encryptionAlgorithm)
       at Microsoft.Synchronization.ClientServices.IsolatedStorage.IsolatedStorageOfflineContext..ctor(IsolatedStorageSchema schema, String scopeName, String cachePath, Uri uri)
       at defaultscope.defaultscopeOfflineContext..ctor(String cachePath, Uri serviceUri)
       at SilverlightApplication.MainPage..ctor()
       at SilverlightApplication.App.Application_Startup(Object sender, StartupEventArgs e)
       at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
    Line: 1
    Char: 1
    Code: 0
    URI: file:///E:/Project/Sync/ShoppingList/SilverlightApplication/Bin/Debug/SilverlightApplicationTestPage.html
    =============================================================

    Please help me.

    Thanks

    Friday, April 29, 2011 3:29 AM

Answers

  • Can you close all Sync clients, then delete the caches by going into the Silverlight settings and try again?

    The error looks like a concurrency error on the client side. The Context makes sure that only one active connection is made to the context for a given cache path - do you have two concurrent contexts active at a given time?

    Tuesday, May 3, 2011 4:28 PM