Technical support This forum is closed.
Version 1.x > Technical support > Sync service folder creation problem View modes: 
User avatar
Member
Member
cpaul - 3/28/2006 6:02:56 PM
   
Sync service folder creation problem
I know this must have something to do with privileges, but I've granted everything I could think of and I'm still having the problem.

Basically, the dummy directories do not get created when syncing.

My version is 1.7.2091 running on Windows 2003 Server.

Network Service, ASPNET, and Internet guest accounts all have right permission to the web root and its children.

I have anonymous access configured to use the guest account, and is enabled, as well as Integrated windows authentication.

The sync tool does not return an error, but the directory is not created.

Any ideas, manually creating these is getting very frustrating.

User avatar
Guest
admin - 3/29/2006 8:31:04 PM
   
Re: Sync service folder creation problem
Hi Chip,

we will check it in our code. In the meantime, could you please check if you have the following values in your web.config on the target server?

<add key="CMSFriendlyURLStyle" value="" />
<add key="CMSGenerateFriendlyUrlFiles" value="true" />

Thank you.

Best Regards,


User avatar
Member
Member
cpaul - 3/29/2006 9:59:59 PM
   
Re: Sync service folder creation problem
Yes, I have them:

<add key="CMSUseFriendlyURLs" value="true"/>
<add key="CMSFriendlyURLStyle" value="" />

User avatar
Guest
admin - 3/30/2006 8:29:03 AM
   
Re: Sync service folder creation problem
Hi Chip,

could you please specifically check this key:

<add key="CMSGenerateFriendlyUrlFiles" value="true" />

Thank you.

Best Regards,

User avatar
Guest
admin - 3/30/2006 9:24:24 AM
   
Re: Sync service folder creation problem
Hi Chip,

I'm very sorry, there was finally a bug in our code. You may need to update the GetUserID in the ~/SyncWebService/Functions.vb/cs file like this:

'''<summary>Returns User ID of the current user.</summary>
Public Shared Function GetUserID() As Integer
'Changed to fix the Synchronization FriendlyURL directories bug
If HttpContext.Current Is Nothing OrElse HttpContext.Current.Session Is Nothing OrElse
HttpContext.Current.User Is Nothing Then
Return 0
End If

If Web.HttpContext.Current.Session("CMSUserID") Is Nothing And HttpContext.Current.User.Identity.IsAuthenticated = True Then
Functions.SetCurrentUserID(Web.HttpContext.Current.User.Identity.Name)
End If

If Web.HttpContext.Current.Session("CMSUserID") Is Nothing Then
Return 0
Else
Return CType(Web.HttpContext.Current.Session("CMSUserID"), Integer)
End If
End Function

If you're using VS 2003 version, you will need to recompile the SyncWebService project and copy the DLL to the main /bin folder.

We will include this fix in the April update. I'm very sorry for this inconvenience.

Please note: you will still need to have <add key="CMSGenerateFriendlyUrlFiles" value="true" /> in your web.config.

Best Regards,

User avatar
Member
Member
cpaul - 3/30/2006 9:24:52 PM
   
Re: Sync service folder creation problem
In my app web config or the sync service config?

User avatar
Member
Member
cpaul - 3/30/2006 9:38:52 PM
   
Re: Sync service folder creation problem
Nevermind, there is no web.config in my sync service project, since it runs under my application.

User avatar
Member
Member
cpaul - 4/4/2006 12:13:44 AM
   
Re: Sync service folder creation problem
Thanks Petr, this is working.

I am however having a problem synchronizing a new document type. I can create it on both servers, but get a FAILED result when i try to sync. Is there a way to get more detailed information about why it is failing?

User avatar
Guest
admin - 4/5/2006 1:20:08 PM
   
Re: Sync service folder creation problem
Hi Chip,

Thank you for your message. You can get more details on the error when you click on the "FAILED" link. This might be caused by some difference between the document type specification on those servers.

Best Regards,