Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4105542
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:15:38+00:00 2026-05-20T21:15:38+00:00

I need to interface R to some C# application. I installed rscproxy_1.3 and R_Scilab_DCOM3.0-1B5

  • 0

I need to interface R to some C# application. I installed rscproxy_1.3 and R_Scilab_DCOM3.0-1B5 added COM references to the STATCONNECTORCLNTLib, StatConnectorCommonLib and STATCONNECTORSRVLib but I still cannot get it working.

When I run following test program:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//COM references
using STATCONNECTORCLNTLib;
using StatConnectorCommonLib;
using STATCONNECTORSRVLib;

namespace R_TESTING
{
    class Program
    {
        static void Main(string[] args)
        {
            StatConnector sc1 = new STATCONNECTORSRVLib.StatConnectorClass();         
            sc1.Init("R");
        }
    }
}

I get this exception:

Unhandled Exception: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040013
   at STATCONNECTORSRVLib.StatConnectorClass.Init(String bstrConnectorName)

Thanks in advance.

UPDATE:
Ok, still no luck.
I will try to explain what I did so far.

Installed R-2.12.2-win.exe from
rproject to the C:\Program
Files\R\R-2.12.2

Downloaded rscproxy_1.3-1.zip and
copy/pasted it to the C:\Program
Files\R\R-2.12.2\library

Installed R_Scilab_DCOM3.0-1B5.exe to
the C:\Program Files (x86)\R\(D)COM
Server

With Scilab comes a basic test. I tried to run it but I got following error:

Loading StatConnector Server… Done
Initializing R…Function call failed
Code: -2147221485 Text: installation
problem: unable to load connector
Releasing StatConnector Server…Done

Than I looked in the PATH/System Variables and found no path/R_HOME/R_USER info. Also, I couldn’t find anything R related in the registry.

I guess I am doing something terribly wrong, so I desperately need help from you guys.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:15:38+00:00Added an answer on May 20, 2026 at 9:15 pm

    Ok, I solved it finally.
    The problem is that R (D)Com doesn’t work with current version of R. I installed 2.11.1 and it worked out of box.

    Thanks a lot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to do some simple DES encryption in C to interface with some
I have a COM interface and need to add an accessor method to it.
If I need to develop JavaFx application with rich user interface (3D shapes ...
I need some globals in my Objective-C application. For that purpose, I've created class
I need an accurate timer to interface a Windows application to a piece of
I need some advice on the implementation of the Dispose method. In our application
I am currently writing user interface in ember.js and need some help in server-side
I need an interface to mongodb by which I can treat data in a
I’m building a custom robotish machine that has 8 switches I need to interface
I am using Python 3.1.1 on Mac OS X 10.6.2 and need an interface

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.