home recent topics recent posts search faq  

Schaudin.com Forum



register | lost password | |
Messages in this topic - RSS

Home » RC-WinTrans Support » MSBuild Task with CO_E_SERVER_EXEC_FAILURE

For support issues and specific questions related to RC-WinTrans' use, features and functions.
19.02.2015 11:32:49

criebopt
criebopt
Posts: 3
Hello, we are using RC-Wintrans 7.3.95.1 with our automated Microsift TFS Build System based on MSBuild 4.0.
recently we notice the following error Message when running the RC-Wintrans Application from the Build Task.

BuildStep TeamFoundationServerUrl="http://***.corp:8080/tfs/DefaultCollection"
BuildUri="vstfs:///Build/Build/9995" ID="-1"
Message="***language packets started."
Name="WinTrans"
Status="InProgress"
Exception catched!
Message: Retrieving the COM class factory for component with CLSID {FFCD3AE7-16B2-48D3-85BC-6FEFFB4870FA} failed due to the following error:
80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))
.

Source: task_wintrans
ExceptionString: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {FFCD3AE7-16B2-48D3-85BC-6FEFFB4870FA} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). at task_wintrans.x_wintrans.Execute()
StackTrace: at task_wintrans.x_wintrans.Execute()
DBFile: d:\**\*_rc.mdb

How to solve the issue ???
Thanks in advance.

We using following code to control the Application from the msbuild task:

public
override bool Execute()
{
try
{
_rc_wintrans = new RCWinTransLib.Application();
_rc_wintrans.WindowState = 0;
// Run
RunWintrans(strDBFile,strRCFile);
// clean up
_rc_wintrans = null;
GC.Collect(); // ensure the Wintrans resource is removed by the GarbageCollector.
}
catch (System.Runtime.InteropServices.COMException ex)
{
// can't create a RCWinTrans instance
_rc_wintrans = null;
Log.LogMessage(MessageImportance.High, string.Format("Exception catched! \t\t Message: {0} Source: {1} ExceptionString: {2} StackTrace: {3} DBFile: {4}", ex.Message, ex.Source, ex.ToString(), ex.StackTrace, strDBFile));
Log.LogMessage(MessageImportance.High, string.Format("Run RCWintrans \t\t {0}, {1} failed", strDBFile, strRCFile));
}
}

protected bool RunWintrans(string strDBFile, string strRCFile)
{
bool bOk = true;

bOk = _rc_wintrans.IsUpToDate(strRCFile, strDBFile);
bOk = _rc_wintrans.UpdateDatabase(strRCFile, strDBFile);
short[] langidarray = {0};
object LangIDAry = new System.Runtime.InteropServices.VariantWrapper(langidarray);
int nRet = _rc_wintrans.GetTargetLanguages(strDBFile, ref LangIDAry);
foreach (object obj in (object[])LangIDAry)
{
int langID = (short)obj;
bOk = _rc_wintrans.HasTargetLanguage(strDBFile, langID);
if (bOk == true)
{
// returns always zero ?
short Percent = 0;
Percent = _rc_wintrans.IsTranslated(strDBFile, langID);
// Write Targt File Character Encoding
//#define CODING_MBCS 1 // ASCII/MBCS
//#define CODING_UTF8 2 // UTF-8
//#define CODING_UNICODE 3 // Unicode
//#define CODING_JAVA_NATIVE 4 // Java Native ASCII (with Unicode escape sequences)
bOk = _rc_wintrans.WriteTargetFile(
"",
strDBFile,
"",
langID,
0x01, // Options,
iEncoding, // Encoding,
"1.0.0.0", // Version,
"",
"");
}
}
return true;
}
0 permalink
23.02.2015 12:59:31

Support
Support
Administrator
Posts: 210
Hello,

1. try: run this automation code not using the Microsift TFS Build System.

2. try: reduce the code to find the out where it happens or what it causes.

Regards,
Support, Schaudin.com
0 permalink
23.02.2015 15:32:32

criebopt
criebopt
Posts: 3
Hello Support,
on my local pc the code is running succesful without any issue.

searching the web for similar issues I found following link:
http://stackoverflow.com/questions/22062284/server-execution-failed-exception-from-hresult-0x80080005-co-e-server-exec-fa

At my local pc there is a DCOM entry for RC-Wintrans.Application, on the TFS Build machine this entry is missing.
Howto register the DCOM entry for RC-Wintrans.Application ?
Regards,
criebopt
0 permalink
23.02.2015 15:53:42

criebopt
criebopt
Posts: 3
Hello Support,
The Build system is a Winows 2008 R2 Server (64bit), here the error occurs.
On a 32bit Windows 7 installation the error doesn't occour
Regards,
criebopt
0 permalink
24.02.2015 11:00:06

Support
Support
Administrator
Posts: 210
To register the RC-WinTrans 7 Application (COM object) use the following command in the command box:

Rct70.exe /Register

RC-WinTrans will start and will be registered.

Regards,
Support, Schaudin.com
edited by Support on 24.02.2015
0 permalink

Home » RC-WinTrans Support » MSBuild Task with CO_E_SERVER_EXEC_FAILURE





Powered by AspNetForum 6.9.6.0 © 2006-2010 Jitbit Software