Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MTDLL vs EXE COM with ASP.NET impersonated user?
Message
From
18/05/2004 09:59:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
MTDLL vs EXE COM with ASP.NET impersonated user?
Miscellaneous
Thread ID:
00904911
Message ID:
00904911
Views:
72
Hi COM people,
I am using a vfp exe com server and a vfp mtdll com server for vfp-.net interop. I like the small foot print of the mtdll and the ability to take advantage of COM+. But the mtdll does not permit use of commands such as REPORT FORM so I also need an EXE com Server version for my vfp-.net interop project. I am experiencing differences between the 2 com servers in how they interact with my peer to peer network. The network has 2 computers. The web server, which hosts win 2k server and runs my asp.net web application, and a work staion running win 2k prof., which hosts my vfp data tables.

My asp.net application is using impersonation so that I can use vfp tables on different computers on my peer to peer network. I configured the computer hosting the vfp tables with a user named gmgOnLine and made it a member of the Administrator Group for now. I configured a user of the same name on my web server, which is hosting the .net framework and my asp.net. I set up the web server's gmgOnline user with the same privledges as ASPNET user as per Microsofts specs.

The vfp EXE COM server has no problem issuing a command like:
  if Directory(“h:\Data\”)
    do something….
  Else
    Do something else…..
  endif
However, the same exact command issued by the mtdll com server always returns .F. for:
 if Directory() 
  endif

or even:
  if File()
  endif
I am able to get around the mtdll com limitations by discontinuing the use of impersonation and falling back to an ASPNET user and placing the data vfp files on the web server. I guess the impersonated user is missing the local security policy to necessary read the directory info.

Does anyone know what policy my impersonated user needs to be able to read directory info. Hopefully this will enable the mtdll version of "if Directory()" or "if fle()" to work properly.
Or.... am I missing a more important point altogether?

Regards,
Neil
Reply
Map
View

Click here to load this message in the networking platform