Using "actxserver" to open Applications Excel and/or STK - Server Creation Failed: Access is denied.
26 views (last 30 days)
Show older comments
I am having some difficulty in using the actxserver function and receiving an error that my IT department and I cannot resolve. So I'm reaching out to the community, in order to find any workable solutions. I appreciate any and all help and details.
My real problem is booting STK, using MatLab, onto a "Remote" machine. I can use the actxserver function to boot STK, from MatLab, on a "Local" machine. Be it, when the two software tools, STK and MatLab are on the same computer, it works. When they're on different computers, it doesn't work. For debugging purposes, I tried doing this with Excel, instead of STK, and received the same error. Below is a sample of the code I run..
applicationName = 'STK.Application';
% applicationName = 'Excel.Application';
computerName = 'ABC-REMOTE-PC'; % This is the REMOTE computer name
% computerName = 'ABC-LOCAL-PC'; % This is the LOCAL computer name
APP = actxserver( applicationName, 'machine', computerName );
If I run this little bit of code using the Local computer, meaning both MatLab and the selected application are on the same computer, then the code works. I get some sort of work space return, and STK even does a pop-up to show it is running in the background. I can see either process using Ctrl+Shift+Esc, too.
If I do this using the Remote computer, for either STK or Excel, with MatLab still on the Local computer, it does NOT work. I get no STK pop up, on the remote computer. I see nothing running in the process in the background. AND I receive the following error..
Error using feval
Server Creation Failed: Access is denied.
Error in actxserver (line 86)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Attempted Resolutions:
- I've discussed it with my IT department, and they tell me nothing is blocking it on the Network side.
- I've turned off Windows Firewalls on both computers.
- I turned off PC Protect, and McAfee.
- I checked on Inbound/Outbound Rules and disabled anything in relation to STK, Excel, and MatLab.
I'm using MatLab 2014b. I DO NOT have the Parallel Computing Toolbox, and not sure that I do need it, since I'm not trying to boot/utilize MatLab with MatLab.
Any ideas, information, and help will be greatly appreciated.
0 Comments
Answers (1)
Krishna Chaitanya Duggineni
on 23 Mar 2016
3 Comments
Dave Behera
on 24 Mar 2016
Hi Jassem, can you confirm that you have admin access to your server machine with the same account that you are logged into your client machine, and are logged in in both machines simultaneously with this account?
See Also
Categories
Find more on Bar Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!