Previous Next

Thread: Configure IIS for Merge replication with SQL Server 2005 CE

Last post 05-12-2008 10:16 PM by grahowler. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 05-10-2008, 7:14 PM

    Configure IIS for Merge replication with SQL Server 2005 CE

    Hi

    I've been trying to follow the guide here: http://msdn.microsoft.com/en-us/library/bb226707.aspx to configure IIS for Merge replication with SQL Server 2005 CE.

    I've had several problems when using ConnWiz30.exe. I'm using IIS7 on Vista, and I have selected all options except "Application Development Features" when turning IIS on in Vista.

    The How-To instructs you to set up new a virtual directory during the process, however I have not been able to do that because in the guide To configure IIS for SQL Server Compact Edition synchronization > Point 14 I get the error "The program cannot open the required dialog box because no locations can be found. Close this message, and try again."

    I can get around this problem by creating a new virtual directory using IIS Manager first. When I do that and click "Test Connection" I get a warning "Cannot Verify Access to path (C:\inetpub\wwwroot\MyDir)." with the details...

    The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain>\<computer_name>$ has Read access to the physical path. Then test these settings again.

    However if I click "Connect As" and enter AdministratorUsername/AdministratorPassword the warning goes and the test connection works fine.

    Then, I can complete the How-To by selecting the existing directory, which is adds IUSER by default. The problem then is that when i navigate to http://localhost/Sync/sqlcesa30.dll as the guide says to, to check the IIS config, instead of getting the message indicated in the How-To I get a File Download dialog box, so it appears IIS is not configured correctly.

    Any help is greatly appreciated.

    Thanks!

  • 05-11-2008, 10:19 AM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 1,090

    Re: Configure IIS for Merge replication with SQL Server 2005 CE

    Did you turn on execute permissions in the handlers UI?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-11-2008, 5:58 PM In reply to

    Re: Configure IIS for Merge replication with SQL Server 2005 CE

    Hi Anil, thanks for the reply.

    I'm not sure what you mean by "handlers UI". Do you mean execute persmissions on the directory using windows explorer or IIS Manager?

    Thanks

  • 05-12-2008, 12:56 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 1,090

    Re: Configure IIS for Merge replication with SQL Server 2005 CE

    IIS Manager -> Handler Mappings -> Edit Feature Permissions

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-12-2008, 7:26 PM In reply to

    Re: Configure IIS for Merge replication with SQL Server 2005 CE

    Gotcha

    I've gone IIS Manager > MyVirtualDir > Handler Mappings > Edit Feature Permissions

    Execute was already selected. I reset it, restarted IIS, same result.

    Frustrating.

  • 05-12-2008, 8:18 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 1,090

    Re: Configure IIS for Merge replication with SQL Server 2005 CE

    Have you installed the "ISAPI extension" feature under IIS in control panel -> programs and features -> add/remove windows components?  And if so, what is your output of the following 2 commands (from an elevated command prompt)

    %windir%\system32\inetsrv\appcmd.exe list config -section:system.webServer/handlers
    %windir%\system32\inetsrv\appcmd.exe list config "Your Site Name/YourVdir" -section:system.webServer/handlers

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-12-2008, 10:16 PM In reply to

    Re: Configure IIS for Merge replication with SQL Server 2005 CE

    Anil, thank you so much for your persistence.

    ISAPI Extensions were not enabled, and that sorted it out.

    Appreciate your input.

Page 1 of 1 (7 items)
Page view counter