从HRESULT异常:0x80040013:用C#Intregating R'当: [英] Exception from HRESULT: 0x80040013: when Intregating R with C#:

查看:285
本文介绍了从HRESULT异常:0x80040013:用C#Intregating R'当:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用C#网络application.I到接口R尝试了许多解决方案所提供,但不能让它through.Error我得到的是:从HRESULT异常:0x80040013

I am trying to interface R with C# web application.I tried many solutions being provided but couldn't get it through.Error I am getting is : Exception from HRESULT: 0x80040013


  1. 适用于Windows XP(32位)
  2. $ b $安装ř2.15.1 b
  3. 安装R_Scilab_DCOM3.0-1B5

  4. 加载rscproxy_1.3-1包中的R / R.15.1 /库

  5. 将系统变量路径为C:/ Program Files文件/ R / R.15.1 /箱

  6. 新增3 COM引用-STATCONNECTORCLNTLib,StatConnectorCommonLib,STATCONNECTORSRVLib
    码:

  1. Installing R 2.15.1 for windows xp (32 bit)
  2. Installed R_Scilab_DCOM3.0-1B5
  3. Loaded rscproxy_1.3-1 package in the R/R.15.1/library
  4. Set the System Variable path to C:/Program Files/R/R.15.1/bin
  5. Added 3 COM references-STATCONNECTORCLNTLib,StatConnectorCommonLib,STATCONNECTORSRVLib Code:

私人StatConnectorClass _statconnector =新STA​​TCONNECTORSRVLib.StatConnectorClass();
_statconnector.Init(R); - >行显示HRESULT中的异常:0x80040013

private StatConnectorClass _statconnector = new STATCONNECTORSRVLib.StatConnectorClass(); _statconnector.Init("R");--> Line shows the Exception from HRESULT: 0x80040013

请帮助图我在哪里我错了!

Please Help to figure me out where i am going wrong!!

推荐答案

我已经使用了COM法若干年前接口到C#中,但我放弃了,因为在每个版本的变化有类似你提到的问题。此外,R(D)COM的发牌制度是有点晦涩对我来说,和.NET / COM / R之旅有太多的角落。

I have used the COM method to interface to c# some years ago, but I gave up because on each version change there were problems similar to that you mentioned. In addition, the licensing scheme of R(D)COM is a bit obscure to me, and the .NET/COM/R tour has too many corners.

我目前的选择是 Rserve ,这是很好的维护,从来没有让我失望。我曾写过我自己的测试床对于C#,但我认为这是过时的,因为< A HREF =htt​​p://rservecli.codeplex.com/相对=nofollow> RserveCLI 是更加完整。

My current choice is Rserve, which is well maintained and has never let me down. I had written my own test bed for c#, but I consider it obsolete because RserveCLI is more complete.

R.NET 在理论上是一个更好的概念的,但对于奇怪的原因是由作者,这是因为许多错误主要是在存储器管理的高度委婉认为是稳定的。太遗憾了,从来没有起飞。

R.NET in theory is a better concept, but for strange reasons it is considered "stable" by the author, which is highly euphemistic because of the many bugs mainly in memory management. Too bad it never took off.

这篇关于从HRESULT异常:0x80040013:用C#Intregating R'当:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆