locked
Server error in fetching remote contacts: HTTP/1.1 500 Internal Server Error RRS feed

  • Question

  • Setup details:

    1. IIS7
    2. Visual Studio 2010
    3. Microsoft Sync Framework 4.0 (CTP)
    4. Windows 7 Enterprise OS (64 bit)

    List Service example provided with Mircosoft Sync Framework 4.0 (CTP) is deployed in IIS7 server.I have not made any changes in server code.

    From Client App, I am trying to dowload changes from ListSerive by providing URL: http://localhost/listservice/DefaultScopeSyncService.svc/defaultscope/DownloadChanges?userid=ee9f0661-ad72-4b0b-8627-73722520a41b

    I get server error in fetching remote contacts: HTTP/1.1 500 Internal Server Error.

    Has anyone faced this problem before???

    Do I have to make any changes in IIS configurations for ListService to work???

     

    Thursday, March 31, 2011 9:54 AM

Answers

  • I had installed 32 bit version of Sync Framework 2.1 SDK. Installation was successful for me so I thought things are working fine until I got the error I posted above.

    I removed total Microsoft Sync Framework 4.0 (CTP) and installed freshly as mentioned in download instructions for 64 bit installation. That worked for me.


    • Marked as answer by FireArms Thursday, April 7, 2011 6:20 AM
    Thursday, April 7, 2011 6:12 AM

All replies

  • One Update:

    I was debuging the issue. In IIS7 I edited error page settings to return detailed errors for ListService site. I hit same url from IE8: ttp://localhost/listservice/DefaultScopeSyncService.svc/defaultscope/DownloadChanges?userid=ee9f0661-ad72-4b0b-8627-73722520a41b

    I got following error in browser page:

     

    <ServiceError xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Synchronization.Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <ErrorDescription>Microsoft.Synchronization.SyncException Retrieving the COM class factory for component with CLSID {EC413D66-6221-4EBB-AC55-4900FB321011} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). at Microsoft.Synchronization.SyncIdFormatGroup.get_ProviderSyncServices() at Microsoft.Synchronization.SyncSessionContext..ctor(SyncIdFormatGroup idFormats, SyncCallbacks callbacks) at Microsoft.Synchronization.Services.SqlProvider.SqlSyncProviderService.GetChanges(Byte[] clientKnowledgeBlob) at Microsoft.Synchronization.Services.DownloadChangesRequestProcessor.ProcessRequest(Request incomingRequest) at Microsoft.Synchronization.Services.SyncService`1.ProcessRequestForMessage(Stream messageBody) System.Runtime.InteropServices.COMException Retrieving the COM class factory for component with CLSID {EC413D66-6221-4EBB-AC55-4900FB321011} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). at Microsoft.Synchronization.SyncIdFormatGroup.get_ProviderSyncServices()</ErrorDescription>
      </ServiceError>

    I am using above URL from my client app. I am just using browser so I can debug my issue on server side faster.

    Do I have to register any components in my machine to make Microsoft Sync Framework 4.0 with IIS7???

    Thursday, March 31, 2011 10:49 AM
  • you should install Microsoft Sync Framework 2.1 Runtime coz MSF 4.0 CTP depends on it

    i don't remeber if MSF 4.0 CTP instalation did install it or i had to install it manually

    • Proposed as answer by Ganeshan Sunday, April 3, 2011 2:14 AM
    Thursday, March 31, 2011 11:00 AM
  • I had installed 32 bit version of Sync Framework 2.1 SDK. Installation was successful for me so I thought things are working fine until I got the error I posted above.

    I removed total Microsoft Sync Framework 4.0 (CTP) and installed freshly as mentioned in download instructions for 64 bit installation. That worked for me.


    • Marked as answer by FireArms Thursday, April 7, 2011 6:20 AM
    Thursday, April 7, 2011 6:12 AM
  • Hello,

    I'm having what sounds like the exact same problem.  Using sample code as is, just changing db server and connection info.  On DownloadChanges request, getting the http 500 internal server error (on the

    HttpWebResponse

    webResponse = (HttpWebResponse)webRequest.GetResponse();

     

    call.  Per thread, have uninstalled SyncFramework 2.1 SDK as well as 4.0.  Reinstalled 2.1, rebooted, then reinstalled 4.0.  Getting same error code returned.  Do you have any other suggestions? 

    Also, you mentioned that you changed some debug settings in IIS7 that enabled you to see more detailed error info.  On my local machine, I'm actually running IIS 5.1 (XP Pro machine).  Possible to do same with this version? (I've used older versions of Sync Framework with WCF service, still learning debugging techniques in IIS).

    Thanks

    Tuesday, May 10, 2011 2:32 PM