I have a C# program that requires the run of a logistic regression. I have downloaded the R 2.11 package, and have added the following references to my code: STATCONNECTORCLNTLib; StatConnectorCommonLib; STATCONNECTORSRVLib; In my code I have: StatConnector scs = new STATCONNECTORSRVLib.StatConnectorClass(); scs.Init("R"); The init step returns the below error which seems to indicate a connection failure. System.Runtime.InteropServices.COMException was unhandled Message="Exception from HRESULT: 0x80040013" Source="Interop.STATCONNECTORSRVLib" ErrorCode=-2147221485 Any ideas? Jeff Abrams Research Engineer Auction Analytics, Microsoft [[alternative HTML version deleted]]
This is not about R, but about the StatConnector project which has its own mailing lists. On Fri, 7 May 2010, Jeff Abrams wrote:> I have a C# program that requires the run of a logistic regression. I have downloaded the R 2.11 package, and have added the following references to my code: > > STATCONNECTORCLNTLib; > StatConnectorCommonLib; > STATCONNECTORSRVLib; > > In my code I have: > StatConnector scs = new STATCONNECTORSRVLib.StatConnectorClass(); > scs.Init("R"); > > The init step returns the below error which seems to indicate a connection failure. > > System.Runtime.InteropServices.COMException was unhandled > Message="Exception from HRESULT: 0x80040013" > Source="Interop.STATCONNECTORSRVLib" > ErrorCode=-2147221485 > > Any ideas? > > > Jeff Abrams > Research Engineer > Auction Analytics, Microsoft > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Jeff Abrams <jeffab <at> microsoft.com> writes:> > I have a C# program that requires the run of a logistic regression. I havedownloaded the R 2.11 package, and> have added the following references to my code: > > STATCONNECTORCLNTLib; > StatConnectorCommonLib; > STATCONNECTORSRVLib; > > In my code I have: > StatConnector scs = new STATCONNECTORSRVLib.StatConnectorClass(); > scs.Init("R"); > > The init step returns the below error which seems to indicate a connectionfailure.> > System.Runtime.InteropServices.COMException was unhandled > Message="Exception from HRESULT: 0x80040013" > Source="Interop.STATCONNECTORSRVLib" > ErrorCode=-2147221485 > > Any ideas? > > Jeff Abrams > Research EngineerHi, I have solved this problem wit R 2.9 by running the com server installation in Win 7 Compatibility. Everything went perfectly fine until I have installed the latest version of R, 2.13. The problem was back. I can see that your post is a couple of weeks old. Have you managed to solve this problem?> Auction Analytics, Microsoft > > [[alternative HTML version deleted]] > >
Please discuss statconnDCOM related problems on its dedicated mailing list. You can subscribe at rcom.univie.ac.at On 5/22/2011 2:31 PM, Andra wrote:> > Jeff Abrams <jeffab <at> microsoft.com> writes: > >> >> I have a C# program that requires the run of a logistic regression. I have > downloaded the R 2.11 package, and >> have added the following references to my code:
Jeff Abrams <jeffab <at> microsoft.com> writes:> > I have a C# program that requires the run of a logistic regression. I havedownloaded the R 2.11 package, and> have added the following references to my code: > > STATCONNECTORCLNTLib; > StatConnectorCommonLib; > STATCONNECTORSRVLib; > > In my code I have: > StatConnector scs = new STATCONNECTORSRVLib.StatConnectorClass(); > scs.Init("R"); > > The init step returns the below error which seems to indicate a connectionfailure.> > System.Runtime.InteropServices.COMException was unhandled > Message="Exception from HRESULT: 0x80040013" > Source="Interop.STATCONNECTORSRVLib" > ErrorCode=-2147221485 > > Any ideas? > > Jeff Abrams > Research Engineer > Auction Analytics, Microsoft > > [[alternative HTML version deleted]] > >For those who say this is not an R issue, it is... I believe this is a issue with the R registration within Windows. I have all the requisite .dll's in the R install file, and have the R_USER and R_HOME environment variables, yet I am still seeing this issue. I can use other .dll's in this way, so this is NOT a COM issue. It is an R problem. Any thoughts would be helpful.