Microsoft Content Management Server - CmsDeployExport does not export anything

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > May 2005 > CmsDeployExport does not export anything





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 CmsDeployExport does not export anything
Frank Joppe

2005-05-23, 7:50 am

Hi,

I'm trying to develop a deploy application, using de server side SDAPI,
using the CmsDeployExport class.
Although, whatever I do, nothing is exported, each time I get an export sdo
file of 8kb and an empty report.
I do know that it exports incrementally and I'd tried to remove the export
file to force an initial export of everything, without succes though.
I also tried Stephan's example code, slighly modified to force initial
export of everything (remove the file), still, nothing happens. The results
were exactly the same when I used Stephan's initial code without
modifications (except the filename). Exporting using the site manager does
not give a problem, prooving that my system configuration is not the
problem.

This code is used in a console application:

[STAThread]

static void Main(string[] args)

{

CmsDeployExport cmsDeployExport = new CmsDeployExportClass();

cmsDeployExport.AuthenticateAsCurrentUser();

File.Delete("c:\\tmp2.sdo");

String strPackageName;


strPackageName = "c:\\tmp2.sdo";

CmsDeployExportOptions cmsDeployExportOptions = cmsDeployExport.Options;

cmsDeployExportOptions.IncludeCreatedBy = 1;

cmsDeployExportOptions.IncludeRightsGroups = 3;

String strReportUrl = cmsDeployExport.Export(strPackageName,14400,"");

System.Console.WriteLine(strReportUrl);

Process.Start("iexplore.exe","http://localhost"+strReportUrl);

}



Any ideas?



Regards,

Frank Joppe




Stefan [MSFT]

2005-05-23, 7:50 am

Hi Frank,

the code below will export approved versions of postings that have changed
within the last 14400 minutes = 10 days.
Items older than this will not be exported.
Did you update a posting during this timeframe?

In addition you are not able to export items if the template the posting is
based on is checked out.
Please verify this.

In addition please test if you are able to export the item you expect to be
exported using SiteManager.
Does this work?

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Frank Joppe" <frankj@delta-n.nl> wrote in message
news:%234olE23XFHA.2124@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I'm trying to develop a deploy application, using de server side SDAPI,
> using the CmsDeployExport class.
> Although, whatever I do, nothing is exported, each time I get an export
> sdo file of 8kb and an empty report.
> I do know that it exports incrementally and I'd tried to remove the export
> file to force an initial export of everything, without succes though.
> I also tried Stephan's example code, slighly modified to force initial
> export of everything (remove the file), still, nothing happens. The
> results were exactly the same when I used Stephan's initial code without
> modifications (except the filename). Exporting using the site manager does
> not give a problem, prooving that my system configuration is not the
> problem.
>
> This code is used in a console application:
>
> [STAThread]
>
> static void Main(string[] args)
>
> {
>
> CmsDeployExport cmsDeployExport = new CmsDeployExportClass();
>
> cmsDeployExport.AuthenticateAsCurrentUser();
>
> File.Delete("c:\\tmp2.sdo");
>
> String strPackageName;
>
>
> strPackageName = "c:\\tmp2.sdo";
>
> CmsDeployExportOptions cmsDeployExportOptions = cmsDeployExport.Options;
>
> cmsDeployExportOptions.IncludeCreatedBy = 1;
>
> cmsDeployExportOptions.IncludeRightsGroups = 3;
>
> String strReportUrl = cmsDeployExport.Export(strPackageName,14400,"");
>
> System.Console.WriteLine(strReportUrl);
>
> Process.Start("iexplore.exe","http://localhost"+strReportUrl);
>
> }
>
>
>
> Any ideas?
>
>
>
> Regards,
>
> Frank Joppe
>
>
>
>



Frank Joppe

2005-05-23, 7:50 am

Hi Stephan,

Seems that the 14400 param was my blind spot. I've been experimenting with 0
all the time, as I thought this was "everything". Think I'll start using
everything from the past year instead, for an initial export.

Regards,
Frank

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:%23psP283XFHA.2128@TK2MSFTNGP14.phx.gbl...
> Hi Frank,
>
> the code below will export approved versions of postings that have changed
> within the last 14400 minutes = 10 days.
> Items older than this will not be exported.
> Did you update a posting during this timeframe?
>
> In addition you are not able to export items if the template the posting
> is based on is checked out.
> Please verify this.
>
> In addition please test if you are able to export the item you expect to
> be exported using SiteManager.
> Does this work?
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS:
> http://tinyurl.com/6zj44
> ----------------------
>
>
> "Frank Joppe" <frankj@delta-n.nl> wrote in message
> news:%234olE23XFHA.2124@TK2MSFTNGP14.phx.gbl...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com