Problem with connecting to Eviews installed on another computer

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

dauren
Posts: 17
Joined: Mon Sep 03, 2012 5:01 am

Problem with connecting to Eviews installed on another computer

Postby dauren » Mon Dec 19, 2016 4:20 am

Hi all!

In the post: http://forums.eviews.com/viewtopic.php? ... 690#p55690
Steve wrote:
Hi Patrice:

If I'm understanding you correctly, you want to write a .NET program that uses COM Automation to run EViews that is installed on another computer? If so, what you're asking for is Distributed COM Automation (DCOM) or Remote Automation and the quick answer to this is yes, with some important restrictions.

You need a install a local copy of the EViewsMgr.dll on each of your remote systems in order to get Distributed COM (DCOM) to work. EViews7.exe can be kept on the server and run via DCOM but it is restricted to a single instance at a time (regardless of which type of EViews license you have). This means that while two or more remote users can access EViews, they are restricted to using the same instance (and thus must be careful not to step on each other as they open workfiles, run calculations, etc). These restrictions were put in place to enforce our normal licensing agreements.

There are other special restrictions I should mention at this point when it comes to using EViews COM Automation:
1. EViews COM Automation cannot be used from a web server process.
2. EViews COM Automation is restricted to a single instance when being used by a local windows service (not a web service).

As a side note, if you have one of our Concurrent licenses, there is no restriction on how many clients can have EViews7 installed, just the number of actual running instances at the same time (based on your license). In this case, you can install EViews7 on each of your users machines and setup COM Automation to run locally on each without the single instance restriction (local COM Automation processes can run multiple instances of EViews without any issue, as long as you have enough concurrent licenses).

If you would like to get EViews DCOM working, I can send you detailed instructions on how to set it up. If you have concerns or any requests to make about our licensing, please let me know and I can forward it to our sales team.

Steve
I have the follow problem with connecting to Eviews installed on another computer:
In VBA Application I get following error message:
"Run-time error '70': Permission denied"
when I use the following code:
Set mgr = CreateObject("EViews.Manager", MyServer)

And I would like ask you also about second special restriction in using EViews COM Automation to a single instance:
Is it possible to remove this restriction? For example, if to buy corresponding license.

Sorry for my english!
Sincerely,
Dauren

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Problem with connecting to Eviews installed on another computer

Postby EViews Gareth » Mon Dec 19, 2016 9:05 am

Please contact support@eviews.com with this question.

EViews Steve
EViews Developer
Posts: 844
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Problem with connecting to Eviews installed on another computer

Postby EViews Steve » Mon Dec 19, 2016 9:47 am

You cannot instanciate "EViews.Manager" remotely. It MUST be local to your process. This means the EViewsMgr.dll must be registered locally.

To get DCOM working, you'll have to tell your local Windows system that whenever someone tries to create the "EViews.Application" object (which is what EViews.Manager will do), to do this on another remote machine instead.

Now, our normal licensing only allows you to use a single instance of EViews via DCOM, and the source process can't be under a windows service or web service. This means you'll be able to write a program to use EViews remotely -- but if you launch it from a service of any kind, you'll run into a licensing restriction. If you wish to use EViews as a service, you'll have to contact our support@eviews.com group (along with your current serial number) for more licensing information.

Also, if you email me at steve@eviews.com (along with your serial number - and refer to this post) I can also send you more detailed instructions on how to get DCOM setup and working.

Steve

dauren
Posts: 17
Joined: Mon Sep 03, 2012 5:01 am

Re: Problem with connecting to Eviews installed on another computer

Postby dauren » Mon Dec 19, 2016 6:39 pm

Thank you, Steve!

I'll contact you and to support@eviews.com.

Sincerely,
Dauren


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest