本文介绍了从HRESULT异常:0x80040013:用C#Intregating R'当:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想用C#网络application.I到接口R尝试了许多解决方案所提供,但不能让它through.Error我得到的是:从HRESULT异常:0x80040013I 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 适用于Windows XP(32位) $ b $安装ř2.15.1 b 安装R_Scilab_DCOM3.0-1B5 加载rscproxy_1.3-1包中的R / R.15.1 /库 将系统变量路径为C:/ Program Files文件/ R / R.15.1 /箱 新增3 COM引用-STATCONNECTORCLNTLib,StatConnectorCommonLib,STATCONNECTORSRVLib 码:Installing R 2.15.1 for windows xp (32 bit)Installed R_Scilab_DCOM3.0-1B5Loaded rscproxy_1.3-1 package in the R/R.15.1/librarySet the System Variable path to C:/Program Files/R/R.15.1/binAdded 3 COM references-STATCONNECTORCLNTLib,StatConnectorCommonLib,STATCONNECTORSRVLibCode:私人StatConnectorClass _statconnector =新STATCONNECTORSRVLib.StatConnectorClass(); _statconnector.Init(R); - >行显示HRESULT中的异常:0x80040013private 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#,但我认为这是过时的,因为 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'当:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-14 13:05