Technical support This forum is closed.
Version 1.x > Technical support > Content Staging Sync problems View modes: 
User avatar
Member
Member
jhunkele - 4/18/2006 11:12:54 PM
   
Content Staging Sync problems
Hello,
I set up a Dev and Prod environment on the same server. They both point to seperate SQL databases and the Prod URL is on port 80 and the Dev is on port 81. I set up the content staging piece and when I try to sync a change, I get the following error:

System.Web.Services.Protocols.Soap Exception: Server was unable to process request à System.Application Exception: Only SOAP requests are permitted. at Kentico.CMS.SyncWebService.SyncServer.ProcessSync Task (String tasktitle, String, taskType, String taskData) --- End of inner exception stack

I made sure ASP.NET has full access on both subdirectories, I restarted IIS and I restored the database from the same backup and copied the same code to both directories. I only changed the web.config on each to reflect what is needed for Content Stanging to occur.

Any information you can provide would be greatly appreciated. Thanks.

User avatar
Member
Member
jhunkele - 4/21/2006 3:44:14 PM
   
Re: Content Staging Sync problems
The problem was that the web.config files had caode that was added without my knowing it and this code is needed for the Content Staging to occur.

Above the appSettings I needed:

<configSections>
<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>

Then in the system.web section I needed:

<webServices>
<soapExtensionTypes>
<add type="Microsoft.Web.Services2.WebServicesExtension, Microsoft.Web.Services2, Version=2.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="1" group="0" />
</soapExtensionTypes>
</webServices>

Finally, at the bottom of the configuration section I needed:

<microsoft.web.services2>
<security>
<securityTokenManager type="Kentico.CMS.SyncWebService.WebServiceAuthorization, Kentico.CMS.SyncWebService" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" qname="wsse:UsernameToken" />
<x509 allowTestRoot="true" allowRevocationUrlRetrieval="false" verifyTrust="true" />
</security>
</microsoft.web.services2>

I've also run into a lot of problems setting up Content Staging and the Kentico documentation is somewhat limited.

Best way to do it is set up your DEV environment and then duplicate everything for your PROD environment. Make sure ASP.NET has access to both directories and the C:\Windows\temp directory on each machine involved. Also make sure there is a ASP.NET State Service running. There are a lot of gotcha's setting this up, so it's not as easy as the instructions say. Hope this helps someone else. Good luck.

User avatar
Guest
admin - 4/24/2006 5:58:26 PM
   
Re: Content Staging Sync problems
Hi Jeff,

Thank you very much for posting it here.

Best Regards,