Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2066
  • Last Modified:

ActiveX component can't create object

In and Access 2010 database application, the following line of code runs fine when the application is opened from a full remote desktop session on a server 2008 r2, but when it is opened as a RemoteApp this line of code produces run-time error 429 "ActiveX component can't create object"

Set openApps = CreateObject("Shell.Application").Windows
0
velcrow
Asked:
velcrow
  • 6
  • 5
1 Solution
 
Vadim RappCommented:
I have no possibility to hands-on test out this scenario, but from the very definition of remoteapp it looks like this is exactly what should be expected - because it's very hard to tell whose shell it is, yours, or remote, and consequently, when this object will be dealing with its various features, such as special directories, registry etc., whose special directories etc. to look at.
0
 
Vadim RappCommented:
...this post kind of confirms my guess:

http://social.technet.microsoft.com/Forums/en/winserverTS/thread/845ac56d-a8c2-4188-96b2-6ae310b84011#47adfdec-5492-443a-bd8a-25d02ba87b42:

"The seamless shell lacks some of the functionality that the full-blown Explorer shell has - for obvious reasons as there is no need for all the full desktop stuff."
0
 
velcrowAuthor Commented:
so, can you think of a workaround?  What the application is attempting to do is loop through the list of open windows to find any that are internet explorer and find the internet explorer window that matches a given url and do something with that internet explorer object.  In other words, is there another way that I can evaluate the open windows/applications (or at least internet explorer windows)  so I can get this working as a remote app?
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
Vadim RappCommented:
When you say "the list of open windows" - you mean open windows on your local desktop (to which remotapp, which runs on remote machine, has no access), or on the remote desktop (which the local user does not see)?

Remoteapp is similar to a character on the TV screen - he is displayed, but he is not really here; can't talk to him.
0
 
velcrowAuthor Commented:
i mean open windows on the server (remote desktop).  The Access application launches other programs such as Outlook and Internet Explorer.  When these other programs are launched by Access running as a remote app they too open as a remote app.
0
 
Vadim RappCommented:
Even if you manage to make it seeing other applications on the same remote machine, whatever it would launch, it would launch at the same remote machine, and it wouldn't know to make it visible to you through yet another remoteapp. When you run the "full" remote desktop, you see the whole remote screen, so whatever gets launched there, you see it. Here you see only one piece, and new remote piece can't make itself visible to you by its own initiative.

Again, I have to admit that all I say is just speculations, but I don't see how an application on remote computer would force on you new remote desktop session to itself.
0
 
velcrowAuthor Commented:
I'm not sure I follow you completely here, but other programs that are launched as remote apps by my access application are visible to it and it does interact with them
0
 
Vadim RappCommented:
Well, as I said, I have no hands-on experience with this, so all I said was just my hunch based on essence of remoteapp. Since this is relatively new technology, it may be good idea to ask on the blog that I cited above, or even contact the guy directly (http://drtritsch.com/contact) .

For now my best guess is that the answer will be in that phrase "The seamless shell lacks some of the functionality that the full-blown Explorer shell has - for obvious reasons as there is no need for all the full desktop stuff."  - meaning that you just hit one of the features that full shell has, and seamless shell does not.
0
 
velcrowAuthor Commented:
apparently there is no way of doing what I want to do, but you offered no work around
0
 
Vadim RappCommented:
sorry - missed that part.

I would probably try to do something by using FindWindowX, which has been the way to find other windows for decades. There are some examples specifically for Access at at http://www.utteraccess.com/forum/APIs-FindWindow-FindWin-t1945724.html , but it would be the same in any vb-based code.
0
 
velcrowAuthor Commented:
thanks for the suggestion,  I'll look into it.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now