System.Runtime.InteropServices.COMException
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > System.Runtime.InteropServices.COMException




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    System.Runtime.InteropServices.COMException  
hjain


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-20-04 10: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.CmsDeployExportCla
ss.Export(String
strPackageFilename, Int32 lTimeIntervalInMin, String strParentChannel)
at XXX.XXX.ContentMangement.SDOExportImport.Server.Export.Process()
in  C:\Products\EYOSolution\PortalSolution\S
DODeployment\SDODeploy\Server\Exp
ort.cs:line
63





[ Post a follow-up to this message ]



    Re: System.Runtime.InteropServices.COMException  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-20-04 10: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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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







[ Post a follow-up to this message ]



    Re: System.Runtime.InteropServices.COMException  
Laurent


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-05 10: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...
a/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.Initial
iz
> e(String 
> authenticationType, 
> Microsoft.ContentManagement.Publishing.CmsHttpContext.getCmsHttpContextFro
mI
> dentity(HttpContext httpContext) +1088 
> +251 
> Microsoft.ContentManagement.Web.Security.CmsAuthorizationModule.Applicatio
n_
> OnAuthorizeRequest(Object source, EventArgs e) +82 
> System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionSte
p.
> Execute() +60 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:48 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register