FoxPro Programming
createobjectex
Gravatar is a globally recognized avatar based on your email address. createobjectex
  Tuvia Vinitsky
  All
  Feb 21, 2018 @ 05:35pm

It has been a long time since I last did something like this and I missed something. This is not my environment, so no need to tell me it should be changed.

On a win 2008 server I have a VFP com server running, say server1.server1 . It works fine.

From other machines I can use it with createobjectex, no problem. However there is a win 2003 box and a website on that box. From a web page I cannot load the com object without getting access denied error. However from that very same win 2003 box I have no problem using the exact same createobjectex from the desktop. I have added every permission I can think of to the 2008 box with no luck.

Gravatar is a globally recognized avatar based on your email address. re: createobjectex
  Rick Strahl
  Tuvia Vinitsky
  Feb 21, 2018 @ 06:47pm

Sounds like DCOM permissions are not set. The ApplicationPool Identity user (your FoxPro Application Runs under) has to be condigured to access the COM server using the 32 bit DCOMCNFG utility. Both Launch and Access permissions have to be set for that user explicitly.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: createobjectex
  Tuvia Vinitsky
  Rick Strahl
  Feb 22, 2018 @ 06:18am

I thought that, but I am still doing something wrong. I gave explicit Launcg and Access permissions to just about every user and group trying to find the issue. And I can log into the web server as any user and make the remote call just fine from vfp.

Gravatar is a globally recognized avatar based on your email address. re: createobjectex
  Rick Strahl
  Tuvia Vinitsky
  Feb 22, 2018 @ 11:42am

Interactive user access usually just works. But make sure you're using the 32 bit version of DCOMCNFG not the 64 bit one to set permissions. Makign changes in the 64 bit version has no effect.

+++ Rick ---

© 1996-2024