|
Home > Archive > Microsoft Content Management Server > November 2006 > SDAPI - Windows Service
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
SDAPI - Windows Service
|
|
| Brian Fernandes 2006-11-13, 8:43 am |
| We have three production CMS servers - South Africa, Europe and in the US.
The idea behind the system noted below is to automatically push postings
from either SA or the EU to the US server once approved.
This system runs under a Window service and MSMQ - once a posting is
approved, a message is sent to a queue. The service polls every so often for
new "export notification" messages; when received, the appropriate posting
is then exported using the SDAPI, and then forwarded onto the US server via
another MSMQ queue.
This service works perfectly in the EU, but is failing in SA - we're getting
the following in the event log:
"MCMS Site Deployment - Error occured. System.InvalidOperationException:
There was an error generating the XML document. --->
System.InvalidCastException: Specified cast is not valid.". Exporting works
fine in site manager.
In an attempt to find the problem, a simple console application was created
that uses the same basic premise (read: code base) as the service - monitor
queue, export posting, send to another queue.
The frustrating bit: the console application, when running under the same
account as the Windows service, works perfectly - and the Windows service
fails.
Any guidance would be much appreciated,
Thanks...
Brian
| |
| Stefan Goßner [MSFT] 2006-11-14, 7:27 am |
| Hi Brian,
please open a support case for this.
We might need to analyze a memory dump to see what's going on.
Cheers,
Stefan
"Brian Fernandes" <axionatananzi.co.za> wrote in message
news:eLC%23UTyBHHA.4844@TK2MSFTNGP02.phx.gbl...
> We have three production CMS servers - South Africa, Europe and in the US.
> The idea behind the system noted below is to automatically push postings
> from either SA or the EU to the US server once approved.
>
> This system runs under a Window service and MSMQ - once a posting is
> approved, a message is sent to a queue. The service polls every so often
> for new "export notification" messages; when received, the appropriate
> posting is then exported using the SDAPI, and then forwarded onto the US
> server via another MSMQ queue.
>
> This service works perfectly in the EU, but is failing in SA - we're
> getting the following in the event log:
> "MCMS Site Deployment - Error occured. System.InvalidOperationException:
> There was an error generating the XML document. --->
> System.InvalidCastException: Specified cast is not valid.". Exporting
> works fine in site manager.
>
> In an attempt to find the problem, a simple console application was
> created that uses the same basic premise (read: code base) as the
> service - monitor queue, export posting, send to another queue.
>
> The frustrating bit: the console application, when running under the same
> account as the Windows service, works perfectly - and the Windows service
> fails.
>
> Any guidance would be much appreciated,
> Thanks...
>
> Brian
>
| |
| Brian Fernandes 2006-11-14, 7:27 am |
| Will do Stefan - thanks 
"Stefan Goßner [MSFT]" <stefang@online.microsoft.com> wrote in message
news:eV0q1q8BHHA.3836@TK2MSFTNGP02.phx.gbl...
> Hi Brian,
>
> please open a support case for this.
> We might need to analyze a memory dump to see what's going on.
>
> Cheers,
> Stefan
>
>
> "Brian Fernandes" <axionatananzi.co.za> wrote in message
> news:eLC%23UTyBHHA.4844@TK2MSFTNGP02.phx.gbl...
>
>
| |
| Brian Fernandes 2006-11-27, 7:20 am |
| Case has been opened & resolved.
For reference purposes, solution was to rename/remove the
"NRSiteDeployServer.dll" assembly in the service installation location; i.e.
set the server-side site deployment assembly reference's "CopyLocal"
property to "false".
Thanks Stefan & Yann-Loïc 
"Stefan Goßner [MSFT]" <stefang@online.microsoft.com> wrote in message
news:eV0q1q8BHHA.3836@TK2MSFTNGP02.phx.gbl...
> Hi Brian,
>
> please open a support case for this.
> We might need to analyze a memory dump to see what's going on.
>
> Cheers,
> Stefan
>
>
> "Brian Fernandes" <axionatananzi.co.za> wrote in message
> news:eLC%23UTyBHHA.4844@TK2MSFTNGP02.phx.gbl...
>
>
|
|
|
|
|