Microsoft Content Management Server - System.Runtime.InteropServices.COMException

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > January 2005 > System.Runtime.InteropServices.COMException





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 System.Runtime.InteropServices.COMException
hjain

2004-10-20, 5:48 pm

You explored similar topic in below link, but wasn't resolved fully
resolved

http://groups.google.com/groups? q=...ogle.com&rnum=1

I am using these underlying DLLs wrapped up via .dotnet Interop

C:\Program Files\Microsoft Content Management
Server\Server\bin\Microsoft.ContentManagement.Interop.NRSiteDeployServer.dll
Interop.SITEDEPLOYCLIENTLib.dll

I am exporting using the client side component and importing using
client side component.

I have FileWatcher class that watches a folder to see if there are any
new commands (ie, kick of export / import with the node value in the
file that was just created)

The basic process I am following is

1. Export Node from Authoring Server
2. BackUp Same Node on Public Viewing
3. Import the SDO Package to Public Viewing Server

On random occasions I get the error below. The node to export is
always the same. Currently in development mode, Authoring & Viewing
Server are the same. Thus that means they are the same database
underlying. Most of the time it happens on Import, but rarely it
happens on Export (step 1)

Let me know, if you can help me or redirect me somewhere ....

Regards,
hjain

****************************************
*****
Exception Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147467259
Message: Called a method on an object before it was initialized
TargetSite: System.String Export(System.String, Int32, System.String)
HelpLink: NULL
Source: (File inrexportobjectpackageimpl.cpp, Line 647)

StackTrace Information
****************************************
*****
at Microsoft.ContentManagement.Interop.NRSiteDeployServer.CmsDeployExportClass.Export(String
strPackageFilename, Int32 lTimeIntervalInMin, String strParentChannel)
at XXX.XXX.ContentMangement.SDOExportImport.Server.Export.Process()
in C:\Products\EYOSolution\PortalSolution\S
DODeployment\SDODeploy\Server\Export.cs:line
63
Stefan [MSFT]

2004-10-20, 5:48 pm

Hi,

the error message indicates a problem in your script.
The Export function seems to be called before the object got created or
authenticated.

But I cannot remember that I ever saw this error message before.

Cheers,
Stefan.

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

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"hjain" <hjain@iname.com> wrote in message
news:d8d136cb.0410201003.203a29cd@posting.google.com...
> You explored similar topic in below link, but wasn't resolved fully
> resolved
>
>

http://groups.google.com/groups? q=...ogle.com&rnum=1
>
> I am using these underlying DLLs wrapped up via .dotnet Interop
>
> C:\Program Files\Microsoft Content Management
>

Server\Server\bin\Microsoft.ContentManagement.Interop.NRSiteDeployServer.dll
> Interop.SITEDEPLOYCLIENTLib.dll
>
> I am exporting using the client side component and importing using
> client side component.
>
> I have FileWatcher class that watches a folder to see if there are any
> new commands (ie, kick of export / import with the node value in the
> file that was just created)
>
> The basic process I am following is
>
> 1. Export Node from Authoring Server
> 2. BackUp Same Node on Public Viewing
> 3. Import the SDO Package to Public Viewing Server
>
> On random occasions I get the error below. The node to export is
> always the same. Currently in development mode, Authoring & Viewing
> Server are the same. Thus that means they are the same database
> underlying. Most of the time it happens on Import, but rarely it
> happens on Export (step 1)
>
> Let me know, if you can help me or redirect me somewhere ....
>
> Regards,
> hjain
>
> ****************************************
*****
> Exception Type: System.Runtime.InteropServices.COMException
> ErrorCode: -2147467259
> Message: Called a method on an object before it was initialized
> TargetSite: System.String Export(System.String, Int32, System.String)
> HelpLink: NULL
> Source: (File inrexportobjectpackageimpl.cpp, Line 647)
>
> StackTrace Information
> ****************************************
*****
> at

Microsoft.ContentManagement.Interop.NRSiteDeployServer.CmsDeployExportClass.
Export(String
> strPackageFilename, Int32 lTimeIntervalInMin, String strParentChannel)
> at XXX.XXX.ContentMangement.SDOExportImport.Server.Export.Process()
> in

C:\Products\EYOSolution\PortalSolution\S
DODeployment\SDODeploy\Server\Export
..cs:line
> 63



Laurent

2005-01-25, 5:50 pm

It works!
Thank you very much Stefan.

Cheers,
Laurent

"Stefan [MSFT]" wrote:

> Hi Laurent,
>
> please check this article:
> http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#0816895C-5D1D-4DE8-91E7-ADB0508310D0
>
> Reason Number 1 is your topic.
>
> Cheers,
> Stefan.
>
>
> "Laurent" <Laurent@discussions.microsoft.com> wrote in message
> news:4F8DC2D1-247A-463C-9198-D273CE33020C@microsoft.com...
> allright
> Microsoft.ContentManagement.Interop.Publishing.CmsHttpContextClass.Initializ
> e(String
> authenticationType,
> Microsoft.ContentManagement.Publishing.CmsHttpContext.getCmsHttpContextFromI
> dentity(HttpContext httpContext) +1088
> +251
> Microsoft.ContentManagement.Web.Security.CmsAuthorizationModule.Application_
> OnAuthorizeRequest(Object source, EventArgs e) +82
> System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.
> Execute() +60
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com