HRESULT的异常:0x80040013:将R与C#集成时: [英] Exception from HRESULT: 0x80040013: when Integrating R with C#:

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

问题描述

我正在尝试将R与C#Web应用程序接口.我尝试了提供的许多解决方案,但无法通过它.我得到的错误是: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位)安装R 2.15.1
  2. 已安装R_Scilab_DCOM3.0-1B5
  3. 在R/R.15.1/library中加载了rscproxy_1.3-1软件包
  4. 将系统变量路径设置为C:/Program Files/R/R.15.1/bin
  5. 添加了3个COM引用-STATCONNECTORCLNTLib,StatConnectorCommonLib,STATCONNECTORSRVLib代码:

private StatConnectorClass _statconnector =新的STATCONNECTORSRVLib.StatConnectorClass();_statconnector.Init("R");->行显示来自HRESULT的异常:0x80040013

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

推荐答案

几年前,我已经使用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#编写了我自己的测试床,但是我认为它已经过时了,因为<一个href ="http://rservecli.codeplex.com/" rel ="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:将R与C#集成时:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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